Links must be distinguished from surrounding text in a way that does not rely on color

Rule ID: link-in-text-block
Ruleset: axe-core 3.0
User Impact: Critical
WCAG: 1.4.1
You are viewing older version of the axe rule.
Go to the latest version (3.2)

Accessibility Testing Designed for Developers - No Training Required

Join Deque's exclusive beta testing community and help us reach our goal of accessibility as standard part of every sprint by 2022.

Compliance Data & Impact

User Impact

Disabilities Affected

  • Low Vision
  • Color-blindness

Requirement(s)

  • WCAG 2.1 (A): SHOULD
  • Note: Experimental rule
  • WCAG 2.0 (A): SHOULD

WCAG Success Criteria

  • 1.4.1 Use of Color

Section 508 Guidelines

  • Not specified or not applicable

How to Fix the Problem

Ensure all links that appear in blocks of text have a color contrast difference of at least 3:1 with the surrounding text to ensure that users who cannot distinguish between the colors can still find the link.

When the link has no distinct style, and it has a contrast difference of 3:1 or higher, you must manually test to verify that the link gets distinct style on focus and hover.

Success Criterion: Ensure color contrast of at least 3:1 for link text.

Deque's open-source aXe and browser extensions (for WorldSpace Attest and Comply) products are excellent, reliable tools to help you analyze the contrast ratio of your colors and tell you if they pass the 3:1 ratio guidelines or not.

Why this is Important

Some people with low vision experience low contrast, meaning that there aren't very many bright or dark areas. Everything tends to appear about the same brightness, which makes it hard to distinguish outlines, borders, edges, and details. Text that is too close in luminance (brightness) to the background can be hard to read.

There are nearly three times more individuals with low vision than those with total blindness. One person in twelve has a color deficiency - about 8% of men and 0.4% of women in the US. A person with low vision or color blindness is unable to distinguish text against a background without sufficient contrast.

When a sufficient color contrast ratio of 3:1 is not present to distinguish link text color from surrounding text color, users with low vision who experience low contrast cannot detect visually that the text is intended to function as a link.

Rule Description

Ensures users who cannot distinguish between colors can tell when text is a link by verifying the link has either a distinct style that does not rely on color or has a contrast difference of greater than 3:1 (which alerts you that manual testing is required).

The Algorithm (in simple terms)

Checks all links that appear in blocks of text for a color contrast difference of at least 3:1 with the surrounding text to ensure that users who cannot distinguish between the colors can still find the link.

This rule looks at common ways to distinguish links from surrounding text, including underline, font styling, border, and background. If the link has a distinct style that does not rely on color, there is no violation (pass). If the link has no distinct style and it has a contrast difference less than 3:1, there is a violation (fail). When the link has no distinct style, and it has a contrast difference of 3:1 or higher, you must verify that the link gets distinct style on focus and hover (manual testing required), as this cannot be automated reliably.

Resources

Refer to the complete list of axe 3.0 rules.

Was this information helpful?

You have already given your feedback, thank you.

Your response was as follows:

Was this information helpful ?
Date/ Time feedback was submitted :