Skip to main content
JoliTools

Contrast Checker

Check text and background color contrast for easier reading.

Suggestion

Excellent contrast. This pairing passes WCAG AAA for normal text.

Large text sample

The quick brown fox jumps over the lazy dog. This is normal body text at a regular size.

Contrast ratio

17.40:1

Normal text, AA

4.5:1 required

✓ Pass

Normal text, AAA

7:1 required

✓ Pass

Large text, AA

3:1 required

✓ Pass

Large text, AAA

4.5:1 required

✓ Pass

Ratios follow the WCAG 2.x formula. Large text means 18pt (24px) or 14pt (18.66px) bold and larger. Everything runs in your browser.

About this tool

Contrast Checker measures the difference in brightness between a foreground color and a background color. It calculates a contrast ratio and compares the result with common WCAG accessibility guidelines. This helps designers and developers check whether text colors are likely to be readable against their chosen backgrounds.

Imagine you are designing a website with light blue text on a white background. The colors may look attractive together, but the text could be difficult for some visitors to read. Enter both colors into the checker to see their contrast ratio and whether the combination meets the selected WCAG text requirements. You can then try a darker shade of blue and compare the result.

How to use the contrast checker

  1. 1Enter or choose a text color.
  2. 2Enter or choose a background color.
  3. 3Review the contrast ratio and accessibility results.
  4. 4Adjust the colors until they meet your needs.

Good to know

For normal text, WCAG AA generally requires a contrast ratio of at least 4.5 to 1. Large text has a lower minimum requirement of 3 to 1. AAA requirements are stricter. These guidelines are useful when choosing colors for websites, forms, buttons, and other interfaces. Remember that contrast is only one part of accessibility. Font size, spacing, clear wording, keyboard access, and visible focus indicators also matter. A passing result does not automatically make an entire website accessible. Check the actual colors used in your design, including hover states and disabled controls. Color contrast calculations happen locally in your browser. Your entered color values are never uploaded to JoliTools.

Frequently asked questions

It calculates the contrast ratio between a foreground color and a background color using their relative luminance.

More free tools you might find useful.

Part of Developer Tools on JoliTools, free tools, no sign-up.