For my app, I'd like to create a horizontal, hue-only color slider for picking pastel colors:

enter image description here

At the moment, I do this by simply using the HSB color model and keeping my S and B constant. However, according to some of the site answers I've been reading (as well as my own experience), simply modifying the hue will not generate colors that are percieved to be equally bright. Unfortunately, linearly iterating on a formula like l = .299 r + .587 g + .114 b by hue is not as simple.

  1. Am I correct in understanding the limitations of HSB in regards to percieved luminance?
  2. Is there a good way to iterate between pastel colors (linearly from R to V) with a constant perceived luminance?
  • 1
    Doing some reading right now... there are apparently color spaces that try to model perceptual differences. vis4.net/blog/posts/avoid-equidistant-hsv-colors has a good rundown. In particular, it looks like CIE L*a*b* can be transformed to a simple HSB-like transformation called HCL.
    – Archagon
    Jul 13, 2015 at 2:48
  • could you expand your comment and add it as an answer? that could help other people with a similar problem
    – Luciano
    Feb 24, 2016 at 13:26


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.