Check if a color is perceived bright or not.
This can be useful if deciding to overlay dark or light text on top of it, for example.