Rule

Link distinction in text

Links inside text must be distinguishable by more than colour.

Rule
link-in-text-block
WCAG 2.2
1.4.1 Use of Color (opens in a new tab) (Level A)
Severity
Serious

What it checks

Looks at links that sit inside running text: in a paragraph, list item, table cell, quotation, description or generic container that has words of its own around the link. A link that shares no line with other text, such as one link per line in a footer, is left alone, because there is nothing for it to blend into.

A link passes when something other than colour marks it out: an underline, a bottom border, a box shadow, a background that differs from the text around it, a clearly heavier weight, or italic against upright text. It also passes when its colour has at least 3:1 contrast with the surrounding text, or when it is the same colour as that text, since then colour carries nothing. A link with none of these, whose colour is under 3:1 from the text beside it, fails.

When a person decides

Some cues need a person to judge them. A modest weight step, such as semibold in regular text, or a change of font size, may or may not read as a link. So may an icon inside the link, a generated box or background whose size at rest cannot be measured, text in several colours, or a translucent colour over an image. Surrounding text that is only a short fragment is also sent for review, since it may not be a sentence at all.

Example

Fails

<p style="color: #333">Read the <a href="/terms" style="color: #0055aa; text-decoration: none">terms of use</a> before you sign up.</p>

Passes

<p style="color: #333">Read the <a href="/terms" style="color: #0055aa">terms of use</a> before you sign up.</p>

The engine is tested against both examples.

How to fix it

Keep the underline on links inside text. If the design removes it, add another cue that does not rely on colour, such as a bottom border or a bold weight.

Check your own pages

This rule runs in every pour audit: the browser extension, the bookmarklet, the command line and the editor. Get pour, free.