The color of any object is the light it reflects. An object is white if it reflects all or almost all of the light falling on it (and so absorbs little light). An object is black if it reflects no or very little light (and so absorbs almost all light). And, of course, light is energy. Absorbing little light only a slight increase in energy, absorbing a lot of light means a larger increase in energy and so a larger increase in heat...