Colour · Free online tool

Color Contrast Checker

Enter foreground and background colours to calculate their contrast ratio.

Check text and background colour contrast against WCAG contrast-ratio thresholds. Test normal text, large text and accessible interface combinations.

Free to useWorks in your browserNo account required
Interactive tool

Use the Color Contrast Checker

Enter your values below to get an instant result. Replace the sample inputs with your own information.

Color Contrast Checker

Sample text preview
Check normal and large text combinations.

WCAG contrast results

Contrast ratio17.74:1
AA normal textPass
AA large textPass
AAA normal textPass
AAA large textPass

A passing contrast ratio is only one part of accessibility. Check focus indicators, semantics, keyboard use and non-text controls too.

Quick guide

How to use the Color Contrast Checker

  1. 1Choose a text colour and a background colour
  2. 2Review the contrast ratio and the WCAG AA and AAA results for normal and large text.
Helpful information

Color Contrast Checker: guide, examples and important details

How the Color Contrast Checker works

WCAG contrast ratio compares relative luminance. AA generally requires 4.5:1 for normal text and 3:1 for large text. AAA uses stricter thresholds of 7:1 and 4.5:1 respectively.

Tips for better results

Do not rely on colour alone to communicate status. Test focus indicators, icons and controls as well as paragraph text, and check the rendered interface in context.

Accuracy, privacy and limitations

This utility runs in the visitor's browser and uses only the information entered for the current calculation or preview. Check important figures against the relevant provider's current documentation before relying on them for a business decision. Results are estimates and do not replace professional, legal, tax, accessibility or carrier-specific advice where applicable.

Formula and method behind the Color Contrast Checker

The contrast ratio compares the relative luminance of the lighter and darker colours using (L1 + 0.05) ÷ (L2 + 0.05). WCAG 2.2 AA text thresholds are generally 4.5:1 for normal text and 3:1 for large text. The ratio is a useful test, but it is only one part of accessible design.

Practical example: using the Color Contrast Checker

A developer can test a dark navy heading on a white background, then adjust the foreground colour until normal body text reaches the required contrast threshold. Repeat the check for buttons, links and muted labels.

Choosing inputs and checking your result

For a reliable color contrast checker result, use current source information and keep each input in the unit shown beside its field. Change one assumption at a time when comparing scenarios so you can see which value caused the result to change. Check the displayed output against a small example you can verify independently, and keep a note of any rate, date or convention that affects the calculation. If the result will be used for a business, tax, employment, accessibility or production decision, confirm the relevant rule with the responsible provider or authority.

FAQs

Frequently asked questions

What contrast ratio does WCAG AA require?

4.5:1 for normal text and 3:1 for large text.

Does a passing ratio guarantee full accessibility?

No. Accessibility also includes keyboard use, semantics, focus, labels and more.

Can I use this tool for free?

Yes. The tool is free to use in your browser and does not require an account.

Does the color contrast checker save my information?

The interactive calculation runs in your browser and does not require an account. Avoid entering confidential information on a shared device, and review the website privacy policy for information about the wider site.

Can I rely on the result as an official quote or decision?

No. Treat the output as a planning or workflow aid. Verify important rates, terms, legal requirements and provider-specific rules with the relevant organisation before acting.