Color converter with contrast check

Type a colour in any common format — hex, rgb(), hsl() or a CSS name — and get every other format back, plus a nine-step shade ramp in the same hue. The contrast ratio against both white and black is shown with the readable text colour picked for you.

Conversions are plain arithmetic on the sRGB cube, and contrast uses the WCAG 2.1 relative luminance formula. CMYK is the standard device-independent approximation, which is why it is labelled indicative rather than exact.

Runs entirely in this tab. Nothing you paste is uploaded, logged or stored — close the page and it is gone.

Questions about this tool

What contrast ratio do I need?

4.5:1 for normal body text and 3:1 for large text (18pt, or 14pt bold) to meet AA. AAA raises those to 7:1 and 4.5:1. Anything below 3:1 fails for all text.

Why does the CMYK value look wrong for print?

Because there is no ICC profile involved. The conversion is the standard formula and gets you in the right region, but a real print workflow needs a profile for the specific press and paper.

Does transparency affect the contrast number?

No. The ratio is computed on the solid colour, treating it as fully opaque. What an actual page shows depends on what the translucent colour is composited over.

AI alternatives from the directory

Browse design tools →

This utility handles the job by hand. These do it with a model — worth a look when the task outgrows copy and paste.

ColorMagic logo
☆

Colour palettes from any word or mood

ColorMagic generates palettes from a description, with live preview of how the colours behave in a UI.

Khroma logo
Khroma
Design
☆

Palettes trained on the colours you actually like

Khroma learns your colour taste from a quick training set, then generates palettes, gradients and type pairings you

Fontjoy logo
Fontjoy
Design
☆

Font pairing suggestions powered by a neural net

Fontjoy proposes heading and body pairings and lets you lock one font while it searches for the other.