Bargaon
Website and UX Runs in your browser · Free · No sign-up

Colour Contrast and Palette Checker

Check text and background colours against WCAG 2.2 contrast levels for normal text, large text and UI components, see a live preview, and get the nearest passing shade for AA or AAA. Paste your brand palette to check every text and background pair at once.

Loading the tool…

Runs in your browser. Nothing you enter is stored on our server.

About this tool

Low contrast makes text hard to read for everyone on a phone in sunlight, and much harder for people with low vision. The Web Content Accessibility Guidelines (WCAG) set minimum contrast ratios, and many accessibility laws and procurement rules refer to them.

Enter a text colour and a background colour as hex, rgb() or hsl(), or use the colour pickers. The checker shows the contrast ratio, a live preview and whether the pair passes Level AA and AAA for normal text (4.5:1 and 7:1), large text (3:1 and 4.5:1), and icons, borders and focus indicators (3:1). If a pair fails, it suggests the nearest passing shade: the same hue and saturation with the smallest change in lightness, for either the text or the background, and you can apply it with one click.

Paste your brand palette to see a grid of every text and background combination with its ratio and level, so designers know which pairs are safe to use. Thresholds come from WCAG 2.2 success criteria 1.4.3, 1.4.6 and 1.4.11. Large text means at least 18pt (24px) or 14pt (about 18.66px) bold. Contrast is one part of accessibility; also check focus states, text over images and colour-only cues.

How to use it

  1. Enter or pick the text and background colours.
  2. Read the ratio and AA/AAA results for each use.
  3. Apply a suggested shade if a pair fails.
  4. Paste your palette to check every combination.
  5. Share the passing pairs with your designers.

How it works

Normal text
AA 4.5:1 and AAA 7:1.
Large text
AA 3:1 and AAA 4.5:1 for 24px, or 18.66px bold.
UI components
3:1 for icons, borders and focus indicators.
Nearest passing shade
Smallest lightness change to reach AA or AAA.
Palette grid
Every text and background pair in your palette.
FAQ

Questions about this tool.

01 What contrast ratio do I need?

For WCAG Level AA: 4.5:1 for normal text, 3:1 for large text and 3:1 for user interface components and graphics. Level AAA asks for 7:1 for normal text and 4.5:1 for large text.

02 What counts as large text?

At least 18 point (24 CSS pixels), or 14 point (about 18.66 CSS pixels) when bold.

03 Do logos need to meet contrast rules?

No. Logos and brand names in logos are exempt, as are disabled controls and purely decorative elements.

04 How is the nearest shade chosen?

The tool keeps the hue and saturation and changes only the lightness, trying darker and lighter, and picks the smallest change that reaches the target ratio.

05 Is contrast enough for accessibility?

No. Also check keyboard focus, text over images, link styling that does not rely on colour alone, and readable font sizes.

Free growth audit

Want help acting on the results?

Share your website and what the tool showed. We'll review it and reply by email.