See the Pen d3 scale interpolation Rainbow (Cubehelix) perceptually uniform gradients by Firegroove (@firegroove) on CodePen.