WCAG 2.2 Color Contrast Guide: 4.5:1 vs. 3:1 Thresholds for Web UI
Readable color contrast is one of the highest-impact accessibility upgrades you can make. Here is how WCAG 2.2 contrast ratios work in practice and how to test palettes accurately.
How WCAG relative luminance and contrast ratios are calculated
WCAG 2.2 defines contrast ratio as (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 sRGB space. Ratios range from 1:1 (identical colors) up to 21:1 (pure black #000000 on pure white #FFFFFF).
Because human eyes perceive green far more brightly than blue, two colors with similar hex brightness can yield wildly different luminance values. That is why testing every text-on-background pair numerically beats eyeballing colors on a bright studio monitor.
Which threshold applies: 4.5:1, 3:1, or 7:1?
Applying the right WCAG 2.2 threshold depends on text size, font weight, and whether an element is text or a non-text UI boundary.
- Normal text (WCAG AA): at least 4.5:1. Use this for paragraphs, labels, inputs, navigation links, and captions.
- Large text (WCAG AA): at least 3:1. Defined as 18 pt (24 px) regular or 14 pt (about 18.66 px) bold and larger.
- UI components and graphical objects (SC 1.4.11): at least 3:1 for active borders, icons, focus rings, and chart indicators.
- Enhanced contrast (WCAG AAA): 7:1 for normal text and 4.5:1 for large text, ideal for dense documentation and reading apps.
Common mistakes: rounding up 4.48:1 and ignoring dark mode
A frequent mistake is treating #777777 on #FFFFFF (roughly 4.48:1) as passing AA normal text by rounding up to 4.5:1. WCAG explicitly forbids rounding failing ratios up—darkening the gray slightly to #767676 reaches 4.54:1 and passes cleanly.
Another common pitfall is testing only light mode. Saturated blues and muted slates that pass on white often fail on dark navy cards (#181c24). Always verify both light and dark token pairs independently.
Beyond contrast: complete visual accessibility
Passing a color pair in CreamTools WCAG Color Contrast Checker is a strong start, but contrast alone does not complete an accessibility review. Also check focus outlines, hover/active states, translucent overlays, and avoid conveying status through color alone without icons or text labels.
UI palette accessibility checklist
- Target at least 4.5:1 for body text, helper text, and placeholder/input labels.
- Never round a failing ratio like 4.48:1 up to 4.5:1.
- Verify button text, disabled states, and links in both light mode and dark mode.
- Pair color-coded alerts (red/green/amber) with clear icons or text badges.
Try the related tools
Check opaque sRGB text and background colors against WCAG AA and AAA contrast thresholds.
Proportional resolution scaler, common social media & 4K/1080p video presets, and orientation preview.
Create square PNG website icons at 16, 32, 48 and 180 pixels from one PNG or JPEG. Preview each icon at its actual size before downloading.