Instantly check if your color combinations meet WCAG accessibility standards
Color Inputs
Preview
Results
WCAG 2.2 Standards
How contrast is calculated
Your hex colors are converted to sRGB values on a 0–1 scale.
Relative luminance is computed for each color using the official WCAG formula.
The ratio is: (lighter + 0.05) ÷ (darker + 0.05), giving a number from 1 to 21.
Result is checked against WCAG thresholds for each text size and component type.
What the ratio levels mean