The temperature at the surface of the Sun (top) is about 6,000 kelvins. The Sun's atmosphere is much hotter. The bottom image shows ultraviolet "light" coming from the Sun's atmosphere. The temperature in that part of the Sun's atmosphere is around 70,000 kelvins.
Images courtesy of SOHO (ESA & NASA).