Many people think that chameleons change colors to blend in with their surroundings, but the real reason they change colors is to change their body temperature. In Fact, chameleons change colors to adapt to the varied temperatures of their environment.
Reptiles, including chameleons, are all cold-blooded. This means that the temperature of their body changes based on the temperature of the area surrounding them. Chameleons are able to use their color changing abilities to regulate their body temperatures. For example, darker colors absorb heat the best; therefore, when chameleons are cold, they turn dark colors. Lighter colors reflect the light and heat, so when a chameleon’s color is pale, it helps the chameleon cool down.
Like chameleons, the anole lizard also changes colors. When it sits on a leaf, its color becomes green. When it sits on a tree trunk, it slowly turns into a shade of brown. The anole lizard does this because it always needs to blend with its environment to protect itself from predators.
Animals change colors for different reasons. While the anole changes colors to camouflage for protection, chameleons change color to maintain their body temperatures. So, an animal’s color may be more important than one might think!
[Source: How do Chameleons Change Color?]