Colour contrast checker
Pick a text colour and a background colour to see their contrast ratio and whether they pass WCAG 2.2 for normal text, large text and buttons. If they don't, it suggests the closest text colour that does.
Large text looks like this
Normal text looks like this. Body copy, labels and links all need enough contrast to be read in sunlight.
A button outlineContrast ratio
6.72:1
- Normal text AA · 4.5:1Pass
- Large text AA · 3:1Pass
- Normal text AAA · 7:1Fail
- Large text AAA · 4.5:1Pass
- Buttons, icons and borders AA · 3:1Pass
About this tool4 answers, each complete on its own.
Still stuck? Write to support@sketchxflow.com and a person answers.
For WCAG 2.2 level AA, normal text needs at least 4.5:1 against its background and large text needs 3:1. Level AAA asks for 7:1 and 4.5:1. Icons, input borders and other parts of the interface need 3:1.
Text that is at least 24px (18pt) at a regular weight, or at least about 18.7px (14pt) in bold.
Each colour's relative luminance is calculated from its red, green and blue values, then the ratio is (lighter + 0.05) ÷ (darker + 0.05). It runs from 1:1 (no contrast) to 21:1 (black on white).
No. The checker works out everything on the page itself; the colours only appear in the address bar so you can share a check.
See how your current site does
Paste your address for a free score out of 100 and the specific problems on your first screen. No sign-up.
One page · the first screen · design, contrast, wording
Free · no sign-up · one page, above the fold
This is the simple audit. Advanced audits check up to 20 pages, pages behind a login, and full user flows — with an account on Pro.
Sign in for advanced audits