๐
Color Contrast Checker
Check WCAG color contrast between two colors.
Loading toolโฆ
How to use the Color Contrast Checker
- 1Pick or paste a foreground (text) hex color.
- 2Pick or paste a background hex color.
- 3Read the contrast ratio and AA/AAA pass/fail badges.
About the Color Contrast Checker
Free WCAG color contrast checker. Enter foreground and background hex colors to get the contrast ratio and instant AA, AAA, and large-text pass/fail results with a live preview.
Part of our Color Tools collection. Browse all tools.
Frequently asked questions
- What contrast ratio passes WCAG?
- Normal text needs at least 4.5:1 for AA and 7:1 for AAA. Large text (18pt+ or 14pt bold) needs 3:1 for AA and 4.5:1 for AAA.
- How is the contrast ratio calculated?
- It uses the WCAG formula: relative luminance is computed for each color, then the ratio is (lighter + 0.05) / (darker + 0.05), ranging from 1:1 to 21:1.
More Color Tools
โ
๐จ
Color Converter
Convert colors between HEX, RGB and HSL.
โ๐
CSS Gradient Generator
Create CSS gradients and copy the code.
โ๐ฆ
CSS Box-Shadow Generator
Design box-shadows with a live preview.
โ๐จ
Color Palette Generator
Generate shades, tints and matching colors.
โ๐๏ธ
Color Picker from Image
Pick any color from an uploaded image.