WCAG 2.1 Color Contrast Ratio Checker
Ensure your website is accessible to individuals with visual impairments and complies with modern ADA and European accessibility standards.
Accessibility reviews, design handoffs and everyday CSS edits all end up asking the same question: can people actually read this text? A freelancer checking a grey caption on a white card, a developer testing a button label before a release, or a teacher building a slide template for a projector with washed-out colours might all need an answer. The checker turns a subjective impression into the ratio that WCAG 2.1 uses, so you can justify a colour choice to a client or reviewer with a number.
Set the Foreground (Text Color) and Background Color fields using either the colour swatch or by typing a HEX code such as #0f172a. The contrast ratio updates instantly in large type, and three rows report PASS or FAIL for WCAG AA Normal, WCAG AA Large and WCAG AAA Normal. A sample card underneath shows the quoted pangram in your two colours, so you can judge real readability by eye as well as by the number. Adjust either colour until the rows you care about turn to PASS.
Enter full six-digit HEX codes. Shorthand like #fff is not expanded in this tool, so write #ffffff. The thresholds applied are 4.5 to 1 for AA normal text, 3 to 1 for AA large text and 7 to 1 for AAA normal text. Large text in WCAG means roughly 18 point, or 14 point bold, and above. Remember that ratio only covers colour pairs; it says nothing about font weight, thin strokes, text over photographs or gradients, and non-text elements such as icons have their own 3 to 1 guideline.
As a sanity check, black on white gives the maximum ratio of 21 to 1, and identical colours give 1 to 1. A mid grey such as #777777 on white comes out near 4.48 to 1, which narrowly fails AA for body text even though it looks fine on a good monitor; nudging it to #767676 brings it to about 4.54 and a pass. That tiny shift is invisible to most people, which is why checking the number beats trusting your eyes. When a pair fails, darken the text or lighten the background rather than the other way round.
Key Highlights:
- Instant WCAG AA and AAA ratings
- Live typography preview box
- Invert colors button
- Ratio calculation

