Check the contrast ratio of text and background colours against WCAG AA and AAA. Free and private.
Contrast ratio
15.13:1
Large text sample
This is how normal body text looks with your colours. Can you read it comfortably?
ButtonNormal text ยท AA
Body text under 24px, needs 4.5:1
Normal text ยท AAA
Enhanced contrast, needs 7:1
Large text ยท AA
24px, or 18.66px bold, and up, needs 3:1
Large text ยท AAA
Enhanced, large text, needs 4.5:1
Buttons and icons ยท AA
Borders, icons, form fields, needs 3:1
Everything is worked out in your browser. Nothing is sent to a server.
NinjaFunction's Color Contrast Checker compares a text colour with a background colour and shows the contrast ratio from 1:1 to 21:1. It tells you at once whether the pair passes WCAG AA and AAA for normal text, large text and interface parts such as buttons and icons, shows a live preview, and suggests a nearby colour that passes when yours fails. It runs in your browser, so nothing is sent to a server.
| Level | What it covers | Ratio needed |
|---|---|---|
| AA | Normal text | 4.5:1 |
| AA | Large text | 3:1 |
| AA | Buttons, icons, borders of form fields | 3:1 |
| AAA | Normal text | 7:1 |
| AAA | Large text | 4.5:1 |
These numbers come from the Web Content Accessibility Guidelines (WCAG), which many accessibility laws and policies refer to. Level AA is the common goal for websites.
The contrast ratio compares how bright two colours are. It goes from 1:1, which is no difference at all, to 21:1, which is black on white. The higher the number, the easier the text is to read.
For WCAG level AA, normal text needs at least 4.5:1, and large text and interface parts such as buttons and icons need at least 3:1. For the stricter level AAA, normal text needs 7:1 and large text needs 4.5:1.
Text that is at least 24 pixels (18 points) in size, or at least 18.66 pixels (14 points) and bold. Anything smaller counts as normal text.
AA is the usual target for websites and the level most laws and policies ask for. AAA is stricter and gives the best readability, but it is not always possible for every colour, so it is usually used for body text where you can.
No. WCAG does not ask for contrast on logos, on text that is only decoration, or on parts of a page that are switched off. Everything that people need to read or use should pass.
When your colours fail, the tool keeps the same shade and makes your text colour lighter or darker, a little at a time, until it reaches 4.5:1. You can accept the suggestion or keep your own colour.
No. The ratio is worked out in your browser, and nothing you enter is sent or stored.