The surface temperature (more correctly, photospheric temperature) of a star may be obtained from a quantitative analysis of the absorption lines that appear in a spectrum. Temperature is closely correlated with stellar spectral type and with photometric color.