# Color contrast checker (WCAG 2.2 AA and AAA)
URL: https://pandus.online/en/color-contrast-checker
Updated: 2026-10-14

Free WCAG contrast checker: enter the text and background colour, see the contrast ratio, AA and AAA results for text and UI, and the closest passing colour.

Enter a text colour and a background colour: the checker shows the **contrast ratio** by the WCAG 2.x formula, whether it passes **level AA and AAA** for normal and large text and for interface parts, and the **closest text colour** that reaches 4.5:1.

## What the results mean

| Requirement                     | Minimum | WCAG criterion            |
| ------------------------------- | ------- | ------------------------- |
| Normal text, level AA           | 4.5 : 1 | 1.4.3 Contrast (Minimum)  |
| Large text, level AA            | 3 : 1   | 1.4.3 Contrast (Minimum)  |
| Normal text, level AAA          | 7 : 1   | 1.4.6 Contrast (Enhanced) |
| Large text, level AAA           | 4.5 : 1 | 1.4.6 Contrast (Enhanced) |
| Icons, borders, interface parts | 3 : 1   | 1.4.11 Non-text Contrast  |

Level AA is the level that EN 301 549, the European Accessibility Act, the German BFSG and US practice under the ADA rely on. AAA is stricter and not required by these laws.

## WCAG contrast requirements in detail

**Text: 1.4.3 Contrast (Minimum), level AA.** Text and images of text need a contrast ratio of at least **4.5:1** against their background; **large text** — at least 24 CSS pixels, or about 18.66 pixels in bold — needs **3:1**. Logos, text of disabled controls and purely decorative text are exempt. Placeholder text, prices, sale badges and text on banners are not. Details: [1.4.3 Contrast (Minimum)](https://pandus.online/en/wcag/1-4-3-contrast-minimum).

**Non-text contrast: 1.4.11, level AA.** The parts of the interface people need to see to use it need at least **3:1** against what is next to them: the border of an input field, the outline of a checkbox or radio button, the focus indicator, icon-only buttons, the state of a toggle, and lines and segments in charts that carry information. A light grey input border on white is the most common failure. Details: [1.4.11 Non-text Contrast](https://pandus.online/en/wcag/1-4-11-non-text-contrast).

**AAA contrast: 1.4.6 Contrast (Enhanced).** Level AAA raises the text values to **7:1** and **4.5:1** for large text. No law we know of requires AAA for whole sites, and the W3C does not recommend it as a general policy, but 7:1 for body text helps older readers and anyone on a phone in sunlight. More on the levels: [WCAG levels A, AA and AAA](https://pandus.online/en/wcag-levels-a-aa-aaa).

To test a non-text pair, enter the colour of the border or icon as the text colour and the background behind it as the background colour, and read the "interface parts" row.

## Can I check an image or a screenshot?

Yes. Under the colour fields, **choose an image**, drop a screenshot or paste it with **Ctrl+V** (⌘V on a Mac), then click the text and then the background in it — or move the crosshair with the arrow keys and press Enter. The image is drawn on this page in your browser and is never uploaded.

- Text edges are smoothed (anti-aliasing), so pick a pixel in the middle of a thick letter, not at its edge.
- For text on a photo or a gradient, check the lightest and the darkest area behind the text separately.
- On a live page, the [browser extension](https://pandus.online/en/accessibility-checker-browser-extension) takes the text colour and the real background of an element you click, including semi-transparent layers.

To find every low-contrast text on a page at once, run the free [WCAG checker](https://pandus.online/en/wcag-checker): it reports each element with its colours and ratio.

## Colours with transparency, and colour blindness

The fields accept hex (also with alpha, like #2f47d980), **rgb()**, **rgba()**, **hsl()**, **hsla()** and colour names. A semi-transparent text colour is blended with the background first, and the ratio is measured on the colour you actually see; a semi-transparent background is blended with white.

The switch above the sample shows the colours as people with **protanopia**, **deuteranopia**, **tritanopia** or **achromatopsia** see them. It is an approximation (Machado et al., 2009) and vision varies from person to person; WCAG measures contrast on the original colours, so use it to spot pairs that rely on colour alone.

## Why contrast matters in an online shop

Grey prices on white, white text on a pale banner, light placeholders in the checkout form: people with low vision, older customers and anyone on a phone in sunlight read them slowly or not at all. Low contrast is the most frequent problem automated checks find on shop websites. Fix it in the colour settings of your theme or in its CSS variables, not element by element.

## How the ratio is calculated

The ratio compares the relative luminance of the lighter and the darker colour: (L1 + 0.05) / (L2 + 0.05). It goes from 1:1 (the same colour) to 21:1 (black on white). Transparency, shadows and background images change the real contrast; check text on images with the darkest and lightest part of the image behind it.

How the relative luminance is computed, why designers also talk about APCA and how Windows high contrast mode fits in: [APCA vs WCAG contrast](https://pandus.online/en/apca-vs-wcag-contrast).

## Check the whole site

This checker tests one colour pair. [Pandus](https://pandus.online/en/free-accessibility-check) finds every text with low contrast on a page — with the colours, the ratio and a screenshot — and checks every page of your site each week. See also the rule [low text contrast](https://pandus.online/en/rules).

Q: What contrast ratio does WCAG require?
A: Level AA asks for at least 4.5:1 for normal text and 3:1 for large text (WCAG 1.4.3), and 3:1 for icons, field borders and other parts of the interface (1.4.11). Level AAA asks for 7:1 and 4.5:1.

Q: What counts as large text?
A: Text of at least 24 CSS pixels, or at least 18.66 pixels in bold — roughly 18 pt and 14 pt bold.

Q: Do logos and disabled buttons need contrast?
A: No. Logos and text of inactive controls are exempt from the contrast requirement. Placeholder text in fields is not exempt if it carries information.

Q: Does the EAA require a contrast ratio?
A: The EAA relies on the harmonised standard EN 301 549, which takes over the WCAG criteria, including 1.4.3 contrast at level AA.

Q: Are my colours sent anywhere?
A: No. The calculation runs in your browser.

Q: What is non-text contrast?
A: WCAG 1.4.11 (level AA) asks for a contrast of at least 3:1 for the visual parts of controls and for graphics needed to understand content: input borders, checkbox outlines, focus indicators, icons and chart lines.

Q: Can I upload an image or a screenshot to check contrast?
A: Yes. Choose an image, drop a screenshot or paste it with Ctrl+V, then click the text and the background in it. The image is drawn in your browser and never uploaded. Text edges are smoothed, so pick a pixel in the middle of a letter.

Q: Can I enter rgb, rgba or hsl colours with transparency?
A: Yes: hex (also with alpha), rgb(), rgba(), hsl(), hsla() and colour names. A semi-transparent text colour is blended with the background first, and the ratio is measured on the colour you actually see.

Q: Can I see how colour-blind people see my colours?
A: Yes. The switch above the sample shows it for protanopia, deuteranopia, tritanopia and achromatopsia. It is an approximation (Machado et al., 2009); WCAG measures contrast on the original colours.

Q: What is AAA contrast?
A: WCAG 1.4.6 Contrast (Enhanced), level AAA, asks for 7:1 for normal text and 4.5:1 for large text. It is not required by EN 301 549 or US rules, but 7:1 is a good target for body text.
