hexcolors

Learn / Tutorials

How to check your website's color contrast in five minutes

A fast, practical routine to find and fix contrast problems before launch.

November 19, 20261 min readBy the hexcolors team

Key takeaways

  • Test pairs in bulk instead of one at a time.
  • Fix by adjusting lightness, not by changing the brand hue.
  • States and UI components count, not just body text.

You do not need an audit to catch the most common accessibility problem on the web. This routine finds most contrast failures quickly.

Step 1: List your color pairs

Write down every text color and the backgrounds it appears on: body text, links, buttons, placeholders, disabled states, badges and footers.

Step 2: Test them in bulk

Paste the hex codes into the contrast matrix. It shows every pair at once, with pass or fail labels.

Step 3: Fix the failures

For each failing pair, use the accessible color finder. It keeps the hue and adjusts the lightness until the pair passes.

Step 4: Check states and components

Input borders, icons and focus rings need at least 3:1 against their surroundings. Check hover, focus and disabled colors as well.

Step 5: Write the rules down

Record the approved pairs in your design system so nobody has to guess later.

Wrap up

For the thresholds and the math, read our guide to color accessibility.

The hexcolors teamWe build free color tools and write practical guides. Follow us on X, Instagram and LinkedIn.