d3 interpolators vs. ColorBrewer single hue sequential scales
Contents
Have you ever wondered to which extent you could emulate the beautiful ColorBrewer single hue sequential colour schemes with some form of linear interpolation between the endpoints? Wonder no more!
I made you a d3 example (see here for the gist) comparing the ColorBrewer sequential single hue schemes Blues, Greens, Oranges, Purples and Reds with the d3 L*a*b*, HCL, RGB and HSL interpolators. Click on the image to go to the bl.ock and see all of the colours.
(To my eyes, it looks like the straight-forward, non-perceptual, HSL ordering gives the closest results for most of the schemes.)