WebAIM Contrast Checker
Contrast checker that tests a foreground and background colour against WCAG AA and AAA for normal text, large text and graphical elements.

At a glance
Checked
- Pricing
- Free: no account needed, with a JSON API and a bookmarklet
- Licence
- Proprietary, not open source
- Made by
- WebAIM, a non-profit service centre at Utah State University
- Platforms
- In the browser, with a bookmarklet that runs on any page
- Website
- webaim.org
What it’s good for
WebAIM's Contrast Checker takes a foreground and a background colour, typed as hex or chosen with a colour picker, and returns the contrast ratio with a pass or fail for WCAG AA and AAA at normal text size, at large text size and for graphical objects and interface components. An alpha value makes the foreground transparent, and a lightness slider shifts a colour's perceived lightness so a failing pair can be nudged until it passes.
Every result has a permalink with both colours in the address, handy for a ticket or a design review, and adding &api to it returns the ratio and the pass states as JSON. A bookmarklet opens a small version with eyedroppers on any page. WebAIM, the non-profit at Utah State University that also makes WAVE, offers it free with no sign up.
Alternatives to WebAIM Contrast Checker
All Accessibility toolsAccessible Color Matrix
Tests a whole palette at once as a grid of every foreground and background pair.
Accessibility
APCA Contrast Calculator
Uses APCA, the contrast method proposed for WCAG 3, instead of the WCAG 2 ratio.
Accessibility
Questions
- What contrast ratio does WCAG AA require?
- For normal text, AA needs at least 4.5:1, and large text and graphical elements need 3:1. AAA raises normal text to 7:1 and large text to 4.5:1. The checker counts 18pt, or 14pt bold, and larger as large text.
- Does the WebAIM Contrast Checker have an API?
- Yes. Put &api on the end of a result's permalink and the page answers in JSON, giving the ratio and whether the pair passes AA and AAA at each size.




