How to use Color Contrast Checker
- 1
Pick or enter your text (foreground) color.
- 2
Pick or enter your background color.
- 3
Read the contrast ratio and WCAG pass/fail badges.
- 4
Adjust colors until all required checks pass.
Test foreground/background color combinations against WCAG 2.1 AA and AAA standards. Get pass/fail results and contrast ratio instantly.
Pick or enter your text (foreground) color.
Pick or enter your background color.
Read the contrast ratio and WCAG pass/fail badges.
Adjust colors until all required checks pass.
WCAG 2.1 Level AA requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (18pt or 14pt bold). This is the minimum standard required by most accessibility laws.
AAA is the highest WCAG level, requiring 7:1 contrast for normal text. It is recommended for critical text like legal terms or medical information.
In web design, selecting the right color palette is about more than just aesthetics and brand identity. It is a critical functional requirement. If there isn't enough contrast between your text (the foreground) and its background, users with visual impairments—including color blindness, cataracts, or age-related macular degeneration—will find your content illegible.
In fact, even users with perfect vision struggle to read low-contrast text on mobile devices under glaring sunlight.
Our free Color Contrast Checker allows designers and developers to instantly verify whether their color pairings meet the global standards for accessibility outlined by the Web Content Accessibility Guidelines (WCAG).
The Web Content Accessibility Guidelines (WCAG) 2.1 is a robust framework developed by the W3C to make web content more accessible to people with disabilities. It defines success criteria across various levels (A, AA, and AAA).
For color contrast, the math relies on "Relative Luminance"—how bright one color is compared to another. This is expressed as a ratio ranging from 1:1 (no contrast, e.g., white text on a white background) to 21:1 (maximum contrast, e.g., black text on a white background).
Level AA is the de facto standard adopted by most corporations, universities, and government websites globally. Meeting AA compliance ensures your website is usable by the vast majority of people with visual impairments.
Level AAA is the strictest compliance level, intended for specialized websites serving populations with severe disabilities.
The mid-2010s saw a massive web design trend focusing on ultra-minimalism: tiny, light-gray text on a slightly lighter-gray background. While this might have looked sleek and modern on a perfectly ...
Looking for a more detailed deep-dive and advanced tips?
Read Full Article on our BlogYour data never leaves this device. All processing is handled locally by JavaScript.
WCAG 2.1 AA/AAA compliance checker for text and background colors
The quick brown fox
Lorem ipsum dolor sit amet consectetur adipiscing elit. This is how your text looks against the chosen background.
Small text (12px) — harder to read at low contrast.
Contrast Ratio
13.98:1
Rating
Excellent (AAA)
Requires ≥ 4.5:1
Requires ≥ 3:1
Requires ≥ 7:1
Requires ≥ 4.5:1