Tools / Color converter and contrast checker / Calculators

Color contrast checker

A color contrast checker for text and background colors. See the ratio and whether it passes WCAG AA and AAA. In your browser.

Report a problem

How to use it

  1. Type a color in HEX, RGB or HSL, or pick one.
  2. Copy the format you need.
  3. In the contrast checker, enter a text color and a background to see if they pass.

About color contrast checker

Use this color contrast checker to see whether text is readable on its background. Enter a text color and a background color under Contrast checker and read the ratio and a pass or fail for each WCAG level. Normal text needs at least 4.5 to 1 for AA and 7 to 1 for AAA. Large text needs 3 to 1 for AA. Buttons and icons need 3 to 1. A live sample shows how the pair really looks.

Questions

What contrast ratio is needed?

At level AA, 4.5 to 1 for normal text and 3 to 1 for large text. Level AAA asks for 7 to 1 and 4.5 to 1.

What counts as large text?

At least 18 point, or 14 point and bold.

Which formats can I type?

HEX, RGB or HSL, for example #0f172a or rgb(15, 23, 42).

Which color formats can I type?

HEX such as #4f46e5 or #fff, RGB such as rgb(79, 70, 229), and HSL such as hsl(243, 75%, 59%).

Related tasks

Last updated: 2026-10-25

Other tools