Color Contrast

Color Contrast Checker (WCAG)

Choose a text color and a background color to see the contrast ratio and whether it meets WCAG 2.x levels AA and AAA. If it does not pass, the tool suggests the closest color that does, keeping the hue and only changing lightness.

Contrast ratio— : 1
  • Normal text AA4.5:1—
  • Normal text AAA7:1—
  • Large text AA3:1—
  • Large text AAA4.5:1—
  • UI parts and graphics AA3:1—

Preview

Large text sample (24px)

This is normal body text at 16px. Make sure it is easy to read for everyone, including people with low vision and on a phone outdoors.

Small text (14px) such as captions and notes

Button

Suggested colors

Change the text color

    Change the background color

      • Large text means 24px (18pt) or larger, or bold text of about 18.66px (14pt) or larger.
      • WCAG 2.x level AA is the usual target for websites (4.5:1 for normal text, 3:1 for large text and UI parts such as input borders and icons).
      • Text on photos or gradients needs checking against the lightest and darkest parts behind it.

      About this tool

      Choose a text color and a background color to calculate the contrast ratio and see whether it meets WCAG 2.x levels AA and AAA. Results are shown for normal text, large text and UI parts such as button borders and icons, with sample text to see how it really looks. If a pair does not pass, the tool suggests the closest passing color for the text and for the background, keeping the hue and changing only the lightness.

      How to use

      1. Set the Text color and Background color with the color picker or a code such as #1a2b3c.
      2. See the contrast ratio and a Pass or Fail for AA and AAA, for normal and large text and UI parts.
      3. Check the Preview with large text, body text, small text and a button.
      4. If it fails, pick a color under Suggested colors and click Use this. The ⇄ button swaps the text and background colors.

      Useful for

      • Checking that the colors of your website or banners are easy to read
      • Deciding whether white text works on your brand color
      • Building a site that must meet accessibility standards
      • Someone says your light gray text is hard to read

      FAQ

      What contrast ratio do I need?

      WCAG 2.x AA requires 4.5:1 for normal text and 3:1 for large text and UI parts such as button borders and icons. The stricter AAA level requires 7:1 for normal text.

      What counts as large text?

      Text of 24 px (18 pt) or more, or bold text of about 18.66 px (14 pt) or more.

      What is WCAG?

      The Web Content Accessibility Guidelines, the international guidelines for making web content usable by everyone.

      Can it check transparent colors or gradients?

      No. It compares solid colors written as #1a2b3c or #abc. For text on photos or gradients, test both the lightest and the darkest part of the background.

      Want an accessible website?

      We design websites with readable colors, font sizes and forms, and can review your current site for accessibility.

      Contact us
      Contact