Colors & design
Color contrast checker
Good colors should be readable. Check your text and background together.
Small tools for everyday life.
How it works
Color contrast checker
Choose two colors. Their relative luminances determine the WCAG contrast ratio. AA text thresholds are 4.5:1 for normal text and 3:1 for large text.
How to use this tool
- Enter opaque foreground and background HEX colors, or use the color controls. Compare the preview and ratio.
- Read the AA and AAA judgments separately for normal and large text. Use the appropriate category for the actual text size.
Understanding the result
WCAG uses a luminance ratio: AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1 and 4.5:1 respectively. Decisions use the unrounded ratio.
Worked examples
#000 / #fff → 21:1
#fff / #fff → 1:1
#777 / #fff → 4.48:1
Good to know
Large means at least 18pt, or 14pt bold. Opaque sRGB only. A passing pair does not certify an entire page’s accessibility.
Large text is at least 18 pt, or 14 pt when bold, approximately 24 or 18.67 CSS pixels. Passing this test does not certify an entire website; transparency, images and gradients are not evaluated.
A few quick answers
Why can a displayed 4.50 still fail?
The display rounds to two decimals. A true ratio just below 4.5 can look like 4.50; the pass decision uses the underlying value.
Sources and implementation
Implementation for this tool: WCAG 2.2 · sRGB
Maintained by Chpl Limited · Updated: