Skip to main content Scroll Top

Color Contrast Explained: Making Sure Everyone Can Read Your Website

Light gray text on a white background has been fashionable for years. It can look delicate and modern in a design file viewed on a bright monitor. On a phone in sunlight, or for anyone with reduced vision, it can be nearly invisible. Color contrast is one of the simplest accessibility issues to understand and fix, which makes it a good place to start.

What contrast ratio means

Contrast ratio compares the relative brightness, or luminance, of two colors, typically text and its background. Ratios range from 1:1, which means no difference at all, to 21:1, which is black on white. The higher the number, the easier the text is to distinguish.

The Web Content Accessibility Guidelines, known as WCAG and published by the W3C, set minimum ratios. At the widely used AA level:

Advertisement
  • Normal body text should have a contrast ratio of at least 4.5:1.
  • Large text, roughly 18 point regular or 14 point bold and up, should have at least 3:1.
  • Meaningful graphics and interface components, such as input borders and icons that convey information, should have at least 3:1 against adjacent colors.

The stricter AAA level asks for 7:1 for normal text and 4.5:1 for large text.

Where contrast problems hide

Body text is the obvious place to check, but problems often show up elsewhere:

  • Placeholder text inside form fields, which is often very pale.
  • White text over photographs, where part of the image is light.
  • Buttons in a brand color with white or black text that does not quite pass.
  • Links that are distinguished from surrounding text only by a slightly different color.
  • Footer text in muted tones on a dark background.
  • Disabled-looking styles used on elements that are actually active.

How to check your colors

You do not need to calculate ratios by hand. Free contrast checkers let you enter two color values and see the ratio along with whether it passes each WCAG level. Browser developer tools in Chrome, Firefox and Edge can show contrast information when you inspect text. Automated accessibility checkers can flag low-contrast text across a whole page.

For text over images, automated tools are less reliable, so look carefully at the lightest part of the image behind the text. A semi-transparent dark overlay, a solid panel behind the text or a different crop can solve most issues.

Working with brand colors

Sometimes a brand’s signature color does not offer enough contrast for text. That does not mean abandoning it. Use the brand color for large shapes, backgrounds, accents and large headings, and choose a darker or lighter shade for body text and small labels. Many brands define a small range of tints and shades of their main colors for exactly this reason.

Advertisement

Do not rely on color alone

Contrast is related to another guideline: color should not be the only way information is conveyed. A form that marks errors only in red, or a chart that relies only on color to separate lines, will fail people with color vision deficiencies. Add text labels, icons or patterns so the meaning comes through either way.

Good contrast helps everyone, not just people with disabilities. It makes your site easier to read on cheap screens, in bright light and late at night.

A Step-by-Step Contrast Review

Checking a whole site can feel daunting, but a structured pass usually takes less time than expected. Work through these steps:

  1. List your site’s colors. Note the text colors, background colors, button colors, link color and any accent colors used in your theme.
  2. Check each common pairing. Using a contrast checker, test body text on the main background, headings, link text, button labels on buttons, footer text and form placeholder text.
  3. Run an automated scan on a few key pages, such as the homepage, a service page, a blog post and the contact page.
  4. Look at text over images manually. Check every hero section and banner where text sits on a photo.
  5. Check interactive states. Look at hover and focus styles on links and buttons, and make sure focus outlines are visible for keyboard users.
  6. Test on a real phone outdoors. A quick look in bright daylight reveals problems that a monitor can hide.
  7. Record and fix. Make a short list of failing pairings and update them in your theme’s global color settings, so the fix applies everywhere.

A Worked Example: A Brand Color That Almost Works

Imagine a florist whose brand color is a soft coral. The designer used it for buttons with white text, for links in body copy and for small labels in the footer. A contrast check shows that white text on the coral falls short of 4.5:1, and coral links on white fall short as well.

Rather than abandon the color, the designer makes a few adjustments:

  • Buttons keep the coral background, but the label changes to a dark text color that passes against it.
  • Links in body text use a deeper shade of the coral that meets the ratio against white, along with an underline so they do not rely on color alone.
  • Footer labels switch to a darker neutral, with coral kept for decorative shapes and icons that carry no essential information.

The site still feels unmistakably like the florist’s brand, and now everyone can read it.

Mistakes to Avoid

  • Judging contrast by eye on your own screen. High-quality monitors and good eyesight can make weak contrast look fine. Use a checker.
  • Testing only the homepage. Contrast problems often appear on inner pages, forms and footers.
  • Fixing pages individually. Changing colors page by page leads to inconsistency. Update theme settings so every page benefits.
  • Forgetting dark mode or alternate sections. If your site has dark sections or a dark theme, check those pairings too.

Questions Readers Ask

Is passing contrast guidelines a legal requirement?

Accessibility obligations depend on your location, industry and circumstances. Many organizations use WCAG as their reference standard. For questions about your specific obligations, consult a qualified attorney.

Does the logo need to meet contrast ratios?

WCAG exempts text that is part of a logo or brand name from the contrast requirement. Still, a logo that is easy to see is better for everyone.

What about text that is only decorative?

Text that is purely decorative and conveys no information is also exempt, but be honest about what is truly decorative. If visitors need to read it, it needs enough contrast.

Latest stories

View all
Web Design · Nov 30, 2026Make Your Website’s Search Empty State Earn Its SpaceA search page that says no results can still help a visitor recover. The person may have used a different term, searched for information…Read story
Our clients
New Year 2027

Build your next chapter in 2027.

Bring your next idea online with a website built around your business, your audience and your goals.