Contrast Checker

Check WCAG 2.1 contrast ratio between two colors.

Works Offline
Privacy First
No Login
No API

Colors

Live sample

Aa Sample Text

The quick brown fox jumps over the lazy dog.

WCAG 2.1 result

17.74:1
AA Normal: PassAAA Normal: PassAA Large: PassAAA Large: Pass

Normal text requires 4.5:1 (AA) / 7:1 (AAA). Large text (18pt+/14pt bold+) requires 3:1 (AA) / 4.5:1 (AAA).

About the Contrast Checker

Enter a foreground and background color to compute the WCAG 2.1 contrast ratio, with pass/fail badges for AA and AAA levels at both normal and large text sizes, plus a live text sample.

Examples

Black on white

fg #111827, bg #ffffff

Output

17.5:1 — AAA pass

Related tools

Frequently asked questions

Read more

Version 1.0.0 · Updated 2026-08-06 · Runs entirely in your browser