Contrast Checker for Links
A link has to be readable and recognizable as a link. That means checking the link color against the page background and, if you remove underlines, against the body text around it too. Both checks take seconds with two hex codes, and the results apply to every page that shares your link styles.
Readable against the background
Link text is text, so it needs the same 4.5:1 ratio against its background as any other body copy under WCAG 2.1 success criterion 1.4.3. Classic browser blue (#0000EE) on white measures about 9.40:1, comfortably passing. Many modern design systems use lighter blues for links, and these sometimes slip just under the line. A popular blue, #1A73E8, on white sits at about 4.51:1, which passes AA by a hair, so any lighter shade would fail.
Distinguishable from body text
WCAG success criterion 1.4.1 says color must not be the only way to convey information. If your inline links have no underline, the commonly used technique from the WCAG guidance is to give the link at least 3:1 contrast against the surrounding body text, and then add a non-color cue such as an underline on hover and focus. In practice this is hard to achieve with dark gray body text, because a link that is 3:1 away from the text is often too light against the background.
The simplest, most robust answer is to keep underlines on links inside paragraphs. Navigation menus and buttons are different, since their position makes clear they are clickable.
Questions
Do links need to be underlined?
WCAG does not require underlines. It requires that links are not identified by color alone. Underlines are the easiest way to meet that. Without them, aim for 3:1 contrast between link and body text plus a visual change such as an underline on hover and keyboard focus.
Can my links be lighter than body text?
They can, as long as the link still reaches 4.5:1 against the background. Very light links tend to fail that first test, so check the link against the background before worrying about the link-to-text ratio. Darker body text gives you more room to choose a lighter link color that still passes both checks.
Does the visited link color matter?
Yes. A visited link is still text that people need to read, so it needs 4.5:1 against the background like any other link. Many sites never test their visited color, and default purples or custom tints sometimes fail. Run it through the checker the same way as your main link color.
Get a beautiful, accessible interface designed by VYZEON.
See UI/UX design