Check text contrast against WCAG 2.2.
Test an opaque sRGB text and background color pair against WCAG 2.2 AA and AAA text contrast thresholds.
Free. No account. The color math runs entirely in your browser.
How to Use It
WCAG 2.2 requires a contrast ratio of at least 4.5:1 for normal text (AA) and 7:1 for enhanced readability (AAA). Large text (18pt or 14pt bold) has a lower AA threshold of 3:1. Agents: open JSON controls or read the automation reference for HTTP, CLI and MCP access.
1. Enter your colors
Enter text and background colors as three- or six-digit hex values. Invalid input pauses the result until corrected.
2. Read the result
Read the contrast ratio and AA/AAA text verdicts. Results use full precision, with extra digits shown near a threshold. Color contrast alone does not establish WCAG compliance.
3. Fix the failures
Apply a suggested lightness adjustment that passes AA normal text. Copy link shares your current color pair.
More Color Tools
Accessible Color Picker
Explore compliant colors against a fixed base instead of checking candidates one at a time.
Color Scale Generator
Build a deliberate scale from any color, then copy values or export ready-to-use CSS variables.
Prefer a native picker? Colorist for macOS grabs any color on screen and checks contrast as you work.