Color Contrast Checker
Test whether your text and background colors meet WCAG accessibility contrast requirements.
Color Contrast Checker
Runs in your browser — nothing you enter is uploaded or stored.
Scratchpad auto-saved
About the Color Contrast Checker
Text is only useful if people can read it, and low contrast between text and its background excludes users with low vision — and anyone in bright sunlight. The Web Content Accessibility Guidelines (WCAG) define a measurable contrast ratio, from 1:1 (no contrast) to 21:1 (black on white), with thresholds for different conformance levels.
Enter a text color and a background color (via the swatches or hex fields) and this checker computes the exact ratio using the official relative-luminance formula, then shows pass/fail for each standard: AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1 and 4.5:1. A live preview shows your colors on real text so you can judge readability directly.
All calculation happens in your browser. Aim for at least AA on body text to keep your interface accessible and compliant.