Color Contrast Checker
Check whether your text and background colors pass WCAG 2.1 AA and AAA. See the contrast ratio, live preview at three text sizes and pass/fail status for normal text, large text and UI components. Swap foreground and background with one click.
How to use
Enter the foreground color
Type a HEX or RGB value for your text color.
Enter the background color
Type a HEX or RGB value for the background.
Read the contrast ratio
See the ratio and whether it passes AA, AAA or fails.
Check the live preview
See how the text looks at different sizes on that background.
Live preview
Large heading at 24px
Normal body text at 16px — this is the standard reading size.
Small caption text at 14px
Features
WCAG 2.1 AA and AAA
Check compliance for normal text, large text and UI components.
Live preview
See the color pair at three text sizes in real time.
Pass/fail status
Clear indicators for AA and AAA at each text size.
Swap foreground and background
Reverse the two colors with one click.
Common use cases
- Check if your text color is accessible
- Design a WCAG-compliant color palette
- Verify button contrast for UI components
- Audit a website for accessibility issues