The “gray text” on the button analyzed in the article is dark gray text on light gray background. It has plenty of contrast.
https://uxmovement.com/wp-content/uploads/2019/10/cca-button...
You might find it aesthetically inferior to black on yellow (or whatever) but there’s nothing inherently illegible about it.
To the grandparent poster chadlavi:
> This is so stupid it hurts. It doesn't pass contrast guidelines because bright things on bright things are hard to distinguish
You are misunderstanding the author’s claims, and then responding with mean-spirited insults. Try reading the whole article again more carefully, and with an open mind. If you are confused about something in specific a person who has studied color science a bit can try to clear up any questions you have.
The author is not suggesting that you should put white text on a middle-blue (or whatever) background, but merely pointing out that the WCAG heuristic for contrast is not in accord with human lightness perception.
The white-on-blue vs. black-on-blue is just a demonstrative example, showing that even though white-on-blue has higher contrast according to human perception, the WCAG heuristic instead rates the contrast of black-on-blue to be higher. This happens because the WCAG heuristic assumes human response to light intensity to be logarithmic, an inaccurate model which breaks down quite badly when you have dark text on a dark background.
In practice both white-on-medium-blue and black-on-medium-blue buttons have relatively low contrast and should be avoided where possible. With white text a darker background would be better. With black text a (much) lighter background would be better.