Your files stay on your device

# Color contrast checker

Check that text is readable on its background, with a fix when it is not.
That color could not be parsed.Options

## How the ratio is built

WCAG 2 compares two relative luminance values, the lighter L1 and the darker L2, with the formula (L1 + 0.05) / (L2 + 0.05). Pure black on pure white gives 21 to 1. Mid-gray #777777 on white comes out near 4.48 to 1, just short of the 4.5 to 1 needed for normal text at level AA. Large text needs 3 to 1 at AA, and level AAA asks for 7 to 1 on normal text.

## Why APCA gives other numbers

APCA produces a lightness contrast value called Lc. It is not a ratio, and it treats dark text on light backgrounds differently from light text on dark ones. A 4.5 in WCAG means nothing in APCA, so check which standard a project uses before comparing numbers, and do not mix the two in one review.

## Swatches and see-through colors

- A see-through color has to be blended onto its background before the ratio is measured.
- WCAG ratios are symmetric, so swapping text and background changes nothing. APCA is not symmetric, so the swap can change the result.

## More color tools

- [Color converter & contrast](/color/converter)
- [Color blindness simulator](/color/blindness)
- [Contrast matrix](/color/accessibility-contrast-matrix)
[All color tools](/color)

Was this tool useful?
YesNo

---

Canonical HTML: https://nutter.tools/color/contrast
Markdown version: https://nutter.tools/color/contrast.md
Plain-text version: https://nutter.tools/color/contrast.txt
Agent index: https://nutter.tools/llms.txt

