What governs the visual color of a star, linking it directly to its surface temperature?

Answer

Wien's Displacement Law.

Wien's Displacement Law relates the peak wavelength of emitted light (which determines perceived color) directly to the object's absolute surface temperature.

What governs the visual color of a star, linking it directly to its surface temperature?
astronomystarsstellar evolutionred giantsLuminositymain sequence stars