The seven colour idea is still a popular one and it helps remember the basic sequence for primary rainbows. However, remember that there is also a whole range of colours, so many that we cannot distinguish them all with the naked eye.
Isaac Newton noted that the sequence of the colours of a rainbow never changed, always running in the same order and coined the idea that there are seven colours in a spectrum: red, orange, yellow, green, blue, indigo and violet (ROYGBIV).
Closer inspection of a rainbow shows that there are far more than just seven individual hues.
A rainbow is not a pure spectrum. It is actually made up of a myriad of individual spectral colours that have overlapped and mixed.