Comments on: Chilled Out Text Underlines https://frontendmasters.com/blog/chilled-out-text-underlines/ Helping Your Journey to Senior Developer Fri, 08 Aug 2025 14:34:39 +0000 hourly 1 https://wordpress.org/?v=6.8.3 By: Chris Coyier https://frontendmasters.com/blog/chilled-out-text-underlines/#comment-36574 Fri, 08 Aug 2025 14:34:39 +0000 https://frontendmasters.com/blog/?p=5316#comment-36574 In reply to Chris Z.

The reason the underline is there, instead of just using color alone, is to ensure there is a visual indicator of a link because of colorblindness. I’m confused about why you mention your monitor type and that you’re not colorblind yourself, feel free to elaborate there I just don’t see the connection, but rest assured that I did use my human eyeballs.

]]>
By: Chris Z https://frontendmasters.com/blog/chilled-out-text-underlines/#comment-36571 Fri, 08 Aug 2025 13:55:05 +0000 https://frontendmasters.com/blog/?p=5316#comment-36571 I’m using a 27-inch retina display. If I were colorblind, I would not be able to see the “chill” underlines. The contrast is just too low.

Regardless of what contrast checkers or calculations may say, there’s no substitute for human eyeballs on the work.

]]>
By: Alps Gainer https://frontendmasters.com/blog/chilled-out-text-underlines/#comment-26626 Mon, 28 Apr 2025 20:16:15 +0000 https://frontendmasters.com/blog/?p=5316#comment-26626 In reply to Chris Coyier.

I did some quick experiments seeing what mix ratio with transparency is needed to get a 3:1 contrast ratio against the background, as per SC 1.4.11.

The background is #FFF3E0.
The blue underline mixed 53% with transparency is #8781E7, resulting in a contrast of 3.02:1.
But the red underline mixed 53% with transparency is #F39C90, resulting in a contrast of 1.92:1.

In other words, we really just need to experiment to see which color is sufficient. It would be great if there was a built-in CSS function that determined the color that obtains a minimum contrast against another color.

(Personally, I find typical link underlines really distracting from me just trying to read the text. I think reducing underlines’ contrast can help cognitive accessibility, as long as they still have sufficient contrast against the background.)

]]>
By: Jon https://frontendmasters.com/blog/chilled-out-text-underlines/#comment-25340 Tue, 08 Apr 2025 14:13:54 +0000 https://frontendmasters.com/blog/?p=5316#comment-25340 I really like #3 “The Chill” above. I’m partial to standards; it makes us think less (which is good), yet The Chill seems to respect most of the standard while improving readability.

Ironically, there’s an ad on this page at the time of my reading that has a black background, hyperlink in red that becomes black on hover. Truly awful. I thought maybe it was a good example of what not to do 🙂

]]>
By: Nat Tarnoff https://frontendmasters.com/blog/chilled-out-text-underlines/#comment-25336 Tue, 08 Apr 2025 13:13:48 +0000 https://frontendmasters.com/blog/?p=5316#comment-25336 In reply to Pio.

The problem is the blue used in the codepen has a 2.23:1 contrast ratio with surrounding text and not a 3:1. This means some other indicator is needed. Underline, bolding, boxing, highlighting, etc. But they all still need a 3:1 contrast level.

APCA accounts for opacity, but using it alone won’t give you passing WCAG colors.

]]>
By: James Edwards https://frontendmasters.com/blog/chilled-out-text-underlines/#comment-25038 Wed, 02 Apr 2025 10:10:10 +0000 https://frontendmasters.com/blog/?p=5316#comment-25038 In reply to Jodi.

Actually it’s 1.4.11 Non-Text Contrast (not 1.4.3, that’s for text content).

The calculation would be based on the rendered result (including the result of opacity blending), comparing that with adjacent colors (which in this case would be the background). If that has a 3:1 ratio, then it’s fine.

]]>
By: Leon https://frontendmasters.com/blog/chilled-out-text-underlines/#comment-25028 Wed, 02 Apr 2025 06:00:53 +0000 https://frontendmasters.com/blog/?p=5316#comment-25028 This is an interesting question that’s been kicking around for decades.

If you’re worried about the “in your face” nature of links within text (and my feeling is it isn’t a problem), another approach is to change the underline style to, say, dotted.

Then you could technically pass 1.4.3 on colour contrast, but the underline might not be that discernible.

]]>
By: George https://frontendmasters.com/blog/chilled-out-text-underlines/#comment-24085 Fri, 21 Mar 2025 13:19:55 +0000 https://frontendmasters.com/blog/?p=5316#comment-24085 Underlines on links have always impaired readability for me. So, for some people (uh… this person), this improves accessibility. I really love it.

]]>
By: Pio https://frontendmasters.com/blog/chilled-out-text-underlines/#comment-24074 Fri, 21 Mar 2025 08:32:14 +0000 https://frontendmasters.com/blog/?p=5316#comment-24074 In reply to Jodi.

While I agree that a strong underline would be best, the WCAG recommendations state that it is sufficient if the link text has at least a 3:1 contrast with the surrounding text. Blue works best, since it it the least affected by color blindness. When there are additional style differences on hover and focus, the solution presented here should satisfy the success criteria!

https://www.w3.org/WAI/WCAG21/Understanding/use-of-color
https://www.w3.org/WAI/WCAG21/Techniques/general/G183

]]>
By: eladnarra https://frontendmasters.com/blog/chilled-out-text-underlines/#comment-23795 Mon, 17 Mar 2025 13:44:00 +0000 https://frontendmasters.com/blog/?p=5316#comment-23795 In reply to Chris Coyier.

This is a good overview of the issue, including color contrast considerationa (and why color alone plus change on hover isn’t recommended): https://adrianroselli.com/2016/06/on-link-underlines.html

]]>