The energy per photon is directly related to the photon's electromagnetic frequency, or , for a photon in a vacuum. Where, = Energy, = Planck's constant, = Angular speed, and = frequency.
Here's a look at how the two traditional characteristics of light are related: energy and frequency.
Hence, the energy is directly proportional to the frequency.