How contrast is calculated

Contrast here is the WCAG ratio between two colors, not a guess based on how different the hues look.

The contrast checker computes relative luminance from the sRGB channels after the WCAG linearization. The contrast ratio is (lighter + 0.05) / (darker + 0.05). The checker reports that ratio and whether it meets AA and AAA for normal and large text.

Large text in that table means the WCAG sizes: at least 18 point, or 14 point bold. The tool does not know your font, so it shows both rows. Non-text contrast, the 3:1 threshold used for some interface parts, is not a separate row.

A passing ratio is not a full accessibility review. It does not measure text size, focus, or the image behind a transparent color. The color converter is a different page: it moves between hex, RGB, HSL, and an approximate CMYK, and it does not score a pair of colors.

All guides