 
 PHY.F20 Molecular and Solid State Physics  
The energy density of a black body between λ and λ + dλ is the energy E=hc/λ of a mode times the density of states for photons, times the probability that the mode is occupied.
This is Planck's famous formula for the energy density of a black body.

This plot was generated for an object with a temperture of 5700 K. That is the temperture of the surface of the sun. The peak in the spectrum is then in the visible at about 0.5 μm (green). The form above can be used to generate Planck curves for other temperatures. Put 310 K = 37 C into the form to see the spectrum of radiation that people emit.