Grey in HTML and CSS should be defined as #767676 instead of #808080 as the latter fails contrast with white while the former (just) meets contrast with both, black and white.
It’s not great contrast, but it’s another place where we failed to get good defaults in browsers.
@yatil
Which is weird because #808080 is the same as rgb(128 128 128), halfway between rgb(255 255 255) and rgb(0 0 0) (rounded up). #767676 is rgb(118 118 118). You'd think the one halfway between would be the one sufficiently contrasting with both.
Are there more colors with sufficient contrast with black than white? Is WCAG woke? 🤪
Anyway, it's not browsers' fault, they're just following the spec.
@yatil
What I think is browsers' fault is the color for links and visited links do not meet 3:1 contrast vs. adjacent black text (of course by default links are also underlined). I think the default colors are conventions but ones which are consistent across browsers. for light schemes. In dark schemes, they're not consistent, Chrome, Firefox, and Safari all vary.
Links should be something like #33F instead of #00E and visited should be like #7D28CC instead of #551B8B.
Add comment