Skip to content

Color Contrast CheckerNew

Check WCAG contrast between two colours.

Runs in your browser · free · no sign-up

Contrast ratio
7.62:1

Large heading text

Normal body text looks like this. Can you read it comfortably?

  • AA normal text Pass · needs 4.5:1
  • AA large text (18pt / 14pt bold) Pass · needs 3:1
  • AAA normal text Pass · needs 7:1
  • AAA large text Pass · needs 4.5:1
  • UI parts & icons (AA) Pass · needs 3:1

About the Color Contrast Checker

Readable text helps everyone, especially people with low vision. Enter two colours to get the contrast ratio and a clear pass or fail for each WCAG level.

Low-contrast text is one of the most common accessibility problems on the web. Light grey text on white, or white on pale orange, looks stylish but is hard to read for people with low vision, older users and anyone using a phone in sunlight. The Web Content Accessibility Guidelines (WCAG) define minimum contrast ratios that many organisations and laws require.

This checker calculates the contrast ratio between a text colour and a background colour using the WCAG formula, then shows pass or fail for AA normal text (4.5:1), AA large text (3:1), AAA normal text (7:1), AAA large text (4.5:1) and user interface components such as icons and borders (3:1). A preview shows your colours together so you can judge readability by eye too.

How to use the Color Contrast Checker

  1. 1Pick the text colour.
  2. 2Pick the background colour.
  3. 3Read the ratio and pass/fail results.

Key features

  • WCAG contrast ratio.
  • AA and AAA pass or fail.
  • Large text and UI component checks.
  • Live preview.
  • Ratio rounded down so borderline results never falsely pass.

Practical uses

  • Checking brand colours for accessible text.
  • Auditing a website for WCAG compliance.
  • Choosing button text and background colours.
  • Testing dark mode colour pairs.
  • Choosing a readable text colour for a brand-coloured banner.

Example

Grey #767676 on white gives about 4.54:1, which passes AA for normal text. The slightly lighter #777777 drops to about 4.48:1 and fails.

Tips and common mistakes

  • Test hover, disabled and placeholder text, which often fail.
  • Darken the text rather than the background when you need a small improvement.
  • Do not rely on colour alone to convey meaning; add icons or text.
  • Light text on dark backgrounds needs the same ratio as dark on light; check dark mode separately.

Limitations

  • Text over images or gradients needs checking at the lowest-contrast point.
  • Font weight and size are not measured automatically.

Privacy

Colours are checked locally.

Frequently asked questions

What ratio do I need?

WCAG AA needs 4.5:1 for normal text and 3:1 for large text; AAA needs 7:1 and 4.5:1.

What counts as large text?

24 px (18 pt) regular, or about 18.7 px (14 pt) bold and larger.

Why is my ratio rounded down?

So a result that is just below a limit never shows as passing.

Is AA or AAA required?

Most accessibility laws and policies require AA. AAA is stricter and recommended for long reading text.

Does contrast matter for icons?

Yes. WCAG asks for 3:1 for icons and other graphics that convey information.

Related tools

CSS MinifierShrink CSS by removing comments and spaces.
CSS FormatterBeautify messy or minified CSS.
CSS to SCSSNest plain CSS into SCSS.
Color Palette GeneratorHarmonious color palettes from one color.