According to theory, an excited atom would return to its ground state by emitting a photon of light. This is because the excited atom is in a higher energy state than the ground state, and the energy difference between the two states is equal to the energy of the emitted photon. The wavelength of the emitted photon is inversely proportional to its energy, so the color of the light emitted depends on the energy difference between the excited and ground states.