The colour of a star is an indication of its:
weight
distance
temperature
size
BASED on the temperature the wavelength at which the light and heat emitted will depend hence its colour.