Follow the link to read more.
"............To be a good pigment, first and foremost, something has to have a nice, bright color. The way pigments produce color is that light shines on them, and they absorb some, but not all, of the colors of light. (Remember that white light is a mixture of many colors of light) For example, red ochre, a.k.a. hematite, a.k.a. anhydrous iron oxide (Fe2O3), absorbs yellow, green and blue light, so the light that reflects off of it is reddish-orange. (This happens to be the pigment that’s used in barn paint, so we’re going to come back to it.) Light is absorbed when a photon (a particle of light) strikes an electron in the pigment and is absorbed, transferring its energy to the electron. But quantum mechanics tells us that an electron can’t absorb just any amount of energy: the particular energies (and therefore colors) that it can absorb depend on the layout of the electrons in the material, which in turn depends on its chemistry.