Image & CSS · WCAG 2.2

WCAG 2.1 / 2.2 Color Contrast Ratio & Accessibility Checker

Audit text, muted labels, and button contrast ratios in real time against WCAG AA (4.5:1 normal, 3.0:1 large) and AAA (7.0:1) standards using exact sRGB luminance math.

✓ 100% Browser-Local · Zero Upload Reviewed: 2026-11-26

Initializing local browser workspace...

Guarantee Readable Typography in Light and Dark Themes

Low-contrast gray text on white or dark-gray backgrounds hurts real-world mobile readability, fails Google Lighthouse Accessibility audits, and exposes commercial websites to ADA/EAA accessibility compliance risks.

  • Exact W3C WCAG 2.1/2.2 relative luminance formula ((L1 + 0.05) / (L2 + 0.05))
  • Simultaneous PASS/FAIL evaluation for AA Normal (4.5:1), AA Large (3.0:1), and AAA (7.0:1)
  • Live interactive preview showing 24px bold headings, 16px body copy, and button outlines
  • Dual color pickers plus direct HEX code entry for rapid design-system tuning
  • 100% browser-local with zero external dependencies

Step-by-Step Guide

  1. Pick or enter your Foreground (text) HEX color and Background surface HEX color.
  2. Check the exact Contrast Ratio (ranging from 1:1 up to 21:1) and AA/AAA PASS indicators.
  3. Inspect the live right-hand preview card across display heading, body text, and UI button borders.
  4. Darken text or lighten background shades until AA Normal (4.5:1+) passes cleanly.

Three Accessibility Contrast Mistakes Designers Miss

Failing Muted Placeholder & Caption Text

Main body copy often passes 10:1 while form labels, input placeholders, and footer links quietly sit at 2.8:1—failing Lighthouse accessibility audits.

White Text on Bright Green, Orange, or Cyan Buttons

Classic bright green (#10B981) with white text only scores ~2.5:1 (FAIL). Switching to a deeper forest green (#0E5A43) lifts contrast past 7.5:1 (AAA PASS).

Testing Light Mode Only and Forgetting Dark Mode

Dark-mode surfaces require re-checking accent links and red error alerts—deep crimson (#B42318) passes on ivory paper but fails on charcoal dark backgrounds.

Where Teams Use WCAG Contrast Audits

  • Passing 100/100 Google Lighthouse Accessibility scores for SEO and European Accessibility Act compliance.
  • Validating both Light Mode and Dark Mode CSS color token pairs before launch.
  • Checking QR code foreground/background legibility for printed packaging.

Frequently Asked Questions

What qualifies as 'Large Text' under WCAG 2.1/2.2?

WCAG defines large text as 18pt (24px) regular weight or 14pt (18.66px) bold weight and larger—requiring at least a 3.0:1 ratio for AA compliance.

What contrast ratio does non-text UI (icons, input borders, focus rings) require?

WCAG 2.1 Success Criterion 1.4.11 requires at least a 3.0:1 contrast ratio for essential graphical objects and active UI boundaries against adjacent colors.

Does higher contrast also help mobile outdoor readability?

Yes—hitting 7:1+ for primary body copy keeps calculators and pricing tables effortlessly readable in bright sunlight and on lower-brightness screens.

Local Privacy Guarantee: Contrast calculations execute purely in your browser using W3C sRGB relative luminance equations.