WCAG Ratio
The exact contrast ratio between your text and background colors.
Check the contrast ratio between text and background colors against WCAG AA and AAA standards. See at a glance whether your colors are readable and get a suggested fix.
Includes a live preview, and handles semi-transparent colors by blending them over the background.
Normal text sits at 16px. Small body copy like this is where low contrast hurts readability the most.
Large text
Based on the WCAG 2.1 contrast formula. Semi-transparent text colors are blended over the background first. Passing the ratio is one part of accessibility — also consider font size, weight and context.
Contrast ratio measures how different two colors are in brightness, from 1:1 (identical) to 21:1 (black on white). The higher the ratio, the easier text is to read — especially for people with low vision, colour blindness, or anyone reading on a phone in bright sunlight.
The Web Content Accessibility Guidelines (WCAG) set minimum ratios: 4.5:1 for normal text at level AA, 3:1 for large text and interface components, and higher values for the stricter AAA level.
The exact contrast ratio between your text and background colors.
Pass or fail for normal text, large text and UI components at both levels.
See your colors on sample headings, body text and large text.
Flip text and background to compare.
Get a nearby text color that reaches 4.5:1, keeping the same hue.
Everything runs in your browser.
Text color and background color, as HEX, rgb() or a name.
See the contrast ratio and an overall verdict.
AA and AAA for normal and large text and UI.
Use the suggestion button to find a passing color.
Quick answers about using the MoSanKit Contrast Checker.
WCAG AA requires 4.5:1 for normal text and 3:1 for large text (about 18pt, or 14pt bold) and for interface components like buttons and form borders. AAA requires 7:1 for normal text and 4.5:1 for large text.
At least 18 point (24 CSS pixels) or 14 point (about 18.7 pixels) bold.
No. It is an important check, but readability also depends on font size, weight, spacing and context. Don't rely on color alone to convey meaning.
A semi-transparent color is blended over the background (and the background over white) before the ratio is calculated.
It keeps your text color's hue and saturation and moves its lightness toward black or white until it reaches 4.5:1.
No. All calculations happen in your browser.
Explore more free design and color tools from MoSanKit.