Color Contrast Checker
Compare any two colors and check WCAG AA and AAA compliance instantly.
Preview text
Small preview
What is contrast ratio?
Contrast ratio measures the difference in perceived brightness between two colors. It ranges from 1:1 (identical) to 21:1 (black vs white). WCAG requires:
- AA normal text: 4.5:1
- AA large text (18pt+ or 14pt bold): 3:1
- AAA normal text: 7:1
- AAA large text: 4.5:1
- UI components: 3:1
FAQ
How is contrast ratio calculated?
Using the WCAG 2.2 relative luminance formula: (L1 + 0.05) / (L2 + 0.05) where L1 is the lighter color.
Is 3:1 enough?
Only for large text and UI components. Normal body text needs at least 4.5:1.