design
Free
No signup
Color Contrast Checker
Check WCAG 2.1 contrast ratios for foreground/background color pairs and get pass/fail results instantly.
Loading tool…
About this tool
Enter a foreground and background color using hex color pickers or text fields. The tool calculates the WCAG 2.1 contrast ratio and shows pass/fail badges for all four thresholds: AA Normal text (4.5:1), AA Large text (3:1), AAA Normal text (7:1), and AAA Large text (4.5:1). A live preview renders sample text in both normal and large sizes with your chosen colors. The relative luminance of each color is also displayed. If the current colors fail AA, the tool suggests adjusted colors (darkened or lightened) that meet the standard.
How to use
- 1 Pick a foreground color using the color picker or type a hex value.
- 2 Pick a background color the same way.
- 3 Read the contrast ratio and check which WCAG levels pass or fail.
- 4 View the live text preview and use the suggested colors if needed to achieve AA compliance.