physics.
the colours are strictly linked to the wavelength of the light. a rainbow is just different wavelengths being refracted in water droplets, which creates a spectrum effect we can see.
now, the *names* and *distinctions* between colours are very much a social construct, in the sense that different cultures can group or split colours differently. we recognise 7 colours because Isaac newton believed in the magical properties of number 7, and added indigo as a colour into the rainbow so their were 7 colours
Latest Answers