OnlineNexusAccess accessibility home Free scan

Free color contrast checker

Check whether your text and background colors are easy enough to read. Enter two colors to get the WCAG contrast ratio and an instant pass or fail for normal text, large text and buttons. Everything runs in your browser; nothing is sent to us.

Hex code, for example #1a1aff or #fff.

Hex code, for example #1a1aff or #fff.

Contrast ratio: 4.54:1

WCAG contrast results
UseNeedsResult
Normal text, AABody text and most labels4.5:1Pass
Large text, AA24px and up, or 18.66px and up when bold3:1Pass
Normal text, AAAEnhanced level7:1Fail
Large text, AAAEnhanced level4.5:1Pass
UI components and graphicsBorders of inputs, icons, focus indicators3:1Pass

What the numbers mean

Contrast ratio compares how light two colors are, from 1:1 (the same color) to 21:1 (black on white). WCAG 2 success criterion 1.4.3 asks for at least 4.5:1 for normal text and 3:1 for large text, which WCAG defines as at least 18 point (about 24px) or 14 point bold (about 18.66px) (Understanding SC 1.4.3, W3C). The enhanced level, 1.4.6, asks for 7:1 and 4.5:1. Criterion 1.4.11 asks for 3:1 for the parts of buttons, form fields, icons and focus indicators that people need to see (Understanding SC 1.4.11, W3C).

This checker uses the relative luminance formula from WCAG and rounds results down, so a ratio shown as 4.50 really is at least 4.5.

How to find the colors on your store

  • Shopify: open Online Store > Themes > Customize > Theme settings > Colors. Each color scheme lists its text, background and button colors as hex codes. Our Shopify contrast guide shows how to fix a scheme.
  • WooCommerce: for block themes, see Appearance > Editor > Styles > Colors; for classic themes, look in Appearance > Customize.
  • Any site: most browsers' developer tools show the color of any text when you inspect it, and many include a color picker.

Common store problems this catches

  • Light grey text for prices, product descriptions or "sold out" labels.
  • White text on a pale brand color, such as a pastel button or announcement bar.
  • Placeholder text used as the only label in newsletter and search fields (see our form labels guide).
  • Faint focus outlines that keyboard users can't see (see our focus outline guide).

Text over photos can't be checked with two colors, because the background changes. Check the lightest part of the image behind the text, or add a solid overlay behind the words.

To find low-contrast text across your whole store at once, run the free store scan.

Technical fixes, not legal advice. This guide explains website accessibility from a technical point of view. We are not a law firm, and nothing here is legal advice. No scan, fix or guide can guarantee legal compliance, the outcome of any demand letter or lawsuit, or protection from future claims. If you have received a legal claim, please consult a qualified attorney about it.