The highest temperatures are from the corona.
This is a way the scientists can use temperature data to identify the layer they are observing, as the corona, which is the outermost layer of the sun's atmosphere, reaches temperatures around 1 to 3 million degrees Celsius, significantly hotter than the other layers.