Skip to content
Accessibility

Check color contrast for accessibility

Enter a text color and a background color to see the exact contrast ratio and whether it passes WCAG AA and AAA.

Contrast ratio
AA · Normal text
AA · Large text
AAA · Normal text
AAA · Large text

Large heading preview

This is a preview of normal body text rendered with your chosen colors. Readable contrast keeps content comfortable for everyone.

Contrast is one of the most important — and most overlooked — parts of accessible design. If text doesn’t have enough contrast against its background, people with low vision, color vision deficiencies, or simply a sunlit screen will struggle to read it.

This checker computes the WCAG 2.1 contrast ratio between any two colors and tells you, at a glance, whether the pair passes the AA and AAA thresholds for both normal and large text. A live preview shows the actual text rendered on the background so you can trust the number.

How to use the Contrast Checker

  1. Set the text color. Enter the foreground color you plan to use for text or icons.
  2. Set the background. Enter the surface color the text will sit on — a page background, card, or button fill.
  3. Read the result. The ratio updates instantly with clear Pass / Fail labels for AA and AAA at both text sizes.

Practical examples

Body text Aim for at least 4.5:1 so paragraphs are comfortable for everyone to read.
Large headings Text 24px (or 18.66px bold) and larger only needs 3:1 to pass AA.
Buttons & icons Interactive elements and meaningful icons should reach 3:1 against adjacent colors.

Why the Contrast Checker matters

  • WCAG AA contrast is a legal accessibility requirement in many regions and a baseline expectation for professional products.
  • Good contrast helps everyone, not only users with disabilities — it improves readability on cheap screens, in bright light, and for tired eyes.
  • Catching contrast problems early is far cheaper than retrofitting an entire design system after launch.

Frequently asked questions

What contrast ratio do I need to pass WCAG AA?

Normal text needs a ratio of at least 4.5:1. Large text (24px, or 18.66px bold) needs at least 3:1. AAA raises these to 7:1 and 4.5:1.

What counts as ‘large text’?

WCAG defines large text as 24px (about 18pt) regular weight, or 18.66px (about 14pt) bold and above.

Does contrast apply to icons and graphics?

Yes. Meaningful non-text elements such as icons, form borders, and UI components should meet a 3:1 contrast ratio against adjacent colors.