Colour Formats

Color picker

#1f6e60
Hex
Every format
Contrast
On white 6.07 Passes AA
On black 3.46 Fails AA
Live · WCAG 2.2 contrast against black and white
ebf9f7c3eee79ce3d674d8c64ccdb632b39c278b7a1c6357113c34
Advertisement
320 × 100

A colour can be written several ways that all mean the same thing. Hex and RGB name the amounts of red, green and blue. HSL restates that as hue, saturation and lightness. OKLCH uses a perceptually uniform space, so equal changes in its lightness look equally different to the eye — which sRGB does not manage.

How to use it

1 Pick a colour, type a hex value, or drag the hue, saturation and lightness sliders.
2 Tap any format to copy it in CSS syntax.
3 Check the contrast panel before you use the colour for text.

The contrast figures are WCAG 2.2 ratios, running from 1 for two identical colours to 21 for black on white. Normal body text needs 4.5, large text needs 3, and the stricter AAA level asks for 7. The catch is that the formula is a poor model of how contrast actually looks — it is generous to mid-greys and harsh on saturated blues — so treat a marginal pass as a reason to look at it, not as a verdict.

Questions

Building colour scales. Because it is perceptually uniform, holding chroma and hue while stepping lightness gives a set of tints that look evenly spaced. Doing the same in HSL does not.

W3C — Web Content Accessibility Guidelines 2.2, contrast minimumBjörn Ottosson — a perceptual color space for image processing (Oklab)
Advertisement
300 × 250
Was this tool any good?
INTERNAL SIGNAL ONLY · WE USE IT TO FIND TOOLS WORTH REBUILDING