Chameleons change color in response to various environmental and emotional factors such as temperature, light, mood, and communication. Their ability to change color is due to special cells called chromatophores in their skin that contain different pigments and can expand or contract to alter the chameleon's coloration.