Electrons absorb energy, as they absorb energy they go from ground state to excited state and to return to ground state electrons release energy in the form of photons producing that color.
7.2m questions
9.6m answers