Color Contrast Checker
Check color contrast ratios for WCAG 2.1 accessibility compliance. Ensure your text is readable.
Color Selection
Common Combinations
21.00:1
Normal text (16px)
Large text (24px or 18px bold)
WCAG 2.1 Compliance
Normal Text AA
Pass
Requires 4.5:1
Normal Text AAA
Pass
Requires 7:1
Large Text AA
Pass
Requires 3:1
Large Text AAA
Pass
Requires 4.5:1
Luminance Values
Foreground
0.0000
Background
1.0000
Color Contrast Checker Guide
This tool checks the contrast ratio between text and background colors. It helps designers and developers choose color pairs that are easier to read and more accessible.
How to Use It
- Enter or pick the text color.
- Enter or pick the background color.
- Review the contrast ratio and pass or fail result.
- Adjust one color until body text and important UI labels meet the target.
Contrast Targets
WCAG contrast checks compare relative luminance. A common target is 4.5:1 for normal text and 3:1 for large text, though project requirements may be stricter.
Contrast Ratio
Where:
- L1= Relative luminance of the lighter color
- L2= Relative luminance of the darker color
Worked Examples
Body Text
Problem:
Gray text on a white background looks subtle but may be too light.
Solution Steps:
- 1Check the foreground and background colors
- 2Increase text darkness if the ratio is low
- 3Retest after changing the design token
Result:
Readable text helps more users use the page comfortably.
Button Label
Problem:
White text is placed on a bright yellow button.
Solution Steps:
- 1Check the ratio
- 2Try darker text or a darker button color
- 3Keep hover and disabled states readable too
Result:
Interactive controls stay usable across states.
Tips & Best Practices
- ✓Check hover, focus, active, and error states.
- ✓Do not rely on color alone to communicate meaning.
- ✓Use design tokens so accessible colors stay consistent.
Frequently Asked Questions
Sources & References
Last updated: 2026-05-20
Help us improve!
How would you rate the Color Contrast Checker?
Editorial Note
MyCalcBuddy Editorial Team
This page is maintained as an educational calculator reference.
Formula Source: Standard Mathematical References
by Various