The Hertzsprung-Russell diagram - usually referred to by the abbreviation H-R diagram - is a diagram that illustrates the properties of stars. As stars progress through their lives, they move around on this diagram since their properties change over time.
The temperature of a star refers to its surface and that is what determines its color. The lowest temperature stars are red while the hottest stars are blue.