Skip to content

WCAG 2.2 Color Contrast Checker & Remediation

Check color contrast ratios against W3C WCAG 2.2 accessibility standards and get smart in-gamut remediation suggestions for AA and AAA compliance.

Contrast checker is ready. Enter or select colors to evaluate compliance.
WCAG 2.2 AA / AAA

WCAG 2.2 Contrast Checker

Color Selection

Popular Accessible Presets
Contrast RatioEnhanced Contrast (Passes AAA)
14.63:1

The relative luminance ratio calculated according to the official W3C WCAG 2.2 formula (L1 + 0.05) / (L2 + 0.05).

Normal Text✓ AA
Large Text✓ AA
Graphical Objects & UI✓ AA

WCAG 2.2 Conformance Outcomes

Normal Text

16px / Regular

Body text and inputs under 18pt (24px) or 14pt (18.66px) bold

Level AA (>= 4.5:1)Pass
Level AAA (>= 7.0:1)Pass

Large Text

>= 24px / 18.66px bold

Headings and text at least 18pt (24px) or 14pt (18.66px) bold

Level AA (>= 3.0:1)Pass
Level AAA (>= 4.5:1)Pass

Graphical Objects & UI

SC 1.4.11

Form borders, button outlines, and icons (WCAG 2.2 SC 1.4.11)

Level AA (>= 3.0:1)Pass
* WCAG SC 1.4.11 defines non-text contrast at Level AA only (no AAA criterion).

Live Preview

Normal Body Typography (16px / 400)

Good contrast is fundamental to inclusive web design. It ensures content is legible under varied lighting conditions and for people with low vision or color vision deficiencies.

Large Heading Typography (24px / 700)

Clear & Accessible Typography for Everyone

Interactive UI Components (WCAG SC 1.4.11)
Status Indicator

Smart Color Remediation & Suggestion Assistant

Need passing colors? Hold either foreground or background fixed to calculate the nearest in-gamut counterpart that satisfies your target ratio while minimizing color distance.

Hold Fixed
Target Conformance Ratio

Your current color pair already meets or exceeds the selected target ratio! (14.63:1 >= 4.5:1)

How WCAG 2.2 Color Contrast Works

Digital accessibility depends fundamentally on sufficient perceptual contrast between text, interface elements, and their background surfaces. The W3C Web Content Accessibility Guidelines (WCAG 2.2) establish clear mathematical criteria to ensure digital interfaces remain completely legible and operable for people with moderately low vision, color vision deficiencies (protanopia, deuteranopia, tritanopia), aging eyes, and under adverse ambient lighting conditions.

The W3C Relative Luminance & Contrast Formula

Contrast in WCAG is calculated using the relative luminance of colors in the standard sRGB color space. The relative luminance (L) of an sRGB color is determined by linearizing each 8-bit color channel (R, G, B) and weighting them according to human spectral eye sensitivity:

L = 0.2126 * R_linear + 0.7152 * G_linear + 0.0722 * B_linear
Where C_linear = (C / 255 <= 0.04045) ? (C / 255) / 12.92 : ((C / 255 + 0.055) / 1.055)^2.4

The contrast ratio between two colors is then defined as:

Contrast Ratio = (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 addition of the 0.05 offset represents ambient flare compensation. This yields a ratio ranging from 1.0:1 (identical colors) up to 21.0:1 (pure black on pure white).

WCAG 2.2 Success Criteria & Thresholds

  • Normal Text (WCAG SC 1.4.3 & 1.4.6): Body text, form field labels, and descriptions require at least 4.5:1 for Level AA and 7.0:1 for enhanced Level AAA.
  • Large Text (WCAG SC 1.4.3 & 1.4.6): Text that is at least 18pt (24px) regular weight or 14pt (18.66px) bold requires at least 3.0:1 for Level AA and 4.5:1 for Level AAA.
  • Graphical Objects & User Interface Components (WCAG SC 1.4.11): Visual information required to identify user interface components (such as form field borders, button outlines, and active state indicators) and graphical objects (such as standalone icons and chart elements) requires at least 3.0:1. Note that the W3C specification defines non-text contrast at Level AA only, without an AAA requirement.

Smart In-Gamut Color Remediation

When a selected color pairing fails your target contrast ratio, our remediation optimizer allows you to hold either the foreground or background color fixed. The engine searches candidate colors along the sRGB lightness dimension to find the exact counterpart that satisfies the selected target ratio (3.0:1, 4.5:1, or 7.0:1) while strictly minimizing the Euclidean color distance (ΔE) to your original design.

Frequently Asked Questions

How is the WCAG 2.2 contrast ratio calculated?
The contrast ratio is calculated using the W3C 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 in the sRGB color space. Ratios range from 1:1 (identical colors) to 21:1 (black on white).
What is the difference between WCAG Level AA and AAA?
Level AA is the standard legal and commercial accessibility baseline required by regulations worldwide (ADA, Section 508, EN 301 549). Level AAA provides enhanced contrast for users with more significant visual impairments, requiring 7.0:1 for normal body text and 4.5:1 for large text.
Does WCAG 2.2 have Level AAA for non-text UI components?
No. Success Criterion 1.4.11 (Non-text Contrast) is defined exclusively at Level AA with a minimum ratio of 3.0:1 for visual information required to identify user interface components and graphical objects. There is no AAA requirement for non-text contrast.
How does the Smart Remediation Optimizer find the suggested color?
The remediation algorithm holds your chosen anchor color fixed and searches in-gamut sRGB candidates along the lightness axis. It selects the exact color that satisfies your chosen target ratio (3.0:1, 4.5:1, or 7.0:1) while minimizing the Euclidean color distance (ΔE) to your original design.