Skip to content
WCAG 2.1 Compliant

Contrast Checker

Check if your color pairs meet WCAG AA and AAA accessibility standards. Real-time pass/fail for normal and large text.

Color Pair
Pick foreground and background
Sample Text
The quick brown fox jumps over the lazy dog
Contrast Ratio
18.89
: 1
APCA (WCAG 3): Lc 105 · body text
WCAG Compliance
Normal Text (AA)Pass
Normal Text (AAA)Pass
Large Text (AA)Pass
UI components (3:1)Pass
Requirements
AA Normal
4.5 : 1
AAA Normal
7 : 1
AA Large Text
3 : 1
UI / icons
3 : 1
Color-blindness preview
Aa
Normal vision
18.89:1
Aa
Protanopia
18.89:1
Aa
Deuteranopia
18.89:1
Aa
Tritanopia
19.00:1

Approximate sRGB simulation — confirms your pair stays distinguishable across common color-vision deficiencies.

How It Works

Step 1
Choose Your Colors

Pick foreground and background using the color picker or by typing HEX values directly.

Step 2
Get the Ratio

We calculate the contrast ratio using the WCAG 2.1 relative luminance formula instantly.

Step 3
Check Compliance

See whether your pair passes WCAG AA or AAA for normal and large text.

Step 4
Test Dark Mode

Swap foreground and background to test both light and dark variants of your design.

Frequently Asked Questions

WCAG contrast ratio measures the difference in relative luminance between two colors. Luminance is the perceived brightness of a color, calculated from its RGB channels with gamma correction to match human vision. The ratio ranges from 1:1 (identical colors) to 21:1 (black on white). Higher ratios mean text is easier to read, especially for users with low vision or color blindness.

AA (minimum) requires 4.5:1 for normal text and 3:1 for large text — the legal baseline in many countries. AAA (enhanced) requires 7:1 for normal and 4.5:1 for large text — recommended for government, medical, and reading-heavy interfaces. AA is the practical target for most projects.

Large text means 18pt (24px) or larger for regular weight, or 14pt (~18.67px) for bold. The threshold is lower because the physical size makes glyphs easier to read. Body copy at 16px does not count as large text.

Swap your foreground and background — enter the dark background as background and the light text as foreground. Many designs fail dark mode because designers reverse the same pair without re-checking. Always validate both modes independently.

Yes. WCAG 1.4.11 (Non-text Contrast) requires 3:1 for icons that convey information, form borders, and focus indicators against adjacent colours.

Other UIXColors tools that pair well with WCAG Contrast Checker.

Related

Popular colors and their contrast

BlackWhiteSlate 500Gray 500Zinc 500Stone 500
Copied