LCH colors in CSS : what, why, and how ? – Lea Verou
▻https://lea.verou.me/2020/04/lch-colors-in-css-what-why-and-how
LCH : utiliser un jeu de couleur étendu pour le web
Currently, every CSS color we can specify, is defined to be in the sRGB color space. This was more than sufficient a few years ago, since all but professional monitors had gamuts smaller than sRGB. However, that’s not true any more. Today, the gamut (range of possible colors displayed) of most monitors is closer to P3, which has a 50% larger volume than sRGB. CSS right now cannot access these colors at all. Let me repeat: We have no access to one third of the colors in most modern monitors. And these are not just any colors, but the most vivid colors the screen can display. Our websites are washed out because monitor hardware evolved faster than CSS specs and browser implementations.
Voir aussi :
– css.land : un outil en ligne pour la conversion des couleurs depuis/vers LCH : ▻https://css.land/lch (et son repo Github : ▻https://github.com/LeaVerou/css.land)
– le brouillon de la spécification W3C pour « CSS Color Module Level 5 » : ▻https://drafts.csswg.org/css-color-5
– ColorJizz : un package PHP pour la conversion entre les formats de couleurs : ▻https://github.com/mikeemoo/ColorJizz-PHP
#LCH #RGB #HSL #couleur #développement_web