RGBlind

WCAG Contrast Checker

Check if your text is readable. Enter two colors and instantly see if they meet WCAG 2.1 accessibility standards for AA and AAA compliance.

WCAG 2.1 / 2.2
Real-time
CVD Preview

Color Selection

Text Size (affects thresholds)

Bold Text(14pt+ = large)

Quick Presets

Live Preview

The quick brown fox jumps over the lazy dog

Pack my box with five dozen liquor jugs.

Basics

What is a WCAG Contrast Checker?

A contrast checker helps you test if your text is readable against its background. The WCAG (Web Content Accessibility Guidelines) set minimum contrast ratios to ensure people with low vision, color blindness, or those viewing screens in bright sunlight can read your content comfortably.

Here's what the numbers mean: Normal text needs at least a 4.5:1 contrast ratio for Level AA (the standard most websites aim for) and 7:1 for Level AAA (enhanced accessibility). Large text—that's 18pt or 14pt bold—gets a bit of slack: 3:1 for AA and 4.5:1 for AAA, because bigger letters are naturally easier to read.

Why it matters

Why Color Contrast Matters

Light gray text on a white background might look sleek, but it's nearly invisible to millions of users. Poor contrast is actually one of the most common accessibility issues on the web—and one of the easiest to fix.

Beyond accessibility, good contrast just makes your site easier to use for everyone. It reduces eye strain, speeds up reading, and looks more professional. Win-win.

Getting started

How to Use This Tool

  1. Pick your colors — Use the color pickers or type in HEX values directly.
  2. Choose your text size — Normal or large? This affects which thresholds apply.
  3. Check the results — You'll see pass/fail for AA and AAA, plus exactly how much more contrast you need if it fails.
  4. Check the CVD preview — See how your colors look to people with color blindness.

Reference

Understanding WCAG Compliance Levels

WCAG Level AA

The baseline for web accessibility. Most websites aim for this level.

Normal text
4.5:1
Large text (18pt/14pt bold)
3:1

WCAG Level AAA

Enhanced accessibility for users with severe visual impairments.

Normal text
7:1
Large text (18pt/14pt bold)
4.5:1

Practice

Quick Tips for Better Contrast

  • Test early. Check contrast during design, not right before launch.

  • Aim for AA minimum. Use AAA for important text like navigation and forms.

  • Don't forget buttons. UI components need 3:1 contrast too (WCAG 2.1).

  • Test on different devices. Colors look different on phones vs. monitors.

  • Color isn't everything. Use icons and labels alongside color coding.

Under the hood

The Math Behind the Ratio

Contrast ratio isn't about how different two colors look. It's built entirely from relative luminance — a weighted measure of how much light a color emits. Green carries the most weight (0.7152), red is next (0.2126), and blue counts for surprisingly little (0.0722). The two luminances go into (L1 + 0.05) / (L2 + 0.05), lighter over darker, and that's your ratio. It runs from 1:1 (identical) to 21:1 (pure black on pure white).

This explains something that trips up a lot of designers. Gray text on white is the classic case:

Grey text on a white background, contrast ratio and WCAG AA verdict
ColorOn whiteVerdict
#9999992.85:1Fails AA for any text size.
#7777774.48:1Fails AA for normal text by 0.02.
#7676764.54:1Passes. One hex step darker.
#5959597.00:1Exactly the AAA threshold.

If you take one number away, make it #767676. That's the lightest gray that still passes AA for body text on white, and it settles a lot of arguments about whether placeholder text is "light enough."

Limitations

Where Contrast Checking Stops Helping

Passing AA does not mean your colors are distinguishable from each other. Contrast is measured against a background, one pair at a time — nothing in the formula asks whether two foreground colors can be told apart.

Here's the case worth remembering. Take a red #D32F2F and a green #2E7D32. On white they measure 4.98:1 and 5.13:1 — both comfortably pass AA. Put them next to each other, though, and the ratio between them is 1.03:1. They carry almost identical luminance. Strip the hue away and they are the same color.

For body text on white, that's fine — each one is readable. For a chart legend, a pass/fail badge, or a status dot, it's a real problem: anyone with red-green color vision deficiency sees two shapes that match. Your contrast checker will report all-clear the whole time, because it was never asked that question.

The fix isn't more contrast — it's a second signal. Vary lightness as well as hue, or add an icon, label, or pattern. When color separates meaning rather than just carrying it, run the pair through our Color Blindness Simulator or the Color Blind Color Picker as well. Contrast and color distinction are two different tests, and you need both.

FAQ

Frequently Asked Questions

What is a good contrast ratio for web accessibility?

For WCAG Level AA, normal text needs 4.5:1 and large text (18pt or 14pt bold) needs 3:1. For AAA, those numbers jump to 7:1 and 4.5:1. Most websites aim for AA compliance as a baseline.

How is color contrast calculated?

The formula compares the relative luminance (brightness) of two colors. It divides the lighter color's luminance by the darker color's luminance, with a small offset to prevent division by zero. The result is a ratio from 1:1 (identical colors) to 21:1 (black on white).

What counts as "large text" in WCAG?

Large text is 18pt (24px) or larger for regular weight, or 14pt (about 19px) or larger for bold text. Large text has lower contrast requirements because bigger letters are inherently easier to read.

Do I need to check contrast for buttons and icons?

Yes! WCAG 2.1 Success Criterion 1.4.11 requires UI components like buttons, form inputs, and icons to have at least 3:1 contrast against their background. This tool checks that too.

What about text over images?

Text over images must still meet contrast requirements. If the image has varying colors, test against the darkest and lightest areas where text appears. Pro tip: Use a semi-transparent overlay behind text to guarantee readability.

Explore More Color Vision Tools

Discover our suite of color accessibility tools for designers, developers, and educators.