Contrast Checker
Free Contrast Checker online.
- Runs in your browser No upload — everything runs on your device.
- No sign-up, no watermark Free to use, no account needed.
- Files never uploaded Nothing leaves your device.
- 5,400+ tools, one site File, unit and currency tools in one place.
Text is only readable when it stands out enough from its background, and the WCAG 2.x standard measures that with a contrast ratio from 1 to 1 up to 21 to 1. This checker takes two colours — the first is the text, the second is the background — and reports the ratio plus whether the pair passes each level: AA needs 4.5 to 1 for normal text and 3 to 1 for large text, while AAA needs 7 to 1 and 4.5 to 1. White on black scores 21 to 1 and passes everything; a mid-grey on white can pass AA for large text while failing it for normal text, and the tool says exactly which levels pass. The ratio comes from the standard relative-luminance formula, so it matches what accessibility auditors compute. Enter the colours as hex codes, rgb() or hsl() values, one per line or joined with the word on. The check runs entirely in your browser.
How to use Contrast Checker
- Paste your text type, paste (Ctrl+V) or drop a .txt file into the box above.
- Click Convert the tool runs entirely in your browser — nothing is uploaded.
- Read your results they appear below the tool as soon as the conversion finishes.
- Download the result save it for your records.
- Convert another clear the box and paste new text — no sign-up, no limits.
Format facts
| Input | Any plain text, or a .txt file (dropped or browsed). |
|---|---|
| Engine | Built-in browser engine |
| Category | Developer Tools |
Limits
- Browser processing has practical limits: files over 200 MB (or very long media) may be too large for your device. You will get an honest “too large” message, never a fake result.
- Pasted content is handled as plain text — formatting from documents is not preserved.
Frequently asked questions
Which colour is the text and which is the background?
The first colour you enter is the text and the second is the background. The ratio is the same either way round, but the labels in the result follow that order.
What do AA and AAA mean?
They are WCAG 2.x conformance levels. AA needs a ratio of 4.5 to 1 for normal text and 3 to 1 for large text; AAA needs 7 to 1 and 4.5 to 1. The tool reports which levels the pair passes.
What counts as large text?
In WCAG terms, large text is at least 18 points, or 14 points bold — roughly 24 pixels, or 18.66 pixels bold. Large text is allowed a lower ratio because thicker strokes stay readable at lower contrast.
How is the ratio calculated?
From the standard WCAG 2.x relative-luminance formula, which weights red, green and blue by how bright the human eye finds them. The result matches what accessibility auditors compute.
Was this tool helpful?
Thanks — your feedback helps us improve this tool.
Sorry it didn’t help — tell us what went wrong and we’ll fix it.