Colour Contrast Checker
Check text and background contrast against WCAG AA and AAA rules.
Runs on your device. Files are never uploaded.How to use Colour Contrast Checker
- Pick the text colour
- Pick the background colour
- Read the ratio and pass/fail
About this tool
Pick a text colour and a background colour and see the contrast ratio with pass or fail for AA and AAA, for normal and large text and for icons. A live swatch shows both colours side by side.
Like every tool on YantraStack, it is free with no accounts, limits or watermarks, and it works offline once the page has loaded. See how to verify that nothing is uploaded.
Questions
What ratio do I need?
WCAG AA needs 4.5:1 for normal text and 3:1 for large text. AAA needs 7:1 and 4.5:1.
Guides
How to check colour contrast for accessibility (WCAG)
Check whether text and background colours meet WCAG AA and AAA contrast ratios for normal and large text, and learn which ratio you need.
How to generate a colour palette from one base colour
Choose a base colour and make analogous, complementary, triadic, tetradic, split-complementary or shade palettes, with CSS variables ready to copy.
How to make a CSS gradient and copy the code
Build a linear, radial or conic CSS gradient with a live preview, pick the angle and colours, then copy the CSS with a fallback colour.