Each spectral class O through to M has an associated colour. Class O stars are described as blue stars, for example. Is this colour determined by the peak wavelength of their black body radiation? Do all class O stars have a peak visible light wavelength that is blue?
In that case, why are F class stars considered to be white? The peak wavelength of a star cannot be white, as white is a combination of light of all other visible wavelengths.
Furthermore, the Sun's peak visible wavelength is in the green part of the spectrum, and yet it is classed as a G star, which has a corresponding colour of yellow.
Either my initial assumption that the associated colour of each spectral class comes from the peak visible wavelength of the stars in that class is wrong, or I'm misunderstanding the above two examples. I would appreciate an explanation, as I am very confused!