Created attachment 125318 [details]
changed the way a dark background is detected in the color scheme.
STEPS TO REPRODUCE
1. Set to dark background
2. Check COLORFGBG variable
Dark Background is not detected and COLORFGBG is set to 0;15
Dark Background is detected and COLORFGBG is set to 15;0
Linux/KDE Plasma: Gentoo Linux
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.66.0
Qt Version: 5.13.2
I believe the luminance returned by rgb2hsluv is actually between 0 and 100 and not a percentage that is between 0 and 1.
Nice catch, thanks.
Fixed in e5b2ada1a6f06e0eea76af1f26ff4c0c4aad8497