Color Picker & WCAG Contrast Checker

Pick a foreground and background color, see the contrast ratio, and check WCAG AA / AAA compliance for normal text, large text, and UI components. Essential for accessible web design.

Foreground (text)

Background

Try:
The quick brown fox jumps over the lazy dog. 0123456789 โ€” small body text at 14px regular.
Bold 18.66px โ€” heading-sized bold text counts as “large” per WCAG.
24px large text โ€” readable on a phone from a meter away.
โ€”
Pick two colors to see the contrast.
AA โ€” Normal textโ‰ฅ 4.5 : 1โ€”
AA โ€” Large textโ‰ฅ 3 : 1โ€”
AA โ€” UI componentsโ‰ฅ 3 : 1โ€”
AAA โ€” Normal textโ‰ฅ 7 : 1โ€”
AAA โ€” Large textโ‰ฅ 4.5 : 1โ€”
APCA (Lc)informationalโ€”

What is contrast ratio?

The WCAG 2.x contrast ratio measures how different two colors are in terms of relative luminance โ€” a weighted measure of how bright a color appears to a typical sighted user. The value ranges from 1:1 (same color โ€” invisible) to 21:1 (pure black on pure white, maximum possible). It's computed by linearising each sRGB channel, blending via ITU-R BT.709 coefficients (0.2126 ยท R + 0.7152 ยท G + 0.0722 ยท B), then applying (L1 + 0.05) / (L2 + 0.05).

WCAG 2.1 pass thresholds

  • AA โ€” Normal text: at least 4.5 : 1. This is the legal minimum in many jurisdictions (EU Web Accessibility Directive, US Section 508, AODA in Ontario).
  • AA โ€” Large text: at least 3 : 1. Large = โ‰ฅ 18pt regular or โ‰ฅ 14pt bold (approximately 24px / 18.66px).
  • AA โ€” UI components & graphics (1.4.11): at least 3 : 1 for button borders, form-field outlines, and icon-only controls against their adjacent background.
  • AAA โ€” Normal text: at least 7 : 1. Required for some government sites and recommended for long-form reading.
  • AAA โ€” Large text: at least 4.5 : 1.

APCA โ€” the future of contrast

The current WCAG contrast formula is known to be imperfect: it over-rewards very dark colors and under-rewards some mid-tone pairs. The proposed WCAG 3 successor, APCA (Advanced Perceptual Contrast Algorithm), returns a directional Lc score from roughly โˆ’108 to +108. Positive Lc = dark text on light background; negative = reverse. Rough guidance: |Lc| โ‰ฅ 75 for body text, โ‰ฅ 60 for large text, โ‰ฅ 45 for non-text. APCA is not yet legally required but is used by some design systems (Figma, Adobe Spectrum 2).

Accessibility matters for SEO too

Google's Core Web Vitals don't directly score contrast, but Lighthouse's accessibility audit does โ€” and Google has confirmed accessibility is a signal for page experience. Pages that fail WCAG AA contrast often trigger “Text not readable” or “Low contrast” warnings in Search Console's Page Experience report, hurting rankings and featured-snippet eligibility.

Related tools