We know that blue light has a smaller wavelength and higher frequency than red light, which is a consequence of higher energy in the former, then how is it true that, when scattering light from the sun by a prism, and on measuring the temperatures of the blue and red colours, result shows that the red colour is hotter? If heat is equivalent to energy then William Hershel's experiment contradicts the initial statement.
However, seeing that both statements are scientific truths, the question would then be, what am I missing from the picture?