Contrast Checker
Test text and background colours instantly with formal WCAG 2 checks and an advisory APCA reading.
- Features others lock behind paywalls
- Fewer clicks, keyboard friendly
How to use
- Enter a text colour and a background colour as 3- or 6-digit HEX values, or use the colour pickers.
- Read the unrounded WCAG 2 contrast ratio and its AA, AAA, and UI-component results.
- Review the APCA Lc value as additional, polarity-aware guidance.
- Use the live preview and copy the result summary into a design review or ticket.
WCAG 2.2 contrast thresholds
WCAG 2.2 Success Criterion 1.4.3 requires at least 4.5:1 for normal text at AA and 3:1 for large text. Large text means at least 24 CSS px regular or approximately 18.66 CSS px bold. The enhanced AAA targets are 7:1 for normal text and 4.5:1 for large text.
For meaningful controls, icons, and graphics, Success Criterion 1.4.11 requires at least 3:1 against adjacent colours. Threshold decisions use the full calculated ratio: a value displayed as 4.50:1 can still fail if its unrounded value is below 4.5.
How the ratio is calculated
WCAG contrast uses relative luminance after converting sRGB channels to linear light. The ratio is (L lighter + 0.05) ÷ (L darker + 0.05), so opaque sRGB pairs range from 1:1 to 21:1. The visual preview is useful, but a solid-colour result does not prove that text over a photo, gradient, translucent layer, or changing state meets a requirement. Check the least favourable actual background.
APCA is a second reading, not a conformance result
APCA reports signed lightness contrast (Lc), so dark text on a light background and light text on a dark background can receive different values. This tool uses the APCA 0.1.9 reference constants. The sign indicates polarity; a larger absolute value generally means greater lightness contrast.
APCA has not replaced the WCAG 2 contrast success criteria. Use the WCAG 2 rows for present-day acceptance and compliance work, then use APCA as an additional signal when evaluating text choices.
Frequently asked questions
What contrast ratio is required for WCAG AA?
WCAG AA requires a minimum 4.5:1 ratio for normal text and 3:1 for large text. Large text is at least 24 CSS px regular or about 18.66 CSS px bold; meaningful UI components and graphical objects also require 3:1 against adjacent colours.
What is the highest possible WCAG contrast ratio?
The highest possible contrast ratio for two opaque sRGB colours is 21:1, produced by black #000000 against white #FFFFFF. Identical opaque colours have a ratio of 1:1.
Why can a displayed 4.50:1 still fail WCAG?
WCAG thresholds must be checked without rounding. A raw ratio of 4.499:1 is displayed near 4.50:1 but does not meet the 4.5:1 AA threshold; this checker tests the full precision value.
Can APCA replace WCAG 2 contrast checks?
APCA cannot replace WCAG 2 contrast checks for current conformance work. APCA is a perceptual model with a signed Lc result, while WCAG 2.2 defines the current 4.5:1, 3:1, and 7:1 success-criterion thresholds.
Related tools
Updated 2026-10-24