Links in text must stand out by more than their color
A link inside a block of text must be recognizable without relying on color alone, usually with an underline, so people who cannot tell the colors apart can still find it.
| Rule ID | link-in-text-block |
|---|---|
| Impact | Serious |
| Success criterion | 1.4.1 Use of Color · A |
| Standards | WCAG 2.0 · WCAG 2.1 · WCAG 2.2 · Section 508 · EN 301 549 |
| Fixed automatically |
Example
<style>
a { color: #1a5fb4; text-decoration: none; }
p { color: #333333; }
</style>
<p>Read our <a href="/returns">returns policy</a> before you send an item back.</p>Visitors with color blindness see one grey sentence and never find the returns policy link.
<style>
a { color: #1a5fb4; text-decoration: underline; }
p { color: #333333; }
</style>
<p>Read our <a href="/returns">returns policy</a> before you send an item back.</p>The underline marks the link for everyone, whatever colors they can see.
Why it matters
People with color vision deficiencies, low vision or a monochrome display may not notice that a few words in a paragraph are a different color. Blue next to dark grey can look almost identical. If color is the only clue, they miss the link, or they have to hover over every word to find it.
The problem is specific to links that sit among other text. In navigation menus and button rows, the layout already shows what is clickable, so this rule does not apply there.
Underlined links also help people with cognitive disabilities and anyone skimming on a phone, where there is no hover to reveal links.
How to fix it
Underline the links in your content. This is the simplest and clearest fix:
<style>
main p a, main li a { text-decoration: underline; text-underline-offset: 2px; }
</style>
Add it to the content area only, so menus and cards keep their own design.
Other visual cues also work, as long as they do not depend on color: a bottom border, bold text, or a background highlight:
<style>
.article a { border-bottom: 2px solid currentColor; }
</style>
If you must rely on color, the link color needs a contrast of at least 3:1 against the surrounding text (and the text still needs 4.5:1 against the background). In that case also add an underline or other cue on hover and keyboard focus, so people know they are on a link:
<style>
a { color: #0047b3; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
</style>
This option is fragile: few color pairs meet all three ratios. Underlines are safer.
Do not remove underlines with a global reset such as a { text-decoration: none; } without adding them back for content links.
Checklist
- Underline links inside paragraphs and lists.
- Avoid a global text-decoration: none on links.
- If links differ only by color, keep 3:1 against the text.
- Add a non-color cue on hover and focus.
How the check works
The check looks at links that sit inside a block of text. It passes when the link differs from the surrounding text by style (underline, border, font weight or style, background) or when its color has a contrast of at least 3:1 with the surrounding text. It fails otherwise. When backgrounds or colors cannot be computed, it asks for a manual review.
Resources
Updated October 27, 2026