The apparent brightness is related to temperature, distance and size.The colour of a star is directly related to its brightness.I don't believe this is correct. The color of a star is directly related to it's temperature not brightness. For instance a red dwarf and a red giant with the same color will have the same surface temperature but the red giant will be much brighter.
The colour is related to temperature.
It might be possible to disentangle them.