● online

Color Contrast Checker

Enter a text colour and a background colour to get the WCAG contrast ratio, pass or fail for AA and AAA, a live preview — and a nearby colour that passes if yours does not.

Advertisement

How to use the Color Contrast Checker

  1. Pick or type the text colour and the background colour (hex codes such as #767676).
  2. Read the contrast ratio and the pass or fail result for each WCAG level.
  3. If it fails, press Suggest a passing text colour to get the closest colour that meets AA.

About the Color Contrast Checker

Low-contrast text is one of the most common accessibility failures on the web and makes content hard to read for people with low vision, older users and anyone using a phone in sunlight. WCAG 2.2 sets minimum contrast ratios: 4.5:1 for normal text and 3:1 for large text and interface elements at level AA, rising to 7:1 and 4.5:1 for AAA. The ratio compares the relative luminance of the two colours, from 1:1 (identical) to 21:1 (black on white). Many accessibility laws, including the European Accessibility Act and the ADA in the United States, point to these criteria.

Advertisement

Frequently asked questions

What contrast ratio do I need?

For WCAG AA, at least 4.5:1 for normal text and 3:1 for large text (18pt, or 14pt bold) and for buttons, icons and form borders.

What counts as large text?

At least 18 point (24 px) regular or 14 point (about 18.7 px) bold.

Is #767676 on white accessible?

Yes, just — it is about 4.54:1, the lightest grey that passes AA on white.

Does the checker handle transparency?

Use solid colours. For semi-transparent text, check the colour you actually see once it is blended with the background.

Related free tools

← Back to all 150 free online tools

Runs in your browser — what you enter stays on your device. Published .

The Tools Guru Editorial Team

Three front-end engineers and technical writers in Punjab, Pakistan, shipping browser software since 2011. Every formula on this site is implemented from a primary source and checked against an independent reference implementation before release — see our editorial policy. Spotted a wrong number? Tell us and we will reproduce it, usually the same working day.

Advertisement

Explore all 150 free tools

Results filter as you type. Press Control plus K to jump here. Ctrl K
150tools0uploads to servers100%free forever

Trending now

All tools