The thermostat color code provides a standard guide for understanding HVAC wire colors. In general, the red wire (R) is for power, white (W) is for heating, green (G) is for the fan, yellow (Y) is for cooling, and blue (C) is the common wire providing a common ground.