Fix guides · Accessibility
How to fix “Links rely on color to be distinguishable”
Links inside paragraphs that look different only by color are invisible to many colorblind visitors. The simple fix is an underline.
- Time to fix
- 5–15 minutes
- Skill needed
- Copy and paste
- Who notices
- Colorblind visitors and people with low vision
Why it matters
When a link in a sentence differs from the text around it only by color, visitors who can't tell those colors apart can't find it.
Lighthouse flags links in text that have no underline (or other non-color cue) and less than 3:1 contrast with the surrounding text.
“One person in twelve has a color deficiency - about 8% of men and 0.4% of women in the US.”
Before you start
- Underline links inside paragraphs. It's the clearest cue and the standard one. Menus and buttons don't need it, since their position shows they're links.
- If you don't want underlines, the link color needs at least 3:1 contrast with the body text, plus a visible change (such as an underline) on hover and keyboard focus.
Fix it on your platform
Shopify
- Many themes have a link style setting in the theme editor. If not, add the CSS below to your theme's stylesheet (Edit code → assets).
.rte a {
text-decoration: underline;
text-underline-offset: 0.15em;
}WordPress
- In the Site Editor, open Styles → Typography → Links and set the decoration to underline. On classic themes, add CSS like the example under "Any other site" in Customize → Additional CSS.
Webflow
- Select a link inside a Rich Text element, style the All Links (or rich text link) selector, and set Decoration to underline.
Wix
- When you create a link in a text box, add underline formatting to it. Check the link colors meet contrast in your site's theme colors.
Squarespace
- Text blocks don't offer underlining in the toolbar, so add the CSS below in your site's Custom CSS panel.
.sqs-block-content p a {
text-decoration: underline;
}Next.js
- Underline links inside your prose styles.
.prose a {
text-decoration: underline;
}Any other site
- Underline links inside paragraphs.
p a, li a {
text-decoration: underline;
}Check that it's fixed
- Look at a paragraph in grayscale (most operating systems have a grayscale filter): links should still be easy to spot.
- Re-run your StudioLNC audit: the issue should be gone.
Find every issue like this on your site
Free audit of performance, accessibility, SEO and security, with fixes for your platform.