Colour Contrast Checker
Check text/background contrast against WCAG accessibility rules.
Also called: color contrast checker, WCAG contrast checker, accessibility contrast ratio.
Colour Contrast Checker
Check text/background contrast against WCAG accessibility rules.
Watch: how to use the Colour Contrast Checker (11 seconds)
Recorded on a phone, steps written on screen, no sound.
About the Colour Contrast Checker
Enter a text colour and a background colour to get their contrast ratio and whether they pass WCAG AA and AAA for normal and large text.
AA needs 4.5:1 for normal text and 3:1 for large text; AAA needs 7:1 and 4.5:1.
WCAG contrast ratios and accessibility thresholds
The checker compares a text colour with its background and reports the contrast ratio. Under WCAG, the AA minimum is 4.5:1 for normal text and 3:1 for large text. The large-text threshold is at least 18 pt regular or 14 pt bold; AAA uses stricter contrast requirements.
A ratio is based on the relative luminance of the foreground and background colours. A colour pair that looks readable on one monitor may be difficult for someone else to read, so use the numeric result rather than relying only on visual judgement.
This is a colour-pair check, not a complete accessibility audit. Also check focus indicators, text resizing, keyboard access, meaningful labels, images of text and contrast in every interactive state. The U.S. Section 508 programme also points to manual contrast testing as part of accessibility checks.
How to use the Colour Contrast Checker
- Add your inputFill in text colour and background colour. An example is already filled in, so you can press Run tool first to see how it works.
- Press Run toolThe result appears right under the button.
- Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.
This tool works inside your browser: what you enter stays on your device.
Example
A sample input and the result the Colour Contrast Checker gives for it (produced by the tool itself, not typed by hand).
- Text colour
- #1a1a1a
- Background colour
- #ffffff
Result:
Contrast ratio: 17.40 : 1 WCAG AA – normal text (4.5): PASS WCAG AA – large text (3): PASS WCAG AAA – normal text (7): PASS WCAG AAA – large text (4.5): PASS UI components (3): PASS
Good to know
- What you need
- You type or choose: Text colour, Background colour
- Where it runs
- In your browser, on your device.
- Cost
- Free, no sign-up.
Questions
What counts as large text?
About 24 px regular or 18.7 px bold and above.
Which colour formats work?
HEX like #1a1a1a and RGB.
More tools in Design
- Colour Converter
- Colour Palette Generator
- Colour Shades & Tints Scale (50–950)
- CSS Box Shadow Generator
- CSS clamp() Fluid Size Generator
- CSS Gradient Generator
- Image Colour Palette Extractor
- Lorem Ipsum Generator
- PX ⇄ REM Converter
- Screen Colour Picker (eyedropper)
- Screenshot Mockup (browser or phone frame)
- SVG Minifier