Skip to content

Color contrast checker

Enter a text and a background colour to see the contrast ratio, whether it passes WCAG, and the nearest colour that would.

Runs in your browser. Everything happens in your browser. Nothing you enter is sent to NismaCloud.

Large text means at least 24px, or 18.66px bold.

The quick brown fox jumps over the lazy dog.

Large text, 24px

Contrast ratio

4.83:1

  • Normal text, AA (4.5:1)Pass
  • Normal text, AAA (7:1)Fail
  • Large text, AA (3:1)Pass
  • Large text, AAA (4.5:1)Pass
  • Icons and UI parts (3:1)Pass

How to use it

  1. 1

    Enter the text colour and the background colour as hex.

  2. 2

    Read the ratio and the AA and AAA results for normal and large text.

  3. 3

    If it fails, use the suggested colour: same hue, adjusted lightness.

The thresholds

WCAG 2.1 level AA requires 4.5:1 for normal text and 3:1 for large text (24px, or about 18.66px bold) and for icons and interface parts. Level AAA raises text to 7:1 and 4.5:1.

The ratio compares relative luminance, the perceived brightness of each colour, from 1:1 (identical) to 21:1 (black on white). Results are compared at two decimals, like other WCAG checkers, so 4.49 does not round up to a pass.

Questions

Does passing AA make my site accessible?

It covers one criterion. Accessibility also depends on structure, labels, keyboard use and more; automated checks cannot confirm full compliance.

What about text on images or gradients?

Check the lightest and darkest spots behind the text. If any fails, add an overlay or a solid background behind the text.

What is APCA?

A newer contrast method proposed for future guidelines. Today’s legal and procurement requirements still reference WCAG 2 ratios, which this tool uses.

Updated:

Use your palette on a real site

Every NismaCloud template takes your brand colours and fonts, and checks text contrast as you design.