Colour Contrast Checker
Enter a text colour and a background colour to get the WCAG contrast ratio and AA and AAA results for normal text, large text and UI parts.
Enter a text colour and a background colour to get the WCAG contrast ratio and AA and AAA results for normal text, large text and UI parts.
Contrast is the difference in brightness between text and its background. People with low vision, and anyone reading in bright light, need enough of it.
The Web Content Accessibility Guidelines set minimum ratios. This tool calculates yours and shows whether it passes.
#777777 on #ffffff = 4.47 : 1
WCAG AA asks for 4.5 to 1 for normal text and 3 to 1 for large text and interface parts. AAA asks for 7 to 1 and 4.5 to 1.
At least 24 pixels, or 18.66 pixels and bold.
Anything your browser understands: HEX, rgb(), hsl() and colour names.
The real contrast depends on what lies behind. Use the final solid colour.
No. Contrast is one factor. Font size, spacing and clear labels matter too.