element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
GNU Affero General Public License v3.0
3.36k stars 713 forks source link

Rainbow’s dark blue is not readable #1020

Closed fbruetting closed 4 years ago

fbruetting commented 4 years ago

IMG_20200215_175637

Ideally, the luminance of all colors should stay the same, but the RGB color model is highly nonlinear. The CIELAB color space (either L*a*b* or LCh coordinates) has the best linearity – maybe there’s a function you can use, which generates colors based on that color model?

Other color models which are quite OK-ish are LMS and the HSV/HSL/HSB/HSI variants – but LAB is by far the best. With the continuous color transitions of that rainbow effect this gets especially obvious! In my screen shot you see the second line being solely green – whereas the third line contains bright blue, normal blue, dark blue and purple.

Here you find more information about CIELAB and how to use it from the GIMP people: https://ninedegreesbelow.com/photography/lch-vs-hsv-for-picking-colors.html

bmarty commented 4 years ago

Interesting, but I emit serious doubt that the core team will spent time to update the rainbow algorithm...

fbruetting commented 4 years ago

Thanks! 🤠