The energy difference between the energy levels involved in the transition of the electron is directly proportional to the frequency of the emitted photon:
Where h is the Planck constant. The photon's frequency is inversely proportional to its wavelegth:
Here c is the speed of light. Replacing (2) in (1):