RatedWithAI

RatedWithAI

Accessibility scanner

🎨 Free Tool — No Signup Required

Color Contrast
Checker

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

14.63: 1
✓ Passes all WCAG levels

WCAG AA Normal Text

✓ Pass

Required ratio: 4.5:1

WCAG AA Large Text

✓ Pass

Required ratio: 3:1(≥18pt or 14pt bold)

WCAG AAA Normal Text

✓ Pass

Required ratio: 7:1

WCAG AAA Large Text

✓ Pass

Required ratio: 4.5:1(≥18pt or 14pt bold)

Live Preview

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.

Check your entire website's contrast issues

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.

Understanding WCAG Color Contrast Requirements

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.

What Is a Contrast Ratio?

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 AA vs. AAA: Which Level Do You Need?

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:

  • 4.5:1 for normal text (below 18pt / 24px)
  • 3:1 for large text (18pt+ or 14pt+ bold)

Level AAA provides enhanced accessibility and is recommended for body text, especially on content-heavy pages. It requires:

  • 7:1 for normal text
  • 4.5:1 for large text

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.

Non-Text Contrast (WCAG 1.4.11)

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.

Common Contrast Mistakes to Avoid

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:

  • Light gray text on white backgrounds — a trend in "minimalist" design that sacrifices readability for aesthetics
  • Placeholder text in form fields — default placeholder colors rarely meet the 4.5:1 requirement
  • Text over images or gradients — contrast can vary dramatically across the image, creating invisible text in some areas
  • Colored links without underlines — links that rely only on color must have 3:1 contrast against surrounding body text
  • Disabled state styling — while WCAG exempts disabled controls from contrast requirements, users still need to identify them

Beyond Individual Colors: Full-Page Scanning

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.

Frequently Asked Questions

What is a color contrast ratio?

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.

What are the WCAG contrast requirements?

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.

What counts as 'large text' in WCAG?

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.

Does this checker test WCAG 2.1 or 2.2?

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.

Do I need to meet WCAG AAA contrast?

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.

What about non-text elements like icons and borders?

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.

Can this tool check my entire website's contrast?

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.