11 comments

  • tejohnso1 hour ago
    Isn&#x27;t most of the text on the page grey? It&#x27;s not white, it&#x27;s rgb(215,215,216). And the background is not black. Some worse examples are shown, but then the message comes across as &quot;don&#x27;t use grey unless you know what you&#x27;re doing, like I do, because I&#x27;m using grey while I tell you not to use grey, but mine is okay.&quot;<p>Maybe aside from the unset option, something more specific about a minimum contrast threshold would be useful. Ideally the author wouldn&#x27;t be breaking below that threshold themselves while explaining it.
    • tom_1 hour ago
      The background is indeed not black, but if it isn&#x27;t actually white then it&#x27;s close enough that the text, which i&#x27;m sure is indeed mostly actually grey rather than black, shows up well. I&#x27;ve seen worse.
    • quuxplusone1 hour ago
      That, plus the line &quot;Or, you could just not do it [change your colors with CSS] in the first place which would look like this:&quot; — followed by a super-duper-CSS-styled box thingie full of gray text.
    • cratermoon30 minutes ago
      Indeed the WCAG guidelines provide the following criteria<p>* The visual presentation of text and images of text has a contrast ratio of at least 4.5:1, except for the following * Large Text: Large-scale text and images of large-scale text have a contrast ratio of at least 3:1<p>Grey is not the problem. Low contrast is the problem.
  • xnx1 hour ago
    Black text on a gray background is how the web was intended to be experienced.
    • wombatpm15 minutes ago
      The number of PowerPoint and slide presentations I sat through with sans serif white and yellow text on a dark purple background still gives me nightmares. For my presentation I went black over medium-light grey. The audience sighed with relief.
    • moron4hire15 minutes ago
      Blue hyperlinks. Purple hyperlinks after you had clicked them. Images with the blue hyperlink border. Tables with Extra Chonky borders. Row and Col span. Guestbooks.
  • ccleve1 hour ago
    For an opposing view, <a href="https:&#x2F;&#x2F;ianstormtaylor.com&#x2F;design-tip-never-use-black&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ianstormtaylor.com&#x2F;design-tip-never-use-black&#x2F;</a>
    • chihuahua34 minutes ago
      But the author of that page is not concerned with readability or accessibility. He just wants things to look cool and design-y. One piece of supporting evidence he cites is some random photo he took that doesn&#x27;t contain #000000 black. That doesn&#x27;t mean anything, it could be that it&#x27;s over-exposed, or has poor contrast, or had some silly filter applied. This leads me to think that the author of that page doesn&#x27;t know what he&#x27;s talking about.
      • russelldjimmy25 minutes ago
        Additions without any evidence:<p>&gt; He just wants things to look cool and design-y<p>&gt; some random photo<p>&gt; That doesn&#x27;t mean anything<p>This leads me to believe the author of this post doesn’t know what they’re talking about
    • cratermoon27 minutes ago
      16161d text on a background of fafafc is an 18:1 ratio, sufficient to meet WCAG AA criteria
  • SoftTalker2 hours ago
    Dark&#x2F;charcoal grey is better than pure black for text. But it&#x27;s still dark enough that most people would call it black.
    • ChrisMarshallNY1 hour ago
      The problem is <i>contrast</i>, really. Some color combos are terrible, and you also have issues with color-blindness (which is why gray is used a lot).<p>Gray text, against a gray background, can suck.<p>I’m getting on in years, and low-contrast text affects me a lot more, these days, than it used to.
    • carlosjobim1 hour ago
      It&#x27;s not, that&#x27;s a myth. The blackest black your monitor is capable of is best for text.
    • mr-pink1 hour ago
      so wrong
  • duskdozer58 minutes ago
    Well, as long as you&#x27;re not going to decide to make the dark background lighter to accommodate the brighter text...<p>But I would be in favor of sites using variables more so that personal customization is easier. But often this goes against their desire for &quot;branding&quot;.
  • Twey2 hours ago
    More generally use a contrast checker on any pair of colours that are likely to be in juxtaposition and need to be legible.<p>Helpful of the website to demonstrate the problem in situ in its tag links and code comments! (Maybe just in dark mode?)
    • cryzinger1 hour ago
      WCAG color contrast checkers in particular have never steered me wrong. It&#x27;s interesting (but makes sense) that contrast needs to be higher for small text than for large text!
    • SoftTalker1 hour ago
      Yes, you want enough contrast, but not too much. Either extreme is hard to look at for long periods.
  • wobblywobbegong2 hours ago
    Screen brightness is a pretty important contributing factor. If you have this problem a lot, verify your screen is bright enough. ( Regardless of his point )
  • signorovitch1 hour ago
    I’m looking at gray text on an off-white background right now :P
  • ChrisArchitect1 hour ago
    A related piece from 2022 that gets a bit more into the <i>why</i>, readability and Accessibility Guidelines evolution etc.<p><i>Please Stop Using Grey Text (2022)</i><p><a href="https:&#x2F;&#x2F;tangledweb.xyz&#x2F;please-stop-using-grey-text-3d3e71acfca8" rel="nofollow">https:&#x2F;&#x2F;tangledweb.xyz&#x2F;please-stop-using-grey-text-3d3e71acf...</a> (<a href="https:&#x2F;&#x2F;archive.is&#x2F;QictZ" rel="nofollow">https:&#x2F;&#x2F;archive.is&#x2F;QictZ</a>) [<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31420938">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31420938</a>]
  • jmclnx1 hour ago
    Yes, I wish sites that use grey text should be investigated as part of the US disability act.<p>People with even minor sight issues can have a hard time with sites designed that way. When I run across a site like that I usually try it in lynx, if the site does not work in lynx, I block it on my system so I would not waste my time with it.
  • msla20 minutes ago
    While we&#x27;re wishing, let&#x27;s bring back serifs. I, for one, would like to be able to tell the difference between AI and Al without context clues, and using an inherently lossy font is the opposite of &quot;readability&quot;.