Contrast Checker
Check WCAG accessibility color contrast ratios
Large Text Preview
Normal text preview — The quick brown fox jumps over the lazy dog.
Small text preview — 0123456789 ABCDEF
Live Preview
See contrast changes instantly
WCAG 2.1
AA & AAA compliance checks
No Signup
Free tool, no registration required
Color Contrast and Web Accessibility (WCAG)
Color contrast ratio measures how distinguishable two colors are from each other, particularly text on a background. It's calculated from the relative luminance of each color: a ratio of 1:1 means identical colors (no contrast), while 21:1 is the maximum (black on white). The Web Content Accessibility Guidelines (WCAG) define minimum contrast ratios to ensure text is readable by people with low vision or color blindness.
WCAG Contrast Requirements
WCAG 2.1 defines two levels of conformance for contrast. AA (minimum): normal text requires a 4.5:1 ratio; large text (18pt regular or 14pt bold) requires 3:1. AAA (enhanced): normal text requires 7:1; large text requires 4.5:1. AA is the legal standard for most accessibility regulations (ADA, Section 508, EN 301 549). AAA is recommended for body text and high-readability contexts. UI components and graphical elements (icons, borders, charts) require 3:1 at minimum.
Why Contrast Matters Beyond Accessibility
Low contrast text isn't just an accessibility issue — it degrades the experience for all users in bright sunlight, on low-quality screens, and for users over 40 whose near vision has begun to decline. It also affects users with temporary impairments (migraine, eye strain, bright environments). High-contrast text scores higher in readability studies and reduces eye fatigue during prolonged reading. Meeting WCAG AA is a floor, not a ceiling — aiming for higher ratios benefits everyone.
How to Use This Tool
Enter the foreground (text) color and background color in any format — HEX, RGB, or HSL. The tool calculates the exact contrast ratio and shows whether the combination passes WCAG AA and AAA for both normal and large text. Adjust either color to find a compliant combination while maintaining your design intent.