Inline Links Without a Contrast Ratio of at Least 3:1 With Surrounding Text

Inline Links Without a Contrast Ratio of at Least 3:1 With Surrounding Text

WCAG Focus: WCAG 1.4.1 (A), 1.4.3 (AA)

When WordPress themes set text-decoration: none on inline links inside paragraphs and differentiate them only by a slightly different shade of blue or gray, users with color vision deficiency cannot tell which words are clickable links.

Why This Pattern Violates WCAG

WCAG 1.4.1 Use of Color (Level A) prohibits using color as the sole visual means of conveying information or distinguishing a link from surrounding prose.

If links omit underlines, W3C Technique G183 requires at least a 3:1 contrast ratio between the link color and surrounding body text—plus an additional visual cue (such as an underline) on hover and focus.

Code Comparison

Inaccessible Un-underlined Low-Difference Link

p a {
  color: #3b5998;
  text-decoration: none;
}

Compliant Underlined Inline Link

p a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

How to Fix It in WordPress

  • Keep text-decoration: underline on inline links inside body prose, lists, and blockquotes.
  • Always verify both link-to-background contrast (4.5:1) and link-to-text contrast (3:1 if non-underlined).

Finding This Issue Automatically

Modern minimalist themes frequently strip underlines from paragraph links while picking subtle brand colors that fail 3:1 link-to-text contrast. Running the WP ADA Compliance Check plugin flags inline links lacking sufficient contrast against adjacent prose so you can restore unmistakable link styling.

Subscribe

Subscribe to receive daily Web Accessibility - Did you know? articles in your inbox.

Cart Accessibility Tools
hide