Contrast checker. See whether your text is readable on its background, and get the nearest colour that passes.

How it works

  1. Pick two colours

    Enter the text colour and the background, or paste any CSS colour.

  2. Read the result

    The ratio and a pass or fail for body text, large text and interface parts.

  3. Fix it in one click

    If it fails, take the closest text colour that passes and keeps its hue.

Questions

What contrast ratio do I need?

WCAG AA asks for 4.5:1 for body text and 3:1 for large text and interface parts such as icons and input borders. AAA asks for 7:1 and 4.5:1.

What counts as large text?

24px and up, or 18.66px and up when bold (18pt, or 14pt bold).

Does it handle colours with transparency?

Yes. A semi-transparent text colour is blended onto the background first, which is what the browser shows.

More design tools