Photons are the packet of energy. They are massless and chargeless particles. They travel in the vacuum with the speed of light. The energy of photon is given by :
Where
h = Planck's constant
= frequency of photon
Or
c = speed of light
= wavelength of photon
From the above equation, it is clear that the energy of photon is directly proportional to its frequency.