Skip to main content
DevBench
👁

Contrast Checker (WCAG)

DevOffline-ready

Contrast Checker calculates the luminance contrast ratio between any two colors and tests against WCAG 2.2 requirements: Level AA requires 4.5:1 for normal text and 3:1 for large text (18px+ or 14px+ bold); Level AAA requires 7:1. Enter hex codes or use the color pickers, and the ratio and pass/fail badges update in real time. Essential for accessible web design. Runs in your browser.

Related: ColorPaletteMarkdown Preview

Your files and inputs stay in your browser — nothing is uploaded or stored.

Preview

Large text — 24px bold

Large text — 18.66px regular

Normal body text at 16px. The quick brown fox jumps over the lazy dog. WCAG AA requires 4.5:1 contrast for text under 18pt (or under 14pt bold).

Small text 14px — same paragraph at a smaller size.

Contrast ratio

7.07:1

21:1 is the maximum possible (black on white)

AA — Normal text

Min 4.5:1

Pass

AA — Large text

Min 3:1

Pass

AA — UI components

Min 3:1

Pass

AAA — Normal text

Min 7:1

Pass

AAA — Large text

Min 4.5:1

Pass

WCAG color contrast checker

Calculates the contrast ratio between a foreground and background colour and checks it against WCAG 2.1 accessibility guidelines. Sufficient contrast is essential for users with low vision and in bright ambient light conditions.