W3C home > Mailing lists > Public > www-style@w3.org > February 2014

Re: CSS3 lighten/darken suggestion

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 24 Feb 2014 16:46:37 -0800
Message-ID: <CAAWBYDBkdxYHqhjYzeYej85UdLk+HoyRU5JiSZb37Tu7tFnzuQ@mail.gmail.com>
To: Jon Rimmer <jon.rimmer@gmail.com>
Cc: Simon Sapin <simon.sapin@exyr.org>, www-style list <www-style@w3.org>
On Mon, Feb 24, 2014 at 10:21 AM, Jon Rimmer <jon.rimmer@gmail.com> wrote:
> My knowledge of colour theory is pretty weak, but as I understand it,
> a problem with transforming colours in RGB/HSL etc. is that
> equal-sized changes do not have perceptually uniform results
> throughout the colour space[1]. Is there scope to allow
> transformations that are done in the Lab colour space[2]?
> [1] http://vis4.net/blog/posts/avoid-equidistant-hsv-colors/
> [2] http://en.wikipedia.org/wiki/Lab_color_space

Very possibly.  Right now the tint/shade adjusters are defined in
terms of HWB, which is a close relative of RGB/HSL.  It's better than
just adjusting lightness in HSL, but still not perceptual.

I've got nothing against doing more work in Lab.

Received on Tuesday, 25 February 2014 00:47:25 UTC

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