Rainbow colors are pretty, and many of us like them. However, go to any visualization-related conference, and you’ll hear a lot of ‘rainbow-hate’. Where does that come from? Below is an excellent example that shows how rainbow color tables might mislead and make us see categories, or patterns, that might not be there. The image below is featured in a blog post titled “How The Rainbow Color Map Misleads” by Robert Kosara, in his wonderful visualization and visual communication blog eagereyes:
There is more to the art and science of choosing colors. Here is another informative post by Lisa Charlotte Rost: https://blog.datawrapper.de/colors/