Setting up. The energy of a photon depends on its wavelength according to:
E=λhc
with h=6,63⋅10−34J\cdotps, c=3⋅108m/s and λ=500nm=500⋅10−9m=5,00⋅10−7m.
Calculation in joules.
E=500⋅10−9(6,63⋅10−34)⋅(3⋅108)=5,00⋅10−71,99⋅10−25≈3,98⋅10−19J
Conversion to electronvolts (1eV=1,6⋅10−19J):
E=1,6⋅10−193,98⋅10−19≈2,49eV
E≈3,98⋅10−19J≈2,49eV
A result of a few electronvolts is typical of visible-light photons: these are precisely the energies corresponding to electronic transitions in atoms and molecules responsible for colours.