The unbearable brightness of color
I needed a way to test if a background color is light or dark in order to choose an appropriate text color (black on…www.nbdtech.com
Have you been using color more, and enjoying it less?
Maybe your colors are too bright, or maybe you just need more contrast. Or maybe you have the problem that I had, which was to programmatically decide whether foreground text should be white or black, based on the background color.
From the Ndb-tech link above, here is a way to calculate the perceived brightness of an RGB color value:
It would be interesting to compare this to the relative luminance Y: