Kadben

Colour contrast checker (WCAG 2.2)

Enter a text colour and a background colour in any CSS form and see their contrast ratio, whether they meet WCAG 2.2 AA and AAA for normal text, large text and interface parts, and the nearest colours that would.

Runs in your browser. Nothing is uploaded.

Contrast checker

Colours

Any CSS colour: #777, #777777, rgb(119 119 119), hsl(0 0% 47%), a name such as “navy”; with transparency (#7778, rgb(… / 50%)) it is drawn over the background.

Contrast ratio

CriterionNeeds at leastResult

    Nearest colours that pass

      How to use it

      1. Enter the text colour and the background colour, or pick them with the colour pickers.
      2. Read the ratio and the pass or fail for each criterion; the preview shows the pair.
      3. If a level fails, see the nearest text or background colour that reaches it.
      4. Select “Use” to try a suggested colour, or copy its code.

      Rules and limits

      How the ratio is worked out

      The suggested colours

      Questions and answers

      What counts as large text?

      WCAG calls text large from 18 point (24 CSS pixels) or 14 point bold (about 18.7 pixels bold). Large text needs 3:1 for AA and 4.5:1 for AAA, normal text 4.5:1 and 7:1.

      Why does 4.48:1 fail when it is so close to 4.5:1?

      WCAG sets the minimum without rounding: the ratio must reach 4.5 exactly. That is why grey #777777 on white fails and #767676 passes.

      Is a passing ratio enough for readable text?

      It is the minimum the guidelines can measure. Thin fonts, small sizes, text over pictures and colour-blind readers can still need more; the preview helps you judge.

      Are the colours sent anywhere?

      No. The ratio is worked out in your browser; the page sends nothing. The two colours are kept only in this tab, like the options of the other tools.

      Related tools