1. Related Design & Accessibility Tools
Sample brand colors from any screenshot in Image Color Picker or build accessible gradients in CSS Gradient & Shadow.
THE TOOLBOX / ACCESSIBILITY & DESIGN
Test foreground and background HEX pairs against WCAG 2.1 AA (4.5:1) and AAA (7:1) thresholds—with live typography preview and one-click AA Auto-Fix.
WCAG 2.1 Contrast Ratio (Rounded Down)
Accessible typography starts with contrast.
Body copy at 15px–16px should comfortably clear 4.5:1 for WCAG AA so readers on bright screens or with low vision can scan without strain.
WCAG 2.1 / 2.2 MATRIX
| Element | Definition | WCAG AA | WCAG AAA |
|---|---|---|---|
| Normal Body Text | < 24px regular or < 18.66px bold | 4.5 : 1 | 7.0 : 1 |
| Large Text / Headings | ≥ 24px regular or ≥ 18.66px bold | 3.0 : 1 | 4.5 : 1 |
| UI Borders & Icons | Inputs, focus rings, meaningful icons | 3.0 : 1 | N/A |
Sample brand colors from any screenshot in Image Color Picker or build accessible gradients in CSS Gradient & Shadow.
WCAG 2.1 Level AA requires at least 4.5:1 for normal body text and 3.0:1 for large text (≥ 18pt / 24px regular or ≥ 14pt / 18.66px bold) and UI borders. Level AAA requires 7.0:1 for normal text and 4.5:1 for large text.
If a color pair scores 4.496:1, standard rounding would display 4.50:1 even though it strictly fails WCAG AA (4.5:1). Rounding down guarantees a failing pair never looks like a pass.
Whenever your color pair falls below 4.5:1, the checker steps your foreground color toward darker or lighter shades to find the closest hue that passes WCAG AA 4.5:1.
No. Contrast ratio is symmetric ((L_lighter + 0.05) ÷ (L_darker + 0.05)). Swapping colors lets you preview dark-on-light vs. light-on-dark readability.
No. All sRGB linearization, luminance math, and JSON report exports run 100% locally inside your browser.