Color Accessibility Checker
Enter a foreground and background color (hex codes) to check their contrast ratio and WCAG compliance.
This is large bold text.
This is normal sized text.
21.00:1
Contrast Ratio
Normal Text (AA)
Large Text (AA)
18pt+ or 14pt+ bold
UI Components (AA)
Buttons, form controls, etc.
Level AA (minimum required for accessibility compliance):
• Normal Text: Contrast ratio of at least 4.5:1
• Large Text: Contrast ratio of at least 3:1
• UI Components: Contrast ratio of at least 3:1
Level AAA (enhanced accessibility):
• Normal Text: Contrast ratio of at least 7:1
• Large Text: Contrast ratio of at least 4.5:1
Notes:
• "Large Text" is defined as 18pt or 14pt bold and above
• Logos and decorative elements have no minimum contrast requirement
• Text over images or gradients should be evaluated throughout the image
How to use Color Accessibility Checker
- 1
Enter two colors
Provide a foreground (text) color and a background color as hex codes, for example #1a1a1a and #ffffff.
- 2
Check the contrast
Click Check Accessibility to calculate the contrast ratio between the two colors.
- 3
Review WCAG results
See pass or fail badges for AA and AAA at normal text, large text, and UI component levels, and view the live preview.
- 4
Adjust as needed
Swap the colors or tweak a hex value until the combination meets the WCAG level your project requires.
Frequently asked questions
What is a contrast ratio and what counts as good?
What is the difference between AA and AAA?
Why does large text pass when normal text fails?
What color format should I enter?
Is the checker free and does it send my colors anywhere?
Related tools
Keep going with these handy tools