At as high a temperatrue as 6000K, the sun acts like a perfect blackbody emitting complete radiation. That’s why the radiation coming from the sun’s surface follows Stefen’s law which states that the energy radiated per unit area per unit time varies as the fourth power of absolute temperature, i.e. E=σT4