Color converter and contrast checker
Type a color in any CSS notation, or pick it, and get it in every format at once: HEX, RGB, HSL, HWB, the modern OKLCH, and an approximate CMYK. Then check that text on this color is readable: the WCAG contrast ratio tells you whether it meets the AA and AAA levels required for accessible websites.
Your data never leaves your device
Any CSS color: #0f766e, rgb(15 118 110), hsl(…), oklch(…), tomato…
- HEX
#0f766e- RGB
rgb(15 118 110)- HSL
hsl(175.3 77.4% 26.1%)- HWB
hwb(175.3 5.9% 53.7%)- OKLCH
oklch(51.09% 0.0861 186.39)- CMYK
cmyk(87% 0% 7% 54%)
Contrast (WCAG)
5.47:1
- AA, normal text (4.5:1)passes
- AA, large text (3:1)passes
- AAA, normal text (7:1)fails
- AAA, large text (4.5:1)passes
Against white: 5.47:1 · against black: 3.84:1
Large text, 24 px bold
Body text, as it will read on this background.
How to use Color Converter
- 1
Type a color (HEX, RGB, HSL, OKLCH, name…) or pick it with the color picker.
- 2
Copy the notation you need.
- 3
Choose a text color to check the contrast and the WCAG levels.
Frequently asked questions
Which notations are supported?
HEX (#rgb, #rrggbb, with or without transparency), rgb() and rgba(), hsl() and hsla(), hwb(), oklch(), oklab() and the 148 CSS color names, in both the classic comma syntax and the modern space syntax with “/” for transparency.
What is OKLCH and why use it?
OKLCH describes a color by its lightness, chroma and hue in a way that matches human perception: two colors with the same lightness look equally light, which HSL does not guarantee. It is supported by all modern browsers and makes palettes and accessible color variations easier to build.
What contrast ratio do I need?
WCAG 2 level AA, the usual legal reference, requires 4.5:1 for normal text and 3:1 for large text (24 px, or 18.7 px bold). Level AAA requires 7:1 and 4.5:1. The ratio goes from 1:1 (no contrast) to 21:1 (black on white).
Is the CMYK value accurate for printing?
It is an approximation: a real conversion depends on the printer’s color profile (paper, inks). Use it as a starting point and ask your printer for the exact values.
What does “outside the sRGB range” mean?
Some OKLCH colors are more vivid than most screens can show. The tool displays and converts the closest color within the sRGB range, the standard of the web.
Related tools
-
Favicon Generator
Create every favicon your site needs (ICO, PNG, Apple, Android) from a logo or a letter. -
SVG to PNG
Convert SVG files to PNG, JPG or WebP at the size you need, sharp at any resolution. -
QR Code Generator
Create QR codes for links, text, Wi-Fi and email. Custom colors, PNG and SVG export. -
JSON Formatter
Format, minify and validate JSON with precise error messages (line and column).