Answer:
According to NASA, the sun's temperature ranges from roughly 27 million degrees Fahrenheit (15 million degrees Celsius) in its core to just around 10,000 degrees Fahrenheit (5,500 degrees Celsius) at its surface.
The Sun is classed as a G2 V star, with G2 denoting the second hottest stars in the yellow G class—surface temperatures of roughly 5,800 kelvins (K)—and the V denoting a main sequence, or dwarf, star, which is the most common star in this temperature range.