Utils365

Contrast checker

Enter a text colour and a background and see whether people can read it.

  • 100% free
  • No sign-up
  • Runs in your browser

Large text looks like this

Normal text looks like this. The quick brown fox jumps over the lazy dog.

Icons and borders

Contrast ratio

4.83:1

  • AA, normal textPass4.50:1
  • AAA, normal textFail7.00:1
  • AA, large textPass3.00:1
  • AAA, large textPass4.50:1
  • AA, icons and interface partsPass3.00:1

Closest colours that pass

Only the lightness changes, so the hue stays the same. Each row is the smallest change that reaches the ratio on its own, so where two are shown, pick either.

To reach 7:1 (AAA, normal text)

  • Change the text to #5459647.02:1

Next: Color converter · Color palette generator · CSS gradient generator

Report a problem with this tool

How to use Contrast checker

  1. Enter two colours

    Type or pick the text colour and the background colour. HEX, rgb(), hsl() and colour names all work, and Swap flips them.

  2. Read the result

    The contrast ratio appears with a pass or fail for normal text, large text and interface parts at WCAG levels AA and AAA.

  3. Fix a failing pair

    If the pair falls short, the closest text or background colour that reaches 4.5:1 or 7:1 is suggested. Apply it with one click.

Why use Utils365

  • Every WCAG 2 threshold

    3:1, 4.5:1 and 7:1 are each checked and labelled with what they cover, so you don’t have to remember the table.

  • Fixes, not just a verdict

    Suggestions change only the lightness of your colour, by the smallest amount that passes, so it still looks like your colour.

  • Never rounded into a pass

    A ratio of 4.499 shows as 4.49:1 and fails, exactly as an accessibility audit would treat it.

  • See it as text

    A live sample shows normal text, large text and an icon in your two colours.

Frequently asked questions

What contrast ratio do I need?

For WCAG level AA, normal text needs at least 4.5:1 and large text 3:1. Level AAA asks for 7:1 and 4.5:1. Icons, form field borders and other interface parts need 3:1 against the colours next to them.

What counts as large text?

Text of at least 18 point (24 CSS pixels), or at least 14 point (about 18.66 CSS pixels) if it is bold. Anything smaller is normal text and needs the higher ratio.

How is the contrast ratio calculated?

Each colour’s relative luminance is worked out from its red, green and blue values, then the ratio is (lighter + 0.05) ÷ (darker + 0.05). It runs from 1:1 for identical colours to 21:1 for black on white. This is the WCAG 2 formula.

How are the suggested colours chosen?

The tool keeps your colour’s hue and saturation and moves only its HSL lightness, in steps of a tenth of a percent, lighter and darker, until the ratio is reached. The nearest result is offered. For example, #999999 text on white becomes #767676 for 4.5:1.

Why is there sometimes no suggestion?

Some pairs can’t be fixed by changing one colour’s lightness. On a mid-grey background such as #808080, even pure black text only reaches about 5.3:1, so 7:1 is out of reach and you need a different background.

Does swapping text and background change the ratio?

Not for solid colours: the ratio depends only on the two colours, so white on navy and navy on white score the same, though how comfortable each is to read can differ. With a see-through colour the ratio can change, because see-through text is blended over the background while a see-through background is blended over white.

How are see-through colours handled?

Text with transparency is measured as it looks blended over the background. A see-through background is measured as it looks on white, because the tool can’t know what is behind it on your page.