Color Contrast Checker

Test your color combinations for WCAG 2.1 accessibility compliance. Check contrast ratios between text and background colors to ensure your designs are readable for users with visual impairments.

Large Text Preview (18pt+)
Normal text preview for body content (14pt)
8.59:1
Contrast Ratio
WCAG AA
PASS
Normal Text (4.5:1)
WCAG AA
PASS
Large Text (3:1)
WCAG AAA
PASS
Normal Text (7:1)
WCAG AAA
PASS
Large Text (4.5:1)

How to Use This Checker

  1. Select or enter your foreground (text) color using the color picker or hex input field
  2. Select or enter your background color using the same methods
  3. Use the swap button to quickly reverse the foreground and background colors
  4. View the live preview to see how both large and normal text appears with your color combination
  5. Check the contrast ratio displayed prominently in the results section
  6. Review all four WCAG compliance indicators to understand which standards your colors meet

What is WCAG Color Contrast?

WCAG (Web Content Accessibility Guidelines) defines minimum contrast ratios to ensure text is readable by people with moderately low vision or color deficiencies. The contrast ratio compares the relative luminance of two colors on a scale from 1:1 (no contrast, same color) to 21:1 (maximum contrast, black on white). This measurement helps designers create interfaces that are usable by the widest possible audience.

Meeting WCAG standards is not only good practice but often legally required for websites serving the public. In many countries, including the United States (ADA), European Union, and others, government websites and public services must meet accessibility standards. Poor contrast affects approximately 8% of men and 0.5% of women who have some form of color vision deficiency, plus millions more with age-related vision loss or situational impairments like screen glare.

WCAG 2.1 Contrast Requirements

How Contrast Ratio is Calculated

The contrast ratio formula uses relative luminance values:

Contrast = (L1 + 0.05) / (L2 + 0.05)

Where L1 is the lighter color's luminance and L2 is the darker. Luminance is calculated from RGB values using the sRGB color space formula, which weights green (71.52%) more heavily than red (21.26%) and blue (7.22%) to match human visual perception. The 0.05 offset accounts for ambient light reflections on real screens.

Tips for Better Contrast

Common Color Combinations