Step-by-step explanation:
Most pigments work by absorbing certain wavelengths of light. Other wavelengths are reflected or scattered, which cause you to see those colours. At the atomic level, certain wavelengths of light are of the correct energy to excite specific transitions of electrons in the molecules or the solid.