One notable difference between X11 and W3C is the case of "Gray" and its variants. In HTML, "Gray" is specifically reserved for the 128 triplet (50% gray) . However, in X11, "gray" was assigned to the 190 triplet (74.5%) , which is close to W3C "Silver" at 192 (75.3%) , and had "Light Gray" at 211 (83%) and "Dark Gray" at 169 (66%) counterparts. As a result, the combined CSS 3.0 color list that prevails on the web today produces "Dark Gray" as a significantly lighter tone than plain "Gray" , because "Dark Gray" was descended from X11 – for it did not exist in HTML nor CSS level 1[8] – while "Gray" was descended from HTML.
14 Comments
savvywolf@pawb.social · 92 pts · 1y
Got curious about this.
https://en.wikipedia.org/wiki/X11_color_names#Clashes_between_web_and_X11_colors_in_the_CSS_color_scheme :
fargeol@lemmy.world · 28 pts · 1y
"256 Shades of Gray" could be an interesting book, nonetheless
sukhmel@programming.dev · 8 pts · 1y
slightlydarkerbutnottoodarkgreyis my favourite greyvictorz@lemmy.world · 4 pts · 1y
Ah man, thanks for digging this up! I was always confused/annoyed by this! 🤍🩶🖤
SuzyQ@sh.itjust.works · 25 pts · 1y
Stuff like this is why I just used the hex color code vs the color name back in the day.
iveseenthat@reddthat.com · 7 pts · 1y
hsl is superior
FooBarrington@lemmy.world · 17 pts · 1y
axEl7fB5@lemmy.cafe · 2 pts · 1y
oklchanyone?FooBarrington@lemmy.world · 1 pts · 1y
It doesn't contain a labrador, but I'm open to being convinced. What's the advantage?
axEl7fB5@lemmy.cafe · 1 pts · 1y
it has lichs
BuboScandiacus@mander.xyz · 10 pts · 1y
iveseenthat@reddthat.com · -1 pts · 1y
Dude, "green" is not even close. The actual "green" is painful to look at
bleistift2@sopuli.xyz · 2 pts · 1y
Could you elaborate? These are the colors that are rendered when you use the keyword I’ve listed.
iveseenthat@reddthat.com · -1 pts · 1y
Maybe I am confusing it with LaTeX
\color{green}I'm too lazy to check, tbh