Check two colours
Preview of your two colours. It is decorative and not read out by screen readers.
Contrast ratio
7.00:1
- Meets threshold
Normal text, Level AA
Needs 4.5:1 (SC 1.4.3)
- Meets threshold
Large text, Level AA
Needs 3:1 (SC 1.4.3). 24px, or 18.7px bold, and up
- Meets threshold
Interface components and graphics, Level AA
Needs 3:1 (SC 1.4.11)
- Meets threshold
Normal text, Level AAA
Needs 7:1 (SC 1.4.6), optional
- Meets threshold
Large text, Level AAA
Needs 4.5:1 (SC 1.4.6), optional
Colour contrast is one part of accessibility. Passing this check does not establish WCAG conformance. Everything runs in your browser and nothing is sent anywhere.
What contrast ratio does WCAG require?
WCAG 2.2 Level AA requires 4.5:1 for normal text and 3:1 for large text (SC 1.4.3). Large text means at least 18 point, about 24 CSS pixels, or 14 point bold, about 18.7 CSS pixels bold. Level AAA (SC 1.4.6) asks for 7:1 and 4.5:1.
Parts of controls and graphics you need in order to understand the interface, such as form field borders, icons and focus indicators, need at least 3:1 against adjacent colours (SC 1.4.11).
What to test on your own site
- Body text, headings and small print against their backgrounds.
- Link colour against the text around it and the background.
- Button text, and the button edge against the page if the edge is what marks it as a button.
- Form field borders and placeholder text.
- Icons that carry meaning, such as a close or search icon with no text.
- The focus ring against the colours it appears on.
- Text placed over photos or gradients, tested at the worst spot.
Logos and logotypes are exempt from the text requirement, as is purely decorative text and the text of inactive components. Do not turn those into a blanket rule either way. Colour is also never the only signal: pair it with text, an icon or a pattern.
Passing here is one part of the Website Accessibility Checklist. It does not establish WCAG conformance.
How the contrast ratio is calculated
WCAG converts each colour to a relative luminance between 0 (black) and 1 (white), weighting the red, green and blue channels for how the eye sees them: 0.2126 R + 0.7152 G + 0.0722 B, after correcting each channel for display gamma. The ratio is then (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter colour. It runs from 1:1 (no difference) to 21:1 (black on white).
This tool does that maths in your browser. Nothing is sent anywhere, and ratios are truncated rather than rounded up, so a 4.499 never pretends to be 4.5.
Questions people ask about colour contrast
What contrast ratio does WCAG require for text?
WCAG 2.2 Level AA (Success Criterion 1.4.3) requires at least 4.5:1 for normal text and 3:1 for large text. Level AAA (1.4.6) asks for 7:1 for normal text and 4.5:1 for large text.
What counts as large text in WCAG?
Text that is at least 18 point (about 24 CSS pixels) or 14 point bold (about 18.7 CSS pixels bold). Anything smaller is normal text and needs the higher ratio.
Do buttons and icons need contrast too?
Yes. Success Criterion 1.4.11 asks for at least 3:1 contrast for the parts of controls and graphics needed to understand them, such as form field borders, icons and focus indicators. Checking body text alone is not enough.
Does logo text need to meet contrast requirements?
Logos and logotypes are exempt from the text contrast requirement, as is purely decorative text. Do not apply the ratio to them as a blanket rule.
If my colours pass this checker, is my website accessible?
No. Colour contrast is one part of accessibility. Passing this check does not establish WCAG conformance.
Sources
Continue the Toolkit
Website Accessibility Checklist
A practical first review for common website barriers: structure, keyboard, visual, content, forms, motion and testing. Not a full WCAG audit.
How to Test a Website for Accessibility
Keyboard, zoom, reflow, text spacing, forms and screen-reader spot checks, plus why no single tool can certify a website.