Free toolNo sign-up, runs in your browser

Colour contrast checker

Check a text and background colour against every WCAG 2.2 contrast threshold, AA and AAA, and see them on real text, a button and an input. When text falls short, it finds the nearest colour that passes.

contrast-checker · WCAG 2.2
In your browser

Contrast ratio

6.56:1

Passes AA for all text.

Normal text · 16px

Your invoices are paid on the first of each month. Change the date or the card in billing at any time.

Large text · 24px

Plans that grow with your team

Button and input border

A hex colour, such as #1f2937 or #abc.

A hex colour, such as #1f2937 or #abc.

#5c5c6b on #ffffff

WCAG 2.2 checks

  • PassNormal text, AASC 1.4.3 · needs 4.5:1
  • PassLarge text, AASC 1.4.3 · needs 3:1
  • FailNormal text, AAASC 1.4.6 · needs 7:1
  • PassLarge text, AAASC 1.4.6 · needs 4.5:1
  • PassUI components and graphics, AASC 1.4.11 · needs 3:1

The three numbers to know

4.5:1

Normal text, AA

Normal text at AA (SC 1.4.3). The line most body copy, labels and links have to clear.
3:1

Large text and UI, AA

Large text at AA, and the parts of a control or chart you need to see to use it (SC 1.4.11).
7:1

Normal text, AAA

Normal text at AAA (SC 1.4.6), the enhanced level. Large text needs 4.5:1 there.

Fixing a pair that fails

Moving the text colour is usually the smallest fix, so the suggestion mixes your text colour toward black or white, whichever reaches 4.5:1 first, and keeps its hue. Every result lives in the address, so copy the link to share a pair with your team or file it with a bug.

Checking a whole palette? The shadcn/ui theme generator builds light and dark themes from one brand colour with every text pair checked at AA.

GliaKit Studio

Want every page checked before you see it?

GliaKit Studio designs every page of your app from one prompt with WCAG 2.2 AA contrast enforced on text, buttons and charts, and exports clean Next.js code on shadcn/ui. Or start from the free kit.

Talvo's Overview page, designed in GliaKit Studio

About contrast

Still unsure? Email dejan@veljanoski.com and the person who built it will reply.

Contrast checked.
Ship it designed.

Start a free Studio trial with no card, and get every page of your app designed at AA.

Free trial, no card. Studio designs every page.

Or start from an example

or get the free kit