Guide

THE TOOLBOX / ACCESSIBILITY & DESIGN

WCAG color contrast,
checked & auto-fixed live.

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.

Try Pairings:

Foreground & Background Colors

WCAG 2.1 Contrast Ratio (Rounded Down)

15.47 : 1
AAA PASS
Normal Text · AA
Min 4.5:1 · Body copy (< 18pt)
PASS
Large Text · AA
Min 3:1 · ≥ 18pt or 14pt bold
PASS
Normal Text · AAA
Min 7:1 · Enhanced readability
PASS
Large Text · AAA
Min 4.5:1 · Enhanced headings
PASS

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.

Outlined Button / UI Border (3:1+)

WCAG 2.1 / 2.2 MATRIX

Minimum contrast ratios for text, headings, and UI components.

ElementDefinitionWCAG AAWCAG AAA
Normal Body Text< 24px regular or < 18.66px bold4.5 : 17.0 : 1
Large Text / Headings≥ 24px regular or ≥ 18.66px bold3.0 : 14.5 : 1
UI Borders & IconsInputs, focus rings, meaningful icons3.0 : 1N/A

Frequently Asked Questions

What contrast ratios are required for WCAG 2.1 AA and AAA?

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.

Why does the displayed ratio round down instead of rounding up?

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.

How does the one-click Auto-Fix to AA button work?

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.

Does swapping foreground and background colors change the contrast ratio?

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.

Are my brand colors saved or sent to a server?

No. All sRGB linearization, luminance math, and JSON report exports run 100% locally inside your browser.