Wien's law and vision:
The sun is approximately taken as a black body. since any object above 0k will emit radiation, Sun also emits radiation. Its surface temperature is about 5700 K . By substituting this value in the equation of wien's law.
It is the wavelength at which maximum intensity is 508 nm. Since the sun's temperature is around 5700 k, the spectrum of radiations emitted by sun lie between 400 nm to 700 nm which is the visible part, of the spectrum. it is shown in Figure.
The humans evolved under the sun by receiving its radiations. The human eye is sensitive only in the visible not in infrared or x-ray ranges in the spectrum.
Suppose if humans had evolved in a planet near the star Sirius (9940 K), then they would have had the ability to see the ultraviolet rays !