BeLocalBook a call
MenuClose

Free tool

Color contrast checker for WCAG and AODA

Test text and background colours against WCAG 2.2 AA and AAA, and get a passing colour.

No sign-up. Runs in your browser.

A hex code like #151112, or rgb(21, 17, 18)

px

Large text is 24px, or 18.66px (14pt) when bold. It needs less contrast.

Your ratio and results appear hereEnter a text colour and a background colour.

AA meets Ontario’s AODA website rule (WCAG 2.0 AA) and the Accessible Canada Act standard (built on WCAG 2.1 AA). AODA website requirements

Related guide: AODA website requirements for Ontario businesses

How to use the color contrast checker

  1. Pick your colours

    Type or paste a colour code, or use the picker, for your text and the background behind it.

  2. Set your text size

    Enter the size in pixels and switch on Bold if the text is bold. Large text needs less contrast.

  3. Read and fix

    Check the pass and fail grid. If a level fails, apply the nearest passing colour and share the link with your designer.

What contrast ratio means

Contrast ratio compares the brightness of your text with the brightness of the background behind it. It runs from 1:1, a colour on itself, to 21:1, black on white.

The higher the number, the easier words are to read for people with low vision, on a phone in bright sun or on an older screen. Pairs that look fine on a designer’s monitor often fall short there.

WCAG contrast levels at a glance

WCAG sets two levels for text and one for icons and borders. Most laws ask for AA.

LevelNormal textLarge textCriterion
AA4.5:13:11.4.3 Contrast (Minimum)
AAA7:14.5:11.4.6 Contrast (Enhanced)
Icons, borders, focus rings3:13:11.4.11 Non-text Contrast (WCAG 2.1+)

Large text is 24px and up, or 18.66px and up when bold. The ratio must meet the number exactly: 4.49:1 fails AA.

Which Canadian rules ask for it

Ontario’s AODA requires the designated public sector and organizations with 50 or more employees in Ontario to make public websites meet WCAG 2.0 Level AA. The text contrast rule is the same in WCAG 2.0 and 2.2, so a text pair that passes AA here meets both. The icon and border rule came in WCAG 2.1.

The Accessible Canada Act covers the federal government and federally regulated businesses, such as banks, airlines and telecoms. Its digital rules point to CAN/ASC-EN 301 549, whose web requirements are built on WCAG 2.1 Level AA. Other provinces have their own accessibility laws; building to WCAG 2.2 AA covers all of them.

Questions, answered

What is a good colour contrast ratio?

At least 4.5:1 for normal text and 3:1 for large text, which is WCAG level AA. Aim for 7:1 on body text if you want AAA.

What counts as large text?

WCAG treats text as large from 18pt, about 24px, or from 14pt bold, about 18.66px. Large text needs 3:1 for AA; smaller text needs 4.5:1.

Does the AODA require colour contrast?

Yes, if the website rule applies to you. It requires WCAG 2.0 Level AA, which includes 4.5:1 for normal text and 3:1 for large text.

Do buttons, icons and form fields need contrast?

Yes, under WCAG 2.1 and 2.2. Icons that carry meaning and the edges that show where a field or button is need 3:1 against the colours next to them. The words inside a button follow the text rules.

Do logos have to meet contrast rules?

No. Text in a logo or brand name has no contrast requirement, and neither does purely decorative text or text on a disabled control.

How do I check text over a photo or gradient?

Test your text colour against the lightest part of the image behind it. If it fails there, put a solid or darkened panel behind the words.

Website Redesign

Hard to read on your own site?

Get a free redesign review.

See Website Redesign

Contact

Let’s build yours.

  • Free redesign review
  • No commitment
  • Quick response
Hours
Mon-Fri, 9am-6pm ET

Get your free redesign review

Get a free redesign review.

Services needed