If you are showing a gradient, then the colour-blind people of the world will tell you in quite strong terms not to use a rainbow for the scale at all, let alone to use a rainbow that has been designed to have this sort of perceived lightness curve.
The headlined article is a rainbow, not some universally applicable colour scheme.
it would be great if this could be modified to suit both colour blind and non colour blind people
That would be a waste of a data point. Consider joining the colors in a circular shape.