Color Converter

Convert HEX ↔ RGB ↔ HSL ↔ OKLCH.

Runs entirely in your browser
HEX
#3b82f6
RGB
rgb(59 130 246)
HSL
hsl(217 91.2% 59.8%)
OKLCH
oklch(62.3% 0.188 259.8)

FAQ

What's OKLCH good for?
OKLCH is a perceptually uniform color space — equal steps look equal to the eye. Tailwind v4 defaults to it. Great for building lightness ramps that don't dip into muddy greens or grays.
Is alpha supported?
Yes. Enter #RRGGBBAA (or #RGBA short form) and every output row includes the alpha value.

Related tools