How does the color of a Main Sequence star relate to its initial mass?

Answer

More massive stars are hotter and appear bluer or whiter.

More massive stars have more intense core conditions, resulting in higher energy output, which causes them to be significantly hotter and appear bluer or whiter in color.

How does the color of a Main Sequence star relate to its initial mass?
evolutionstarmassstage