Color Contrast Checker (WCAG) Free

Pick a text colour and a background colour. You get the contrast ratio, a live preview, and a clear pass or fail for each WCAG level, plus the closest text colour that would pass.

🎨 Colours

Try an example:

✅ Result

Large heading text
Body copy: The quick brown fox jumps over the lazy dog.
Contrast ratio5.99 : 1
Normal text (AA) · 4.5:1✓ Pass
Large text (AA) · 3:1✓ Pass
UI components (AA) · 3:1✓ Pass
Normal text (AAA) · 7:1✕ Fail
Large text (AAA) · 4.5:1✓ Pass
Built by Pyalm

Pyalm designs and builds fast, accessible websites and web apps for businesses in India and the UAE. Use this free checker on your own designs, and talk to us when you want them built properly.

Pyalm serviceWebsite developmentFast, SEO-ready business websites and web apps built in Next.js — designed around the questions your buyers ask.See website development Pyalm serviceCustom softwareInternal tools, portals and business systems built around how your team actually works — not the other way round.See custom software

What the numbers mean

WCAG contrast ratio runs from 1:1 (identical colours) to 21:1 (black on white). Level AA requires 4.5:1 for normal text and 3:1 for large text (18pt, or 14pt bold) and for interface components such as input borders and icons. Level AAA raises those to 7:1 and 4.5:1. Low-contrast text is the single most common accessibility failure on the web.

Fixing a failing pair

When the pair fails AA, the tool nudges the text colour's lightness, keeping its hue and saturation, until it passes — so a failing brand grey becomes a slightly darker brand grey. Consider the fix for body text first; large headings and decorative elements have more latitude. Note that contrast also matters for disabled and placeholder text, which are easy to overlook.

Related

More free tools you might need

🌈

Color Converter & Contrast CheckerFree

Convert between HEX, RGB, HSL, HSV, CMYK and OKLCH — and check WCAG contrast.

🎨

Color Palette GeneratorFree

Generate harmonious colour palettes, lock the ones you like, extract colours from an image and export as CSS or Tailwind.

🔲

CSS Box Shadow GeneratorFree

Design layered CSS box shadows visually and copy the CSS or Tailwind class.

⭐

Favicon GeneratorFree

Create a complete favicon set from an image, text or emoji — ICO, PNGs, manifest and HTML.

Browse all free tools

FAQ

Frequently asked questions

Are logos and decorative text exempt?

WCAG exempts logotypes and purely decorative text, and inactive controls. Everything that carries information still needs sufficient contrast.

Which colour formats can I type?

HEX (#2F6F4F or #2f6), rgb(), hsl() and CSS colour names.

Does contrast alone make a site accessible?

No. It is one of many requirements — keyboard access, alt text, focus states and semantic structure matter just as much.

Want a website that ranks and converts?

Pyalm designs and builds fast, accessible websites and web apps for businesses in India and the UAE. Use this free checker on your own designs, and talk to us when you want them built properly.

See website development