If an object is in being heated and it has less energy than its surroundings it will absorb, if it is moved into a area where it then has (presumably) more energy it will then radiate to its surroundings. (Equilibrium iymc!)
The color just determines how readily it will do this, darker colors radiate and absorb easily, while lighter colors do the converse as well as act as good reflectors.
white car in sun, black car in sun scenario nuh