Colour converter. Paste a colour in any format and copy it as HEX, RGB, HSL or OKLCH.
How it works
Paste a colour
HEX, rgb(), hsl() or oklch() all work. So does the colour picker.
See every format
The same colour in each format, with its contrast on white and on black.
Copy what you need
Each value copies as a CSS colour you can use straight away.
Questions
What is OKLCH?
A way to write colour as lightness, chroma and hue, where equal steps in lightness look equal to the eye. That makes it good for building scales and themes.
Why do some OKLCH colours change when converted to HEX?
OKLCH can describe colours a normal screen can't show. Those are brought to the nearest colour sRGB can show, keeping lightness and hue.
More design tools
- Contrast checker: Text and background contrast against WCAG AA and AAA.
- Colour scale: One colour into a 50 to 950 scale for CSS or Tailwind.
- Neutral palette: Warm or cool greys tinted toward your brand colour.