Canada version. Explains Canadian rules: WCAG 2.0 AA under Ontario's AODA, and WCAG 2.1 AA with EN 301 549 in federal guidance. US version
Colour Contrast Checker (Canada)
Check colour pairs against WCAG AA for AODA compliance in Ontario and federal accessibility guidance, with exact contrast ratios and pass or fail for each text size.
The interactive tool loads here when JavaScript runs.
About this toolWhat is the Color Contrast Checker?
In Ontario, colour contrast is part of the law for many organizations. Under the Accessibility for Ontarians with Disabilities Act (AODA) and its Integrated Accessibility Standards Regulation, designated public sector organizations and businesses or non-profits with 50 or more employees must make their public websites meet WCAG 2.0 Level AA. That requirement took effect on January 1, 2021, for web content published after January 1, 2012.
Federally, the Treasury Board Secretariat is reviewing its Standard on Web Accessibility and, in the meantime, recommends organizations adopt EN 301 549 and strongly encourages WCAG 2.1 AA. The contrast rule is the same in every version: 4.5:1 for normal text and 3:1 for large text (18 point, or 14 point bold).
The checker gives the exact WCAG ratio and does not round it, as WCAG specifies. Mid-grey #767676 on white is 4.54:1 and passes AA; #777777 is 4.47:1 and fails.
- Exact WCAG 2.x contrast ratio from the official luminance formula
- AA and AAA results for normal and large text
- No rounding up: 4.499:1 is reported as a fail
- Accepts #rgb and #rrggbb, with a color swatch for each color
- Live preview at body, large and large bold sizes
- Runs in your browser
Updated
How to use the Color Contrast Checker
- Enter the text color in Foreground Color (Text) and the background in Background Color, as hex or with the color swatch.
- Read the Contrast Ratio and the Normal Text and Large Text badges: AAA, AA or Fail.
- Look at the Live Preview to see the pair at 16px, 24px and 18.66px bold.
- Use Swap Colors to test the reversed pair for dark mode, and Copy to paste the result into a ticket or design review.
Worked examples
The grey that just fails
Input
#777777 on white, then #767676 on white
Output
4.47:1 (fails AA) and 4.54:1 (passes AA)
A one-step difference in the hex value decides compliance. Record the exact ratio in your accessibility records.
White text on a bright red button
Input
#ffffff on #e4002b
Output
4.84:1: passes AA for all text sizes
Many reds land close to 4.5:1 with white, so check the exact brand value.
White on a strong blue
Input
#ffffff on #0067c5
Output
5.60:1: passes AA, not AAA
AAA (7:1) is not required by AODA or federal guidance, but is worth meeting for long-form reading.
Orange call-to-action
Input
White on #ff8c00, then black on #ff8c00
Output
2.33:1 (fails even large text) and 9.00:1 (passes AAA)
Switching the text colour fixes the failure without changing the brand colour.
Background and insight
The formula comes from WCAG 2.0 (2008) and is unchanged in WCAG 2.1 and 2.2. Each sRGB channel is scaled to 0 to 1 and linearised: values at or below 0.04045 are divided by 12.92, the rest go through ((c + 0.055) / 1.055) raised to 2.4. Relative luminance is then 0.2126 R + 0.7152 G + 0.0722 B, which is why green contributes most to perceived brightness and blue barely matters. The contrast ratio is (L1 + 0.05) / (L2 + 0.05) with L1 the lighter color, giving a range from 1:1 to 21:1.
Success Criterion 1.4.3 (AA) asks for 4.5:1 for normal text and 3:1 for large text. 1.4.6 (AAA) raises that to 7:1 and 4.5:1. Large means at least 18 point or 14 point bold. CSS has 96 pixels per inch and 72 points per inch, so that is 24px regular or about 18.66px bold. A common mistake is reading "18" as 18px: a 20px semibold subheading is still normal text under WCAG.
WCAG explicitly says not to round: 4.499:1 does not meet 4.5:1. The successor algorithm being discussed for WCAG 3, APCA, weighs font size and polarity differently and often disagrees with these results, especially for dark mode. For legal and procurement purposes today (ADA cases in the US, EN 301 549 in the EU), WCAG 2 ratios are what auditors check.
Common use cases
Design reviews
Check each text and background pair in a palette before it reaches code, including placeholder and disabled text.
Accessibility audits
Verify findings from automated scanners and get an exact ratio to put in the audit report.
Dark mode palettes
Swap colors to test light text on dark surfaces, where low contrast mistakes are common.
Brand color decisions
Find out whether a brand color can carry white text or needs a darker shade for buttons and links.
Tips and limitations
- AODA does not require a formal compliance report for websites, but Ontario suggests keeping records of accessibility issues you have fixed; save the ratios you checked.
- Live captions (1.2.4) and pre-recorded audio description (1.2.5) are exempt under AODA, but contrast (1.4.3) is not.
- Icons, form borders and focus outlines need 3:1 against their background under WCAG 2.1 (1.4.11), which federal guidance follows.
Sources and further reading
- How to make websites accessible, Government of Ontario. Who must comply, WCAG 2.0 Level AA, the January 1, 2021 deadline and the exemptions for 1.2.4 and 1.2.5.
- Accessibility standards, Government of Canada. The Standard on Web Accessibility review, the EN 301 549 recommendation and WCAG 2.1 AA.
- Understanding Success Criterion 1.4.3: Contrast (Minimum), W3C Web Accessibility Initiative
Frequently asked questions
What contrast ratio does AODA require?
AODA requires WCAG 2.0 Level AA for covered websites, and AA means at least 4.5:1 for normal text and 3:1 for large text.
Who must comply with AODA web requirements?
Designated public sector organizations and businesses or non-profits with 50 or more employees in Ontario, for their public websites and for web content published after January 1, 2012.
Which standard applies to federal government websites?
The Treasury Board Secretariat is reviewing its Standard on Web Accessibility. Until that is done it recommends EN 301 549 and strongly encourages WCAG 2.1 AA. The colour contrast thresholds are the same as WCAG 2.0.
Does AODA apply to a small business?
The website requirement applies to private and non-profit organizations with 50 or more employees in Ontario. Smaller organizations are not required to meet WCAG under it, though meeting AA is still good practice.
Can a contrast ratio of 4.49 be rounded up to pass?
No. WCAG says the computed value must not be rounded, so 4.49:1 fails the 4.5:1 threshold. The checker truncates the displayed ratio for that reason.
Is there an in-depth guide to the Color Contrast Checker?
Yes. “WCAG Color Contrast: How the Ratio Works and How to Pass AA” covers the background, how it works, common pitfalls and worked examples. Read the full guide.
Related Tools You May Like
Free, in-browser tools that pair well with this one.