Colour converter.
Paste a colour in any CSS format, or pick one, and copy it as HEX, RGB, HSL, HWB, OKLCH or approximate CMYK. See instantly whether white or black text reads better on it.
Runs in your browser. Nothing you enter is sent to KRA Digital or anyone else.
How to use it
- Type or paste a colour: #1e90ff, rgb(30 144 255), hsl(210 100% 56%), a name such as teal, and more.
- Or use the colour picker.
- Copy the format you need from the table.
- Check the contrast line to choose white or black text on that colour.
Questions
What is OKLCH?
A colour format based on the OKLab model, where equal changes in lightness look roughly equal to the eye. It is useful for building consistent palettes and is supported in modern CSS.
Why is CMYK only approximate?
Real print colours depend on the printer, inks, paper and colour profile. The formula here is a simple conversion; ask your printer for a proof for brand-critical work.
Which formats can I paste?
Anything your browser understands as a CSS colour, including HEX with alpha, rgb(), hsl(), hwb() and the 148 named colours.
Read more
Related tools
- Design
Colour contrast checker
Check text and background colours against WCAG 2.2 AA and AAA, and get a passing alternative.
Open - Design
Colour palette generator
Turn one brand colour into harmonies and a 50–900 shade scale, then export CSS variables.
Open - Design
CSS gradient generator
Design linear, radial and conic CSS gradients with up to five colour stops.
Open