New Tool Radar

Design Accessibility

How to Check Link Contrast in Body Text in an AI Design

Check that links inside body text in an AI design stand out by contrast and an underline, not by colour alone.

Schematic diagram: steps to check wcag 1.4.1 use of color on an AI-designed page — with a practice result of 4 of 6 checks passing and 2 failing for the fictional Maple Corner article page.

An AI design tool can lay out a page that looks finished and still fail the accessibility rule it was supposed to follow. WCAG 1.4.1 Use of Color is the rule this guide checks: links that rely on colour alone to be distinguishable fail; a contrast ratio of at least 3:1 between link and surrounding text is one accepted way to distinguish them. A design that passes by eye can still fail it, so check the rule itself, not the look of the page.

What the rule asks

WCAG 1.4.1 Use of Color asks that links that rely on colour alone to be distinguishable fail; a contrast ratio of at least 3:1 between link and surrounding text is one accepted way to distinguish them. The rule is written for the reader who cannot see the page the way you do, so the check has to be made from that reader’s point of view: keyboard only, colour removed, or screen reader only.

How to check it

Read a paragraph and check every link is visible without colour vision.

  1. List every link inside body text
  2. Confirm each link is underlined as well as coloured
  3. Measure the link colour against the surrounding text, aiming for 3:1
  4. Check the link again in its hover and focus states
  5. View the page in greyscale and confirm every link is still visible

Practice check: fictional Maple Corner

The table below is fictional practice material, with fictional values. It is the expected result for the practice page, worked out against the WCAG Understanding page, not a run of any accessibility tool.

Check As shown Result
Underline every in-text link is underlined Pass
Link colour blue link against dark grey text, 3.4:1 Pass
Hover state link gains a darker colour on hover Pass
Focus state link shows a visible outline on focus Pass
Footer link link differs from text by a pale blue only, 1.6:1 Fail — underline it and darken it to 3:1
Caption link link in a caption has no underline and no contrast Fail — underline it and darken it to 3:1

Four of the six checks pass, and two fail. The passing checks show the design follows the rule in most places, but the two failing checks would block a reader on every visit if they went out unchecked.

Expected result. We checked the Maple Corner article page against WCAG 1.4.1 Use of Color. We did not run any accessibility tool on the page.

Limits

  • No accessibility tool was run on the Maple Corner article page, and Maple Corner is fictional. The table above is the expected result for the practice page, not a test of any product.
  • This guide checks one criterion on one page. A page that passes this check can still fail other criteria; check each rule separately.
  • Ratios in this guide are the thresholds from the WCAG Understanding page. A ratio of 4.499:1 fails a 4.5:1 requirement; ratios are not rounded.
  • It does not check the design’s brand colours. A design that passes this check can still use the wrong brand colour; check colours separately.

Sources

See all