The temperature at the visible "surface" of the Sun (left) is about 5,800 kelvins. The Sun's atmosphere is much hotter. The second image (right) shows ultraviolet emissions from the Sun's atmosphere at a temperature around 70,000 kelvins.
Images courtesy of SOHO (ESA & NASA).