Colour Converter
Convert colours between HEX, RGB, HSL, and OKLCH. Paste any CSS colour or pick one, and copy the value in every format.
About this tool
Type a colour in any CSS format, such as #3a7bd5, rgb(58 123 213), hsl(215 65% 53%), or oklch(58% 0.15 258), or use the picker.
OKLCH describes colours by perceived lightness, chroma, and hue, which makes it easier to build palettes with even contrast than with HSL.
Runs entirely in your browser. Nothing you enter or open is uploaded.
Questions
- Why do some OKLCH colours change when converted to HEX?
- OKLCH can describe colours outside the sRGB range that HEX covers. Those colours are clipped to the nearest sRGB colour.