AccessibilityBy PaletteKey Team 6 min read

WCAG 2.2 Color Contrast Standards & Accessibility

Ensure your website text and UI components meet legal and ethical accessibility benchmarks.

Key Technical Takeaway

Color contrast measures the difference in relative luminance between foreground text and background surface. WCAG 2.2 defines Level AA thresholds at 4.5:1 for normal body text and 3:1 for large text or UI controls.

The WCAG 2.2 Contrast Guidelines

The Web Content Accessibility Guidelines (WCAG 2.2) mandate minimum contrast ratios between text content and its immediate background container. Ratios range from 1:1 (identical colors, unreadable) to 21:1 (pure black on pure white).

/* Minimum Contrast Ratios */
Level AA Normal Text (<18pt / 24px): 4.5 : 1
Level AA Large Text (>=18pt / 24px or 14pt bold): 3.0 : 1
Level AA UI Controls & Icons: 3.0 : 1
Level AAA Normal Text: 7.0 : 1
Level AAA Large Text: 4.5 : 1

Calculating Relative Luminance

Luminance measures the perceived brightness of a color normalized between 0 (black) and 1 (white). Green contributes the most to human perceived brightness (~71.5%), followed by Red (~21.2%) and Blue (~7.2%).

  • Never rely solely on visual intuition; test with a mathematical contrast calculator.
  • Consider environmental factors like low screen brightness, smartphone glare, and outdoor viewing.
  • Placeholder text, button labels, and icon states must satisfy the 3:1 contrast ratio.

Put Theory into Practice with Free Color Tools

Apply the concepts from this guide directly in your web workflow with our interactive tools.