WCAG Color Contrast Checker

Scan image mockups for text contrast ratios. Validate WCAG 2.1 & APCA compliance with real-time color blindness simulation.

WCAG 2.1 Contrast Ratio
4.46:1
AA Normal
4.5:1 (Small text)
FAIL
AA Large
3.0:1 (≥18pt)
PASS
AAA Normal
7.0:1 (Small text)
FAIL
AAA Large
4.5:1 (≥18pt)
PASS
APCA (WCAG 3.0 Preview) BETA
Lc 65.0
Minimum for large text (24px+)

Upload Mockup

Drag & Drop a PNG or JPG to analyze pixels completely client-side

Understanding WCAG Contrast Levels

The Web Content Accessibility Guidelines (WCAG) 2.1 establish strict mathematical thresholds for color contrast. These ratios ensure that text remains visually legible for users experiencing low vision, color blindness, or age-related macular degeneration. In 2026, accessibility is not just an ethical obligation — it is a legal requirement for web platforms under the ADA and EAA.

WCAG Level Text Size Requirement Contrast Ratio
Level AA (Standard) Normal Text (< 18pt or 24px) 4.5:1
Level AA (Standard) Large Text (≥ 18pt, or 14pt Bold) 3.0:1
Level AAA (Strict) Normal Text (< 18pt or 24px) 7.0:1
Level AAA (Strict) Large Text (≥ 18pt, or 14pt Bold) 4.5:1

How is the Contrast Ratio Calculated?

WCAG contrast is calculated using the Relative Luminance of the two colors. The formula converts sRGB hex values (Red, Green, Blue) into linear luminance values, taking into account that the human retina is vastly more sensitive to green light (which determines brightness) than blue light.

The WCAG Math Formula: (L1 + 0.05) / (L2 + 0.05) Where L1 is the relative luminance of the lighter color, and L2 is the relative luminance of the darker color. The 0.05 offset is a critical constant that accounts for ambient light flare reflecting off a standard glass monitor.

The Future: APCA vs WCAG 2.1

If you are a UI/UX designer building a modern Dark Mode interface, you have likely encountered a highly frustrating scenario: perfectly legible white text on a colorful dark background inexplicably fails the WCAG 2.1 checker. Why does this happen?

The legacy WCAG 2.1 contrast formula is widely acknowledged by experts to be mathematically flawed in dark contexts because it scales luminance linearly. Human vision, however, perceives contrast logarithmically.

Enter APCA (WCAG 3.0)

APCA (Accessible Perceptual Contrast Algorithm) is the revolutionary new color algorithm drafted for WCAG 3.0. Instead of a simple linear ratio, APCA generates a Lightness Contrast (Lc) score ranging from 0 to 106. APCA accounts for human visual perception, font weight, and spatial frequency, drastically reducing false failures in Dark Mode.

  • Lc 90+: Preferred for standard body text (14px/400w).
  • Lc 75: Minimum acceptable for body text (16px/400w).
  • Lc 60: Minimum for large text (24px) or bold text (18px/600w).
  • Lc 45: Minimum for extra large text (36px) or UI components like disabled buttons.

Simulating Color Blindness (CVD)

Approximately 1 in 12 men and 1 in 200 women experience some form of Color Vision Deficiency (CVD). To ensure a universally accessible experience, our tool features a hardware-accelerated SVG matrix simulator that mathematically shifts the RGB spectrum of your uploaded mockup in real-time.

Deuteranopia (Green-Blind)

The most common form of color blindness. Reds, greens, and yellows become difficult to distinguish, often blurring into a muddy brown spectrum.

Protanopia (Red-Blind)

Reds appear extraordinarily dark, often indistinguishable from black. Vital red error states (like invalid form inputs) vanish completely without non-color cues.

Tritanopia (Blue-Blind)

A rare deficiency where blues and greens are confused, and yellows appear violet, grey, or white. Highly problematic for blue hyperlink text.

Accessible Design Beyond Math

Achieving a 4.5:1 ratio is only the baseline. True ADA accessibility compliance requires designing systems that do not rely exclusively on color hue to convey critical information.

  • Never Rely on Color Alone: If you use a green border to indicate a successful form submission and a red border for a validation error, a user with Deuteranopia will see two identical brown borders. Always pair color shifts with an SVG icon or explicit helper text.
  • Vary Luminance, Not Just Hue: Adjacent interactive elements (like data slices in a complex pie chart) should vary heavily in luminance (light vs dark) rather than just hue (red vs green).
  • Always Underline Hyperlinks: A hyperlink embedded within a dense paragraph should be universally distinguishable without requiring the user to hover over it. An underline is a standardized, non-color-reliant affordance.

Frequently Asked Questions

Enter APCA (WCAG 3.0)

Why does white text on a colorful background fail in Dark Mode?

This is a known mathematical flaw in the legacy WCAG 2.1 algorithm, which scales luminance linearly. It mathematically penalizes light text on colorful backgrounds, even if it looks perfectly legible to the human eye. We recommend referencing the APCA (WCAG 3.0) score provided in our tool. If the APCA Lc score is above 75, your text is highly legible, and you can safely ignore the WCAG 2.1 false failure in most practical scenarios.

Does this tool store my uploaded mockups?

Absolutely not. The canvas eyedropper and color blindness simulator run 100% locally in your web browser utilizing HTML5 Canvas APIs. Your proprietary designs, wireframes, and mockups are never uploaded to our servers, ensuring total intellectual property privacy.

Do disabled buttons need to meet WCAG contrast ratios?

According to strict WCAG 2.1 guidelines, disabled user interface components (like greyed-out submit buttons or read-only text inputs) are actively exempt from contrast requirements. However, UX best practices suggest ensuring they are still distinguishable from the background to prevent user confusion.

How do I check contrast on an image or screenshot without inspecting the CSS?

Simply drag and drop your screenshot or mockup image into the canvas zone above. Click the eyedropper icon next to the Foreground Color input, and click directly on the text pixel in the image. Then, do the same for the Background Color. The tool will instantly calculate the hex ratio without requiring you to inspect the DOM or write any CSS.

Do UI icons and graphical borders require contrast compliance?

Yes. Under WCAG 2.1, the "Non-text Contrast" (Success Criterion 1.4.11) dictates that active UI components—such as buttons, input borders, focus indicators, and essential graphical icons—must meet a minimum contrast ratio of 3.0:1 against adjacent background colors.

Rate WCAG Color Contrast Checker

Help us improve by rating this tool.

4.8/5
663 reviews