The colour that doesn't exist (but your brain sees)
Magenta is not on the rainbow. Your visual cortex invented it.

A prism splits white light into a familiar spectrum: red, orange, yellow, green, blue, indigo, violet. Observe these pure colors, each a distinct wavelength, flowing seamlessly from one to the next. Nowhere in this ordered progression does one find magenta.
Yet, we perceive magenta with unwavering clarity. It exists in vibrant fuchsias, deep purples, and the rich hues of a sunset. This color, so vividly displayed, is conspicuously absent from the physical rainbow.
Our eyes possess three types of cone cells, sensitive to red, green, and blue light. When these cones are stimulated by light waves of various lengths, the brain interprets the combined signals as color. Magenta emerges when our brain processes a unique opposition: strong excitation of the red cones, moderate excitation of the blue cones, and a distinct *lack* of green light stimulation.
This absence of green, coupled with the red and blue signals, is not a wavelength in itself. Rather, it is the brain's creative solution, an interpolation bridging the perceived gap between red and violet on the color wheel, even though such a bridge does not exist in the electromagnetic spectrum.
Magenta serves as a profound illustration of perception's active role. Our visual system does not merely record incoming light; it constructs our reality. The brain, in its sophisticated processing, invents a color to complete a sensory experience, demonstrating that seeing is not just receiving, but also a complex act of internal creation.
Color blindness affecting red-green perception can alter the experience of magenta.
Sources

Your eyes decide what you hear
When your eyes see a mouth move one way but your ears hear a different sound, your brain invents a third sound to fix the conflict.
Read Next