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.Enter a color
- 2.Click Run
- 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.
| Aspect | This tool | Upload-based converters | Desktop software |
|---|---|---|---|
| Where the file is processed | In your browser, on this page | On the vendor's servers, after an upload | On your own machine, after installing an app |
| Account required | No | Usually — free tiers ask you to sign in before lifting a limit | No, though a licence may be needed |
| Size you can process for free | No size cap, no run limit | A few files per hour, or a ~5–10 MB cap before a paywall | Whatever your disk and RAM allow |
| Price | Free. Pro is $9/month, and only buys larger files and AI features | Usually a subscription — roughly $7–15/month as of November 2026 | A one-off licence, or a subscription |
| Works offline | Yes, once the page has loaded | No | Yes |
| Time before work starts on a 20 MB file | Immediate — there is nothing to upload | Dominated by the upload — about 16 s on a 10 Mbps uplink | Just the app launch |
| What it cannot preserve | Values are generated locally with the platform's CSPRNG, never on a server | The same — the conversion is the same maths | The same, though some desktop apps re-render styles more faithfully |
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
On this page
- What is Color Converter
- What it does with your file
- How it actually behaves
- How to use it
- How this compares
- FAQ
Excel formula reference
29 functions with syntax, arguments and a table you can retype.
Browse the list →