WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: hyperlinked text that is indistinguishable from adjacent text

for

From: Patrick H. Lauke
Date: Feb 8, 2024 9:28AM


On 08/02/2024 16:06, Joseph Krack wrote:
> The way it is written in the WCAG is pretty inconsistent.  While it
> seems that changing link text to a contrasting color (at least 3.01 -
> which is hard to do), would be sufficient. However, this breaks the
> obvious color alone standard.

When two colours/shades have a contrast of 3:1, then their difference is
not just colour, but the difference in brightness/luminosity counts as
another visual factor.

"Note

If content is conveyed through the use of colors that differ not only in
their hue, but that also have a significant difference in lightness,
then this counts as an additional visual distinction, as long as the
difference in relative luminance between the colors leads to a contrast
ratio of 3:1 or greater. For example, a light green and a dark red
differ both by color (hue) and by lightness, so they would pass if the
contrast ratio is at least 3:1. Similarly, if content is distinguished
by inverting an element's foreground and background colors, this would
pass (again, assuming that the foreground and background colors have a
sufficient contrast)."

https://www.w3.org/WAI/WCAG22/Understanding/use-of-color.html

P
--
Patrick H. Lauke

* https://www.splintered.co.uk/
* https://github.com/patrickhlauke
* https://flickr.com/photos/redux/
* https://mastodon.social/@patrick_h_lauke