Premium tools, free for everyone. Most run right in your browser.

OpenMultiURL

Contrast Checker

Contrast Checker helps designers and developers test text and background colours against WCAG AA and AAA, with suggestions for failing text colours. It runs in your browser and checks two flat colours, not a whole page.

  • Free, no subscriptions
  • Runs in your browser
  • Checked by AK Shine
See how it works before you use your own.

Large text looks like this

Normal text looks like this. Can you read it comfortably?

What is the Contrast Checker?

Contrast Checker is a free tool for checking whether text stands out enough from its background under WCAG 2.2. It calculates relative luminance using the WCAG 2 contrast formula, then compares the ratio with thresholds for normal text, large text, icons and buttons. Enter two colours to see a live preview and five Pass or Fail results. If normal text fails AA, it suggests the nearest lighter or darker shade of the same text colour that passes. Designers, developers and accessibility reviewers can use it when choosing colours or checking an existing design.

Who it is for: Contrast Checker is for web designers, frontend developers, accessibility reviewers, content editors and site owners.

How to use the Contrast Checker

  1. Enter a HEX, RGB, HSL or colour name in Text colour, or use its colour picker.
  2. Set Background colour using its field or colour picker.
  3. Read the live preview, contrast ratio and five Pass or Fail results as you change the colours.
  4. If normal text fails AA, enter the suggested shade in Text colour and check the result.
  5. Use Swap the two colours if you want to preview the colours in opposite roles.

Why use it

  • See results as you typeChange either colour and the preview, contrast ratio and Pass or Fail results update immediately.
  • Find a passing shadeWhen normal text fails AA, get a suggested lighter or darker text shade that passes.
  • Check different text sizesSee separate AA and AAA results for normal and large text, plus the 3:1 check for icons and buttons.
  • Keep checks on your deviceColour calculations run in your browser with nothing uploaded, and the tool works offline once loaded.

At a glance

What you put in
Text and background colours as HEX, RGB, HSL or colour names
What you get
Contrast ratio, five Pass or Fail results, live preview and a shade suggestion when normal text fails AA
Limits
Two flat colours; transparency treated as solid; WCAG 2.2, not APCA
Privacy
Runs in your browser. Nothing you enter is uploaded or stored.
Price
Free for everyone. No subscriptions, no payments, no watermark.
Works offline
Yes, once the page has loaded
Last checked
by AK Shine

Worked example

Input
Text colour: #777777
Background colour: #FFFFFF
Result
Contrast 4.47 to 1
AA, normal text (4.5): Fail
AA, large text (3): Pass
AAA, normal text (7): Fail
AAA, large text (4.5): Fail
Icons and buttons (3): Pass

Changing Text colour to #767676 gives 4.54 to 1 and passes AA for normal text.

When to use something else

  • For text over photos, gradients or translucent layers, inspect the rendered background first: this checker tests two flat colours and treats see-through colours as solid.
  • For a whole-site accessibility audit, combine a scanner with manual review; passing contrast does not check keyboard access, screen-reader support or whether colour is the only cue.
  • Use a separate APCA calculator if your work specifically requires APCA; this tool uses the WCAG 2 contrast method.

Questions people ask

Can I check contrast using HEX, RGB or HSL values?

Yes. Text colour and Background colour accept HEX, RGB, HSL and colour names, and each has a colour picker. The preview and results update as you type.

What is the difference between WCAG AA and AAA contrast?

AA requires at least 4.5:1 for normal text and 3:1 for large text. AAA requires 7:1 for normal text and 4.5:1 for large text; WCAG 2.2 keeps these thresholds.

What counts as large text?

Large text means 24 px or more, or 18.66 px or more in bold. If your text is smaller, use the normal-text result even if it looks large in the preview.

Do icons and buttons need 3:1 contrast?

Visual information needed to identify controls and meaningful graphics generally needs 3:1 against adjacent colours. Button text has its own text-contrast requirement, so the Icons and buttons result does not replace the normal-text check.

Why does a ratio just below 4.5 fail?

The normal-text AA threshold is at least 4.5:1, not approximately 4.5:1. This checker cuts the displayed ratio to two decimals without rounding up, so 4.499 appears as 4.49 and fails.

How can I fix a failing colour combination?

When normal text fails AA, the suggestion line gives the nearest lighter or darker shade of the same text colour that passes, with its ratio. Enter that shade in Text colour, or adjust Background colour and watch the results update.

Does swapping the colours change the contrast ratio?

No. Swap the two colours reverses the text and background roles, but the WCAG contrast ratio stays the same. The live preview lets you compare how the reversed combination looks.

Is Contrast Checker free, private and available offline?

It is free, with no subscriptions, and all calculations run in your browser with nothing uploaded. Once the tool has loaded, it also works offline.

Next, you might need