DESIGN

WCAG Contrast Ratios Explained: How to Check Your Colors Pass AA

Low color contrast is the most common accessibility issue on the web. If your text does not have sufficient contrast against its background, millions of users with low vision, color blindness, or screen glare cannot read it. Our Contrast Checker measures the ratio and tells you if it passes WCAG AA and AAA standards.

What Is a Contrast Checker?

A contrast checker calculates the luminance ratio between a foreground color (text) and a background color, then evaluates it against the Web Content Accessibility Guidelines (WCAG). AA requires a ratio of at least 4.5:1 for normal text and 3:1 for large text. AAA requires 7:1 and 4.5:1 respectively.

How to Use Our Contrast Checker

  1. Enter your text (foreground) color and background color in HEX, RGB, or HSL.
  2. The tool calculates the contrast ratio and shows pass/fail for WCAG AA and AAA at both normal and large text sizes.
  3. A live preview shows how the text looks against the background.
  4. If the contrast fails, adjust colors until the ratio meets your target standard.

Why Use an Online Contrast Checker?

  • Legal compliance: WCAG compliance is required by law in many jurisdictions (ADA, Section 508, EAA). Failing contrast is the easiest issue for auditors to catch.
  • Better for everyone: High contrast benefits all users, not just those with disabilities — bright sunlight, dirty screens, and tired eyes all reduce readability.
  • Quick validation: Check a color pair in seconds without running a full accessibility audit.
  • Design confidence: Know that your color choices are accessible before handing off designs to development.

Common Use Cases

Designers defining color systems check every combination of text and background color against WCAG standards. A palette might include 10 colors, and each pair must be evaluated to determine which combinations are safe for text.

Developers reviewing design mockups use the checker to flag contrast issues before building. Catching problems in the design phase is much cheaper than fixing them after development and QA.

Content managers choosing colors for banners, CTA buttons, and promotional text need to ensure readability. A beautifully designed banner with unreadable text is worse than no banner at all.

Tips and Best Practices

  • Aim for AAA compliance (7:1) when possible, even if only AA (4.5:1) is legally required. The higher ratio provides a better experience for all users.
  • Do not rely on color alone to convey information. Use icons, underlines, or labels alongside color to ensure meaning is accessible.
  • Test contrast in both light and dark modes. Colors that pass in dark mode may fail in light mode and vice versa.

Ready to try it? Use our free Contrast Checker now — no signup required, works entirely in your browser.

Frequently Asked Questions

What contrast ratio is required for WCAG AA?

WCAG AA requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (18px+ bold or 24px+ regular). WCAG AAA requires 7:1 for normal text and 4.5:1 for large text.

Why does color contrast matter?

Low contrast makes text unreadable for people with low vision (affecting 1 in 12 men and 1 in 200 women for color blindness alone), and difficult for everyone in bright sunlight or on low-quality screens.

How is contrast ratio calculated?

Contrast ratio compares the relative luminance of two colors: (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color. A ratio of 1:1 means no contrast (same color) and 21:1 is maximum (black on white).