What each color format is for
HEX and RGB describe the same thing: how much red, green and blue light a screen pixel mixes, each from 0 to 255; HEX simply writes those three numbers in base 16, so #0F766E is red 15, green 118 and blue 110. HSL (hue, saturation, lightness) and HSV, also called HSB (hue, saturation, value or brightness), rearrange the same RGB color around a color wheel, which is easier for people to adjust: change the hue to move round the wheel, lower saturation to make it greyer. HSL is the one written in CSS; HSV is what most design apps show in their color picker, so the two give different numbers for the same color. CMYK is the ink model of printing. OKLCH is the newest: lightness, chroma and hue designed so that equal steps look equal to the eye.
OKLCH and OKLab, the modern CSS color spaces
HSL has a known flaw: yellow and blue at the same HSL lightness look very different in brightness. OKLab, and OKLCH, its polar form, were designed so that lightness matches what we see. The CSS Color Module Level 4 specification defines them, and current browsers accept oklch() in style sheets. That is why OKLCH is useful for design systems: keep the hue and chroma, change only L, and you get a scale that looks evenly spaced, which is how the tints and shades on this page are built. OKLCH can also describe colors brighter than an ordinary sRGB screen can show. When you type one, the converter keeps its lightness and hue and lowers chroma until it fits, and tells you, so the HEX you copy is the closest color a normal screen will really display.
Contrast ratio and WCAG 2.2 levels
The contrast check uses the formula in the W3C's Web Content Accessibility Guidelines 2.2, a W3C Recommendation dated 12 December 2024, which we opened on 23 October 2026. Each color's relative luminance is worked out from its sRGB values, and the ratio is the lighter one plus 0.05 divided by the darker one plus 0.05, from 1:1 to 21:1. Level AA asks for at least 4.5:1 for normal text and 3:1 for large text, which WCAG defines as at least 18 point, or 14 point bold. Level AAA asks for 7:1 and 4.5:1. Icons, input borders and other parts of the interface need 3:1 against what is next to them. If your text color is semi-transparent, it is first blended with the background, because that blend is what readers see.
CMYK, print and the limits of any converter
Converting a screen color to CMYK with a formula gives a reasonable starting point, but real printing depends on the press, the ink and the paper, described in an ICC color profile that only your printer has. Very bright screen colors, such as pure RGB green, cannot be printed at all, and two printers can ask for different CMYK values for the same brand color. Treat the CMYK line as a guide and ask for a printed proof. HEX, RGB, HSL, HSV and OKLCH are exact conversions of the same sRGB color, rounded to sensible decimals. To find a color in a photo or logo first, use the image color picker; to turn several colors into a background, use the CSS gradient generator.