Skip to main content

InstrumentsColor Contrast Checker

Color Contrast Checker

Check a text colour against its background for WCAG 2.x contrast, and get a passing colour suggestion.

All tools

Color Contrast Checker

Hex, such as #777 or #777777.

Hex, such as #fff or #ffffff.

Normal text: the quick brown fox jumps over the lazy dog.

Large text: the quick brown fox.

Contrast ratio: 4.54:1

  • Normal text, AA needs 4.5:1Pass
  • Large text, AA needs 3:1Pass
  • Normal text, AAA needs 7:1Fail
  • Large text, AAA needs 4.5:1Pass

Thresholds are from WCAG 2.x: 4.5:1 for normal text at AA, 3:1 for large text at AA, 7:1 for normal text at AAA and 4.5:1 for large text at AAA. Large text means 24px regular or 18.66px bold. This tool checks colour contrast only. It does not test text size, images, focus states or other accessibility needs.

CSS
.text {
  color: #767676;
  background-color: #fff;
}

FAQ

What contrast ratio do I need for body text?

For normal text, WCAG 2.x AA asks for at least 4.5:1 against the background. Large text needs 3:1. The AAA level asks for 7:1 for normal text and 4.5:1 for large text.

Does a pass mean my page is accessible?

No. The checker only measures the contrast between the two colours you enter. It does not test text size, images, focus styles, keyboard use or screen reader behaviour, so use it as one check among several.

How does the passing colour suggestion work?

It moves the text colour in small steps toward black or white, whichever gives more contrast against the background, and stops at the first colour that reaches 4.5:1. The background stays the same, and the suggested colour may not match your brand palette.

  1. 01Enterprise Accessibility Architecture: ARIA & SemanticsTutorial
  2. 02Dynamic Theming Architecture: HSL & Custom PropertiesTutorial

Personalize your path

Choose your experience level once.

Next Step

Build fundamentals after each tool run so you can apply concepts with confidence.

Get new tool alerts

Receive updates when new tools are published.

RSS feed