Pigments exhibit color by absorbing specific wavelengths of light and reflecting others, a process rooted in the molecular structure of the pigment. The absorption occurs due to the shape and size of molecules, where certain wavelengths fit into molecular "pits," allowing for absorption while others are reflected. This interaction is influenced by the electromagnetic properties of both the pigment and the light. When pigments absorb light, it is primarily the electrons in the chromophore that engage in the absorption process. Upon absorbing a photon, these electrons are excited to higher energy levels, and they eventually return to their ground state, often through thermal vibrations or by emitting energy, which can contribute to the observed color. The absorption of specific wavelengths is linked to the energy levels of the electrons, analogous to timing a push on a swing—only certain energies can effectively promote the electrons into excited states. This explains why colored compounds selectively absorb certain wavelengths, with examples like blue pigments absorbing red light while emitting blue.