The equation that relates both energy and wavelength is:
![e=(h*c)/(lambda)](https://img.qammunity.org/2019/formulas/chemistry/middle-school/3mif39oiv5b3idveki3ywejy6nkn44y6xb.png)
where e is the energy and lambda is the wavelength.
Therefore, as we can see from this equation, the energy of an electromagnetic wave is inversely related to the wavelength of the electromagnetic wave.