Color Converter
Paste any colour — name, hex, rgb, hsl, hwb, lab, lch, oklch or cmyk — and get every other format instantly.
Could not read that colour.
All formats
Batch convert
One colour per line.
CSS named colours
| Name | HEX | RGB | HSL |
|---|
No colour matches that search.
How to use the colour converter
- Paste or type a colour in any CSS syntax — a keyword,
#rgb,#rrggbbaa,rgb(),hsl(),hwb(),lab(),lch(),oklab(),oklch()orcmyk(). - Every other format appears instantly; press Copy on the one you need.
- Use the table to browse all 148 CSS colour names, or the batch box to convert a whole list at once.
FAQ
What is oklch and why should I care?
OKLCH is a perceptually uniform colour space: changing lightness or chroma looks like an even step to the eye, which makes generating accessible palettes far easier than with HSL. It is supported in all current browsers.
Are lab and lch the same as Photoshop Lab?
They use the same CIE Lab model with the D50 white point that CSS Color 4 specifies, so values line up closely with Photoshop's Lab readouts. Small differences come from rounding and from how out-of-gamut colours are clipped back to sRGB.
Why does my colour change after a round trip?
Formats such as lab, lch and oklch can describe colours outside the sRGB gamut. When a value is converted back to hex it has to be clipped into sRGB, so a very saturated lch colour may not survive the trip unchanged.