When light strikes a surface, certain wavelengths are absorbed and others are reflected (bounced back) by its pigments(color matter). Different combinations of reflected wavelengths form all the observed colors. When all the wavelengths are absorbed, the result is black and when all the wavelengths are reflected off a surface, the result is white.
The physicist and mathematician Sir Isaac Newton (1642 - 1727) was a pioneer in studying light and made the following experiment: he directed a ray of sunlight through a prism and observed that the ray of light was refracted (bent) and the result was an array of projected colors, each with a different range of wavelengths and ordered like: red, orange, yellow, green, blue, blue-violet and violet. This array – the composition of sunlight is known as the visible spectrum.