Color & Visuals6 min readUpdated 2026-11-15

WCAG Color Contrast Requirements: 4.5:1, 7:1 & 3:1 Explained

Learn exact WCAG 2.2 contrast thresholds for body copy, bold headings, buttons, form borders, icons, and focus indicators.

Key Takeaways

  • Normal text requires 4.5:1 at Level AA (7:1 at AAA).
  • Large text (>=24px regular or >=18.67px bold) requires 3:1 at AA (4.5:1 at AAA).
  • UI borders, meaningful icons, and focus indicators require 3:1 against adjacent colors (1.4.11).

How WCAG Calculates Contrast

WCAG measures contrast ratio from 1:1 (no contrast) to 21:1 (black on white) using linearized sRGB relative luminance. Green contributes 71.52% of perceived luminance, red 21.26%, and blue 7.22%.

Accessible Slate Text vs. Subtle Gray

Avoid
.caption { color: #94a3b8; background: #ffffff; } /* 2.56:1 - Fails AA */
Recommended Pattern
.caption { color: #475569; background: #ffffff; } /* 7.58:1 - Passes AA & AAA */

Frequently Asked Questions

Yes, if placeholder text conveys helpful instructions or labels, it must meet 4.5:1 contrast against the input background.

Interactive Tools for This Guide

Color Contrast

Color Contrast Checker

Measure exact WCAG 2.2 luminance contrast for text, headings, and UI components.

Open tool

Continue Reading