W3C home > Mailing lists > Public > www-style@w3.org > April 2012

Re: [css4-color] Grayscale shorthand (with alpha)

From: Rudolph Gottesheim <r.gottesheim@loot.at>
Date: Wed, 18 Apr 2012 14:36:02 +0200
Message-ID: <4F8EB532.7070007@loot.at>
To: www-style@w3.org
Am 18.04.2012 14:03, schrieb Chris Lilley:
> What properties would you want it to have? For example, would 50% gray correspond to a color which is visually 50% between black and white?
> The CIE lightness (L*) has that property. L=0 is black, L=100 is the media white. L=50 is exactly a mid grey.
> It could be used by itself or as part of the CIE Lab or LCH color spaces (C and H are chroma and hue angle) - to give warm or cool greys for example.

I really don't know too much about color spaces, but I'd expect gray(.5) 
or gray(50%) or gray(127) - whatever syntax we end up with - to be an 
alias for rgb(127, 127, 127) and hsl(0, 0%, 50%).

So, yeah, basically the L of HSL.
Received on Wednesday, 18 April 2012 12:36:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:14 UTC