W3C home > Mailing lists > Public > www-style@w3.org > July 2015

[css-color] Add HCL (aka Lch) color scheme

From: Nikita Vasilyev <me@elv1s.ru>
Date: Fri, 10 Jul 2015 16:13:16 +1000
Message-Id: <2F16A132-3B43-433E-92BA-56D5F8BD520D@elv1s.ru>
To: www-style@w3.org
I propose to add HCL color scheme to CSS.

"The Hue-Chroma-Luminance (HCL) color space is based on how the human perception works. When using HCL, you can directly control the color (hue), the colorness (chroma) and the luminance (brightness).”
– Why HCL? http://hclwizard.org/why-hcl/ <http://hclwizard.org/why-hcl/>


HCL is supported by d3.js:
"D3 supports CIELAB (Lab) and CIELCH (HCL) color spaces, which are designed for humans rather than computers.

Lab and HCL color spaces are special in that the perceived difference between two colors is proportional to their Euclidean distance in color space. This special property, called perceptual uniformity, makes them ideal for accurate visual encoding of data. In contrast, the more familiar RGB and HSL color spaces distort data when used for visualization."
– Mike Bostock, https://gist.github.com/mbostock/3014589 <https://gist.github.com/mbostock/3014589>


HCL color scheme is also available in
* CSS with https://github.com/devgru/postcss-color-hcl <https://github.com/devgru/postcss-color-hcl>
* Chroma.js https://github.com/gka/chroma.js <https://github.com/gka/chroma.js>
Received on Friday, 10 July 2015 06:13:53 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:32 UTC