LocalExcelTool
Get started

Color Converter

Convert a color between HEX, RGB and HSL instantly.

What is Color Converter

A color converter translates a color between HEX (#RRGGBB), RGB (red-green-blue) and HSL (hue-saturation-lightness) representations.

🔒 Everything runs in your browser. Nothing is uploaded.

What this tool actually does with your file

Where it runs
In your browser, on this page
Upload
None — the file never leaves your device
Offline
Works with the network disconnected

Hex, RGB and HSL describe the same thing three ways

Hex and RGB are the same numbers in different notation: #3B82F6 is rgb(59, 130, 246). HSL re-expresses that triple as hue, saturation and lightness, which is far easier to reason about when building a palette — but it is a transform of the same sRGB values, not a different colour space.

The conversion is exact in the RGB-to-HSL direction and back, with rounding at the last step. Small drift (one unit in a channel) appears when round-tripping through HSL because the intermediate values are not integers; keep the source hex if exactness matters.

Why an HSL scale is not perceptually even

Equal steps in HSL lightness do not look like equal steps to the eye. Yellow at L=50% looks much brighter than blue at L=50%, because HSL is defined on the sRGB cube rather than on human perception. Building a 10-step palette by interpolating L therefore produces a scale with obvious jumps in the middle.

Perceptually uniform spaces — OKLCH, CIELAB — exist precisely to fix this, and are now supported in CSS via oklch(). For anything where the steps will be seen side by side, generating in OKLCH and converting to sRGB for output gives visibly smoother ramps.

The gamma question

sRGB values are gamma-encoded: the stored number is not the light intensity. Averaging two colours by taking the mean of their RGB values therefore produces a result that is darker than the visual midpoint, because the average happens in encoded space rather than in linear light.

The correct order for blending is decode to linear, mix, re-encode. Skipping the decode is why gradient blends between two saturated colours often show a muddy band in the middle, and why the same gradient looks different in a design tool that works in linear space.

How to use

  1. 1.Enter a color
  2. 2.Click Run
  3. 3.Copy the format you need

How this compares

There are three ways to do this conversion: in the browser (this page), through a server-side converter, or with a desktop app. The useful difference is not speed — it is where your file goes and how far the free tier actually reaches.

AspectThis toolUpload-based converters
Where the file is processedIn your browser, on this pageOn the vendor's servers, after an upload
Account requiredNoUsually — free tiers ask you to sign in before lifting a limit
Size you can process for freeNo size cap, no run limitA few files per hour, or a ~5–10 MB cap before a paywall
PriceFree. Pro is $9/month, and only buys larger files and AI featuresUsually a subscription — roughly $7–15/month as of November 2026
Works offlineYes, once the page has loadedNo
Time before work starts on a 20 MB fileImmediate — there is nothing to uploadDominated by the upload — about 16 s on a 10 Mbps uplink
What it cannot preserveValues are generated locally with the platform's CSPRNG, never on a serverThe same — the conversion is the same maths

Server-side converters are genuinely better at some things: very large files, sharing results with a team, keeping a conversion history, and automating batches from a script. For the case in front of you — one file, one format change, right now — they mostly add an upload wait and a sign-up form.

Frequently asked questions

What input formats work?

#RRGGBB, #RGB, rgb(r, g, b) or plain r, g, b.

Is data uploaded?

No. Conversion happens in your browser.

More in Generators