Colour Contrast Checker
This free colour contrast checker calculates the contrast ratio between your text and background colours and shows instantly whether it passes the WCAG 2 AA and AAA criteria.
| Use | Required | Result |
|---|---|---|
| Normal text (AA) | 4.5:1 | |
| Large text (AA) | 3:1 | |
| Normal text (AAA) | 7:1 | |
| Large text (AAA) | 4.5:1 | |
| Buttons, icons and form borders | 3:1 |
Large text: 24 pixels and above, or bold 18.66 pixels and above. Colour codes can be written as #12263A or #FFF.
Colour Contrast Checker is built by SEOLOG and offered free for you to use.
- Completely free
- No sign-up
- What you enter stays in your browser
What does a colour contrast checker do?
A colour contrast checker calculates the contrast ratio between a text colour and a background colour and shows whether that ratio meets the WCAG 2 accessibility criteria. The ratio runs from 1:1 (the same colour) to 21:1 (black on white); the higher it is, the easier the text is to read.
Low contrast makes text unreadable for people with low vision, and anyone looking at a phone screen in sunlight has the same problem. WCAG 2 asks for at least 4.5:1 for normal text and 3:1 for large text at level AA; at level AAA those values become 7:1 and 4.5:1. User interface components such as buttons, icons and form borders need 3:1. This contrast ratio calculator gives a separate "Pass" or "Fail" for each of the five criteria.
The colours you enter are calculated in your browser and are not sent to our servers. This online WCAG contrast test is free and unlimited; try your brand colours, buttons and text as often as you like.
How to use the colour contrast checker
- Enter the text colour. Type the colour code into "Text colour" or use the colour picker beside it. Codes can be written as #12263A or #FFF.
- Enter the background colour. Fill in "Background colour" the same way. The sample box shows a heading and a paragraph in the colours you chose.
- Read the ratio. The large figure is the contrast ratio; the label beside it sums it up as "Meets level AAA", "Meets level AA", "Enough for large text only" or "Not enough contrast".
- Check the table. The "WCAG 2 criteria" table shows the ratio required for normal text, large text and interface components, with a "Pass" or "Fail" for each.
- Try other colours. If the result falls short, darken or lighten one of the colours and look again. "Swap the colours" exchanges text and background; the ratio stays the same, and the sample box shows how the reverse pairing looks.
Frequently asked questions
If your answer is not here, write to us.
Is the colour contrast checker free?
Yes. The SEOLOG colour contrast checker is completely free and asks for no account or email. There is no usage limit; test as many colour pairs as you like.
What is the minimum contrast ratio under WCAG?
Level AA requires at least 4.5:1 for normal text and 3:1 for large text. Level AAA requires 7:1 for normal text and 4.5:1 for large text. Interface components such as buttons, icons and form borders need 3:1.
What counts as large text in WCAG?
Text of 24 pixels and above, and bold text of 18.66 pixels and above, counts as large text. Larger letters are easier to make out, so a lower contrast ratio is accepted for them. Body copy and small labels fall under the normal text criterion.
How is the contrast ratio calculated?
First the relative luminance of each colour is worked out with the WCAG formula. Then 0.05 is added to the luminance of the lighter colour and the result is divided by the luminance of the darker colour plus 0.05. The outcome is a ratio between 1:1 and 21:1, and it does not depend on which colour is the text and which the background.
My brand colour fails the contrast test. What can I do?
If you want to use the colour for text, try a slightly darker shade; a small change is often enough to clear 4.5:1. To keep the colour as it is, use it only for large headings, or make it the background and put dark or white text on top. You can try each option in the tool and read the ratio.
Similar free tools
All Utility Tools- Utility Tools Favicon Generator Turn your logo into favicon.ico and every app icon in one step. Open tool
- Utility Tools Image Compressor & WebP Converter Shrink JPG and PNG images and convert to WebP; files never leave your device. Open tool
- Utility Tools QR Code Generator Make a QR code for a link, Wi-Fi, contact card or phone; download PNG or SVG. Open tool
- Utility Tools Character Counter & Case Converter Count characters, words and sentences; check X, Instagram and SEO limits. Open tool
Planning a new website?
We design websites that load fast, are SEO-friendly and are easy to manage.