Page Contrast Checker
Find text that is hard to read on your web page, even when it sits over photos or gradients. Paste a page address and we open it in a real browser, check every piece of text and suggest colours that pass WCAG AA. Free to use, no sign-up or installation needed.
Checking how many checks are left today…
How it works
Opening the page. Your address goes to our server, which opens the page in a headless browser run by Cloudflare at 1280 × 800 pixels. The checker runs inside that page.
Text on solid colours. The open-source axe-core library, unmodified, finds each piece of text and works out its colour and the colour behind it, through layers, transparency and opacity. We then compute the ratio from those two colours with the WCAG 2 formula, the same one as our Contrast Checker, and show it truncated, not rounded: 4.49 is never shown as 4.5. Large text is 24px, or 18.66px at weight 700 and above.
APCA. Lc comes from the apca-w3 package, unmodified, with the text colour first. It is shown with its sign: negative means light text on a dark background. A piece of text meets APCA when its font size is at least the minimum the package’s font lookup table gives for that Lc and font weight. APCA is in public beta and is not part of WCAG 2. Questions about APCA itself go to the APCA discussion forum.
Text over images and gradients. When axe-core cannot tell the background, for example a photo, a gradient or an element underneath, our checker takes three captures of the text: as it is, with the letters made transparent, and without its shadow. The pixels that change are the letters. The background is measured within about three stroke widths of them, inside the element’s own box. The verdict is the lower of the weakest spot (the weakest 3×3 patch) and the worst 10% of those pixels, for both WCAG and APCA. This is our method, the same as in the Image Contrast Checker: WCAG 2 defines the ratio for two solid colours and sets no statistic for a background made of many.
Page contrast checker: questions
- Why is the number of checks limited?
- Each check opens your page in a real browser on Cloudflare, our hosting provider. Browser time is paid by the minute, so each visitor gets 3 checks a day. You can ask for more, up to 10 in total, while the shared daily pool of 150 checks for everyone has room. The phone and dark theme options each use one more check from that shared pool.
- What do you store?
- We do not store the page you check or its report. The report goes straight to your browser and is not kept on our server. To count checks, we keep a daily counter linked to a hash of your IP address. Download the report as JSON or HTML if you want to keep it.
- Why did the check fail on my page?
- The browser that opens your page identifies itself as a bot. Some sites block bots or show them a different page, such as a login form or a security challenge. Pages behind a login and pages on a local or private network cannot be reached. For those, take a screenshot and check it part by part in the Image Contrast Checker.
- Does a clean report mean my page is accessible?
- No. The report checks text contrast on one page, at the screen sizes and in the themes you chose, as the page looked when our browser opened it. It does not check hover or focus states, a dark mode switched by the site’s own button, text inside images or iframes, or anything other than contrast. It is a dated report of measurements, not a certificate.
- Why do WCAG and APCA disagree?
- They measure contrast in different ways. WCAG 2 gives one ratio for two colours, the same whichever colour is the text. APCA gives a signed Lc value that depends on which colour is the text, and on the font size and weight. So a pair can pass WCAG AA and still fall below the APCA level for small text, or the other way round. WCAG 2 is the standard that accessibility laws refer to. APCA is still in public beta, and the report hides it unless you turn on «Show APCA».