AccessLens

How to fix: “Links must be distinguishable without relying on color”

Links only distinguished by color, explained in plain English, with the exact fix and code you can copy.

Scanner rule:
link-in-text-block
Standard:
WCAG 1.4.1 Use of Color (Level A)

What this error means

When a link sits inside a block of text, color alone must not be the only thing that separates it from the surrounding words. People with color-vision differences, and people reading in grayscale or on a dim screen, may see the link and the text as identical. The usual fix is to keep the underline.

Who it affects

People with color blindness (roughly one in twelve men), low-vision users, and anyone using a screen in bright light.

Where it usually hides

  • Themes and designs that remove link underlines for a cleaner look
  • Blog posts and product descriptions with links inside paragraphs
  • Footer text with inline links

How to fix it

  1. Underline links inside body text. It is the simplest and most recognized signal.
  2. If you prefer not to underline, add another visible cue such as bold weight, plus a clear change on hover and keyboard focus.
  3. Make sure the link color also has at least 3:1 contrast against the surrounding text color, and 4.5:1 against the background.
  4. Navigation menus and buttons are different. This rule is about links in the middle of sentences.

Before and after

Before

a { color: #0a66c2; text-decoration: none; }

Only the color tells the link apart.

After

p a { color: #0a56a8; text-decoration: underline; }

Underlined links are recognisable to everyone.

Common mistakes

  • Removing the underline only on hover, so it is missing at rest.
  • Fixing a color's contrast but still relying on color alone.

How to check your fix

  • Re-run a scan to confirm the issue is gone.
  • Take a screenshot and convert it to grayscale. Can you still find every link?

Is this on your site?

Run a free scan and see every page and element affected. No account needed.

Questions people ask

Do navigation links need underlines?

No. The rule is about links inside text blocks. Menus, buttons and links that are clearly in a link-only area are judged differently.

Keep reading

Automated scans catch only part of what WCAG covers, and fixing a scan result is not a legal guarantee of compliance. Last reviewed November 16, 2026.