Enter a temperature T and you will see the spectrum of light emitted by that blackbody and the color the eye sees. Heated iron changes from red → orange → yellow → white, and a star’s surface temperature can be read from its color, all thanks to this formula.
Colors are obtained by integrating the spectrum against the CIE 1931 color-matching functions and converting to sRGB for display.