Skip to content
easeweb
Search topics

Links in body text marked only by colour

Links inside paragraphs have their underline removed, so a colour close to the body text is all that sets them apart.

WCAG 2.2
SC 1.4.1A
Required by
Section 508 · EN 301 549 (EU)
Broken
The link looks like text.
The accessibility problem illustrated.
01

The problem

People who can't tell the link colour from the text colour can't find the links in a paragraph.

02

Try it

Find the two links in the paragraph, then point at them or press Tab.

Turn on greyscale to see the paragraph as many people with a colour vision deficiency do. Can you still tell where the links are?

Broken Can you fix this?

Caring for your olive tree

Water twice a week in summer, and read our winter care guide before the first frost. Large pots ship separately, so check the delivery policy before you order.

A recreated demo. The broken version is intentionally inaccessible.

03

The fix

Mark links in running text with an underline, or with a colour 3:1 from the text plus an underline on hover and focus.

  1. 1A link in a paragraph needs a cue other than hue that sets it apart from the text around it.
  2. 2If that cue is lightness alone, it needs 3:1 against the text, and an underline on hover and focus.
  3. 3Keep the cue on visited links and in forced colors.
Before Links set apart only by a colour close to the text
body {  color: #1a1a1a;}a {  color: #285c99; /* 6.82:1 on white, 2.55:1 against the text */  text-decoration: none;}
After

An underline on links in running text

.prose a {  color: #285c99;  text-decoration: underline;  text-decoration-thickness: 1px;  text-underline-offset: 0.2em;}.prose a:hover,.prose a:focus-visible {  text-decoration-thickness: 2px;}

Fixing this with an AI coding assistant? Get this guide as Markdown

04

Verify the fix

5 checks.

Test with: Contrast measurement, Mouse, Keyboard, Touch, Forced colors

0 of 5 checked

Record the OS, browser and assistive-technology versions, the build, the date, and the actual result of each step. Repeat after the colour tokens or the content styles change.

Limits

This is a starting pattern, not a guarantee for every application. Colour values are examples; measure your own palette against your real text and backgrounds. This guide covers links in running text. Colour used alone elsewhere, such as a red border for an error, a green dot for "in stock" or lines in a chart, fails the same criterion and needs its own cue, such as text or a pattern. Check the complete pages with people who rely on it.

This is a recreated teaching example, not a finding about a named client. The code is a starting pattern: test it in your own product. No completed assistive-technology test is claimed here.

Keep this fixed as your code changes.

Turn guides like this into rules your coding agents and CI follow, then have the result retested with a keyboard and screen readers.

How retests work