Science
There's no magenta in a rainbow. Your brain invents the colour.
Every colour in a rainbow matches a single wavelength of light, from red at one edge to violet at the other. Magenta isn't among them: no single wavelength looks magenta.
You see it when your eyes receive a mix of red and blue light, with little of the green in between. Your brain turns that combination into a colour of its own.