Developer

Runs in your browser. No file uploads for processing.

Check WCAG Color Contrast

Check the WCAG text contrast ratio between two HEX colors. Preview normal and large text, see AA and AAA results, or try a passing foreground.

Loading tool...

How to check text contrast against its background

  1. Enter the foreground and background

    Use two solid HEX values such as #767676 and #FFFFFF. You can type either a 3-digit or a 6-digit HEX color.

  2. Read the ratio and pass criteria

    Normal text needs 4.5:1 for AA or 7:1 for AAA. Large text needs 3:1 for AA or 4.5:1 for AAA. Pass decisions use the unrounded ratio.

  3. Try a foreground adjustment

    If normal text misses AA, try the suggested lighter or darker foreground and retest with your actual text and background.

Use cases

  • Check body text, links and button labels before using a color combination on a website.
  • Compare text in dark and light versions of a theme.

Limits and privacy

  • Checks two opaque sRGB colors. It does not sample gradients, images, transparency, or every interaction state.
  • A passing pair does not establish WCAG conformance. Actual text size, weight, and all relevant style states still matter.
  • The suggestion mixes the foreground toward black or white. It is one passing choice, not a substitute for choosing a readable design.

The tool processes inputs in your browser. Account features and usage analytics are separate.

Frequently asked questions

How can I check if my website text color has enough contrast?

Enter the opaque text and background HEX values. Check the exact ratio against WCAG normal and large text targets, then try a passing foreground if needed.

What is an example of a pair close to 4.5:1?

#767676 text on white is about 4.54:1 and passes normal-text AA. #777777 on white is about 4.48:1 and fails normal-text AA.

What counts as large text for WCAG contrast?

Generally at least 18 point regular or 14 point bold, about 24 CSS pixels regular or 18.7 CSS pixels bold. The test does not measure your actual text.

Should contrast be rounded up to pass a threshold?

No. A computed ratio of 4.499:1 does not reach 4.5:1, even if a shorter display would round it to 4.50.

Can I use this result as a complete accessibility audit?

No. It checks contrast for the specified text pair only. Other colors and states, keyboard navigation, labels, and other criteria require separate testing.

Related tools