Scientists Just Found Out How Chameleons Change Color

2 minute read

Scientists may have finally unlocked the mystery behind chameleons’ unique ability to change color.

The explanation is that the reptile’s skin is made up of tiny mirror-like crystals, contained within reflective pigment cells called iridophores. That’s according to a new study published in the journal Nature Communications.

When the chameleon gets excited, or anticipates danger, the iridophores expand or contract to enable the crystals to reflect different levels of light, thereby changing its skin color.

See The Best Biology Photos Of The Year

Two Bisons on the Grand Prismatic Spring in Yellowstone National Park, Wyo.
Two Bisons on the Grand Prismatic Spring in Yellowstone National Park, Wyo.Lukas Gawenda
A spider at sunset in Predel, Bulgaria.
A spider at sunset in Predel, Bulgaria.Krasimir Matarov
Parental care in parasitoid wasps
Parasitoid wasps building clay pots in Borneo, Brunei.Thomas Endlein
Siblings watering newly planted seedlings in Rizal, The Philippines.
Siblings watering newly planted seedlings in Rizal, The Philippines.Ysabel M Victoriano
A leopard in its natural habitat in Karantaka, India.
A leopard in its natural habitat in Karantaka, India.Nagarjun Ram
A farmer protects his family and animals from mosquitos in Gujarat, India.
A farmer protects his family and animals from mosquitos in Gujarat, India.Dimple Pancholi
A tarsier in its natural habitat in Sulawesi, Indonesia.
A tarsier in its natural habitat in Sulawesi, Indonesia.Wolfgang Weinhardt
A plant takes advantage of the available shelter in a dilapidated house in Kolmanskop, Namibia.
A plant takes advantage of the available shelter in a dilapidated house in Kolmanskop, Namibia.Kelsey Green
A female blackbird holding a dried mealworm in her mouth in Lincolnshire, United Kingdom.
A female blackbird holding a dried mealworm in her mouth in Lincolnshire, United Kingdom.Billy Clapham
A chick embryo in a hardened eggshell is sustained until full development in Rizal, The Philippines.Robert Cabagnot
An adult female Italian crested newt stationed below the fresh water surface in Piedmont, Italy.
An adult female Italian crested newt stationed below the fresh water surface in Piedmont, Italy.Matteo Riccardo Di Nicola
A sea turtle eating a jellyfish in The Maldives.
A sea turtle eating a jellyfish in The Maldives.Boris Barath

The researchers used a combination of microscopy, high-resolution videography and color-based numerical modeling to arrive at this discovery.

“When the skin is in the relaxed state, the nanocrystals in the iridophore cells are very close to each other — hence, the cells specifically reflect short wavelengths, such as blue,” Michel Milinkovitch, a professor of genetics and evolution at the University of Geneva in Switzerland and the lead author of the study, told Live Science.

Milinkovitch further explained that, when excited, the nanocrystals spread further apart to reflect longer wavelengths like yellow, red and orange, which combine with blue to produce different hues.

If any of those hues is white, gold, black, or blue, we might just have chameleons breaking the Internet soon.

Read next: The Weird Reason Humans Shake Hands as a Greeting

Listen to the most important stories of the day.

More Must-Reads from TIME

Write to Rishi Iyengar at rishi.iyengar@timeasia.com