RatedWithAI
Accessibility scanner
Test your color combinations against WCAG 2.1 AA and AAA contrast requirements. Get instant pass/fail results with a live text preview.
Contrast Ratio
Required ratio: 4.5:1
Required ratio: 3:1(≥18pt or 14pt bold)
Required ratio: 7:1
Required ratio: 4.5:1(≥18pt or 14pt bold)
Large Text Preview (24px Bold)
This is 18pt text which qualifies as “large text” under WCAG guidelines. Large text has a lower contrast requirement of 3:1 for AA compliance.
This is normal body text (16px). Under WCAG 2.1, normal text requires a minimum contrast ratio of 4.5:1 for Level AA and 7:1 for Level AAA compliance.
This is small text (14px) — the kind used in captions, footnotes, and UI labels. Good contrast here is essential for readability.
Don't test colors one by one. Our scanner automatically detects every contrast failure on your pages — plus 50+ other WCAG violations.
Try RatedWithAI Free →No credit card. No signup. Scan any URL.
Color contrast is one of the most fundamental aspects of web accessibility. When text doesn't have enough contrast against its background, it becomes difficult or impossible to read for the roughly 300 million people worldwide with low vision, the 250 million with color vision deficiencies, and even for anyone using a screen in bright sunlight.
The Web Content Accessibility Guidelines (WCAG) establish specific, measurable contrast ratios to ensure text remains readable. These ratios are calculated using a formula that compares the relative luminance of two colors — essentially measuring the difference in perceived brightness between your text and its background.
A contrast ratio is expressed as a number from 1:1 (no contrast — identical colors) to 21:1 (maximum contrast — pure black on pure white). The ratio is calculated by comparing the relative luminance values of two colors using a formula defined in WCAG 2.1 Success Criterion 1.4.3.
For example, dark gray (#333333) on white (#FFFFFF) has a contrast ratio of 12.63:1 — comfortably above all WCAG thresholds. Light gray (#999999) on white drops to just 2.85:1, failing even the most lenient WCAG requirement.
WCAG defines two conformance levels for contrast. Level AA is the standard referenced by most legal and regulatory frameworks, including the Americans with Disabilities Act (ADA), Section 508 of the Rehabilitation Act, and the European Accessibility Act (EAA). It requires:
Level AAA provides enhanced accessibility and is recommended for body text, especially on content-heavy pages. It requires:
While AAA isn't legally required in most jurisdictions, meeting these higher thresholds significantly improves readability for all users and provides a stronger legal safety net against accessibility lawsuits.
WCAG 2.1 introduced Success Criterion 1.4.11, which extends contrast requirements beyond text to user interface components and graphical objects. Form field borders, buttons, icons, chart segments, and focus indicators must all maintain a minimum 3:1 contrast ratio against adjacent colors. You can use this color contrast checker to verify those combinations too.
Low contrast is the most common accessibility failure on the web. The WebAIM Million study found that 81% of home pages had insufficient text contrast — making it the single most prevalent WCAG violation. Here are the most frequent mistakes:
While this color contrast checker is great for testing individual color pairs during design, real websites have hundreds of color combinations across elements, states, and responsive breakpoints. A single page might use different text colors for headings, body text, links, buttons, captions, and error messages — each against potentially different backgrounds.
For comprehensive contrast auditing, automated accessibility scanners like RatedWithAI can test every text element on your page simultaneously, flagging the specific elements that fail and showing you exactly what to fix.
A contrast ratio measures the difference in luminance (perceived brightness) between two colors. It's expressed as a ratio like 4.5:1, where higher numbers mean more contrast. The maximum possible ratio is 21:1 (black on white). WCAG uses contrast ratios to ensure text remains readable for people with low vision or color vision deficiencies.
WCAG 2.1 Level AA requires a minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text (18pt/24px or 14pt/18.5px bold). Level AAA requires 7:1 for normal text and 4.5:1 for large text. Most legal and regulatory standards (ADA, Section 508, EAA) reference Level AA as the minimum.
Under WCAG, large text is defined as 18pt (24px) or larger at regular weight, or 14pt (approximately 18.5px) or larger when bold. Large text has a lower contrast requirement because larger characters are inherently easier to read.
The contrast ratio requirements are the same in WCAG 2.0, 2.1, and 2.2. Success Criterion 1.4.3 (Contrast Minimum) and 1.4.6 (Enhanced Contrast) have not changed between versions, so this tool works for all current WCAG versions.
Most legal frameworks (ADA, Section 508, European Accessibility Act) reference WCAG AA, not AAA. However, meeting AAA contrast (7:1) provides better readability for users with low vision and is recommended as a best practice, especially for body text.
WCAG 2.1 Success Criterion 1.4.11 (Non-text Contrast) requires a minimum 3:1 contrast ratio for UI components and graphical objects. This includes form field borders, icon buttons, chart segments, and focus indicators. Use this tool to check those color pairs too.
This tool checks individual color pairs. To automatically scan your entire website for contrast issues along with other WCAG violations, use the RatedWithAI accessibility scanner — it tests every element on your pages and reports all contrast failures with specific fix recommendations.