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 calibrated 4K monitor in a dark studio, it was an unmitigated disaster for real-world usability.
Beyond empathy and usability, there are severe legal consequences for ignoring accessibility. In many jurisdictions (such as under the ADA in the United States or the European Accessibility Act), a website is considered a place of public accommodation. Failing to meet WCAG AA contrast standards opens businesses to significant legal liability and accessibility lawsuits.
Search engines like Google prioritize user experience. While Google hasn't explicitly stated that a low WCAG contrast score harms rankings, the secondary metrics certainly do. If a user lands on your site via a mobile search and bounces immediately because the text is unreadable in the sun, that rapid bounce rate negatively impacts your SEO.
Our tool is designed to be as fast and friction-less as possible while providing comprehensive feedback.
What happens when your brand's strict style guide fails the contrast test?
#808080 (medium gray) on #FFFFFF (white) fails accessibility (approx 3.9:1). The lightest pure gray tone you can use on a white background and still pass AA for normal text is #767676. Write that down; it is the most important hex code in UI design!Your 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