TextSorter
Closest named color
Recent
HEX
RGB
R · 0-255
G · 0-255
B · 0-255
HSL
H · 0-360
S · 0-100%
L · 0-100%
OKLCH
OKLCH gives perceptually-uniform lightness — great for accessible color palettes (used by Tailwind v4, Radix, etc.).

HEX, RGB, HSL, OKLCH — which should you use?

Every color you see on screen can be described in multiple equivalent formats. Each has different strengths:

How to use this color converter

Frequently Asked Questions

Does this tool support alpha / transparency?
Not yet — v1 handles opaque colors only. Alpha (RGBA, HSLA, OKLCH with alpha) is on the roadmap.
Why doesn't HSL → OKLCH give round numbers?
HSL and OKLCH are fundamentally different color models. HSL is a simple geometric rearrangement of RGB; OKLCH is built on the OKLab perceptual color space. The conversion goes through RGB and then linear-light XYZ, so you get decimal values. The numbers may look messy but the color is exactly the same.
Why does the named color sometimes say "—"?
It picks the closest match from the 147 CSS named colors. If your color is far from any of them (which is most colors), the closest match isn't useful, so we show "—" rather than mislead you.
Is the eyedropper available in all browsers?
No — the native EyeDropper API is currently Chrome/Edge only. The button is disabled in browsers that don't support it (Firefox, Safari).

Related Tools