Interesting discussion about algorithms of perceived color brightness at Stack Exchange https://www.handprint.com/HP/WCL/color1.html#fiveviews Understanding Gamma corrections Some math behind by Bruce Justin Lindbloom