Until about 600 million years ago, seeing colors didn't matter so much to Earth's inhabitants — nobody had eyes.
"Before the eye evolved, you just wouldn't have seen what was there," says Andrew Parker, a biologist at London's Natural History Museum who studies the evolution of color.
Simple animals back then just floated around, he says. They were aware of sunlight, but didn't have any of the biological bits and pieces needed to perceive color. Then, as Parker tells it, something really big happened.
"A predator that could swim quickly evolved vision," he explains.
That predator probably looked something like a big shrimp, and now it had eyeballs — compound eyes, like the ones that flies have. "That's when color kicked off," Parker says.
Suddenly color could serve as a beacon, alerting predators to tasty food. If you were a worm or a juicy slime blob of a thing — like the soft-bodied ancestors of shrimp or beetles that bobbed about back then — and you stuck out in the murk because you just happened to be yellow or red, you'd be lunch.
So, red prey, for example, had to adapt — by hanging out more often in red seaweed to hide, or by evolving in a way that took advantage of that red color to scare off the enemy. As time wore on, color became useful to animals trying to stay fit, well-fed and sexy enough to get the cool girl or guy — or shrimp-thing.
Millions of species and a few mass extinctions later, creatures with fins, fur and feathers have developed ways to make every color in the Pantone chart.
A lot of the colors in plants and animals come from pigments, colored chemicals that absorb certain wavelengths of light. Many pigments are useful in other ways — granules of melanin, for example, help keep bird feathers strong, and help protect human skin from the sun. Chlorophyll is a chemical that helps plants trap light for photosynthesis; it also makes them look green.
Pigments are like a color currency — many animals can take them from plants, digest them or modify them, and eventually display a version of the pigment in their outer layer. But they have to have evolved the right mechanisms to do so.
Take pink flamingos, for example. Baby flamingos are knobby-kneed, fluffy and awkward. They are also light gray. The adults are pink only because they steal pigments called carotenoids from the foods they eat.
Carotenoids, a class of natural pigments, are abundant in plants, where they play a role in photosynthesis. Different carotenoids make carrots orange and beets red, and are responsible for the range of colors in autumn leaves. Flamingos pick them up from pigment-rich shrimp, crabs and algae. Robins and cardinals get carotenoids from berries, and koi turn orange from munching on algae.
That sort of color change sometimes shows up in humans, too.
"If you eat way too many carrots and the whites of your eyes turn a little pink hue? That's the same process," explains Sara Hallager, curator of birds at the Smithsonian National Zoo.
Eat pink, become pink. Eat red, become red. It sounds simple.
But color isn't that straightforward, as one tanning pill company found out the hard way in the 1980s: The pale people in the company's experiment stayed mostly pale, but developed red palms and red poop.
And, Hallager points out, "you can't feed flamingos blueberries and turn them blue."
Animals, it turns out, have a lot of those sorts of color limitations. Browns and grays appear frequently among birds, for example, and they can make yellow and red from pigments they get from their food. But other colors — blue especially — are surprisingly tough for a bird's body to create via dietary pigments, says Yale ornithologist Rick Prum. The reason why is still a mystery.
"Blue is fascinating because the vast majority of animals are incapable of making it with pigments," Prum says.
In fact, of all Earth's inhabitants with backbones, not one is known to harbor blue pigment. Even some of the most brilliantly blue things in nature — a peacock feather, or a blue eye, for example — don't contain a single speck of blue pigment. So, how can they look so blue?
"They have evolved a new kind of optical technology, if you will, to create this color," Prum explains — it's a trick of structure.
Blue morpho butterflies are great examples. Biologist Dan Babbitt keeps some at the Smithsonian Museum of Natural History's insect zoo.
The butterflies have a 6-inch wingspan — one side a dull brown and the other a vibrant, reflective blue. The butterflies have tiny transparent structures on the surface of their wings that bounce light in just the right way to make them appear a vibrant blue that's so bright it almost hurts your eyes. But if you grind up the wings, the dust — robbed of its reflective prism structures — would just look gray or brown.
"Everywhere you look, organisms have been inventing different solutions to creating the same color," says Antonia Monteiro, who studies butterfly wings in Singapore.
Monteiro says a lot of animals use different materials to get the same effect. Butterfly wings are sheathed in reflective scales made of chitin, the same stuff that makes a crab's shell hard. And a 2012 study found that some birds use bubble-laced keratin (the same stuff that human fingernails are made of) in the barbs of their feathers; it scatters the light from the feather in a way that happens to look blue to humans.
Having optical structures like these to make yourself blue also solves a different color challenge: going green.
"Green is a pigment that animals have really had a problem making," says Parker. That's unfortunate if you want to lurk on a green, leafy planet. So, some land animals dabble in a little color mixing.
Many green snakes and frogs, says Parker, "actually are not green at all. They've evolved a yellow pigment and a blue structural color, and the two combined produce a green effect."
When those snakes die, they turn from green to blue, because the yellow pigments fade. But the structural color, created as the snakes' scales scatter light, is practically immortal.
Structural color isn't just a hack for making blue. It's also a hack for lasting through time.
The best example might be a 50-million-year-old beetle carcass found in Germany in 1998, in a layer of dull brown and gray fossils. Even after millions of years underground, this particular beetle was still a brilliant, metallic blue.
This story is part of the NPR series Color Decoded: Stories That Span The Spectrum.
RENEE MONTAGNE, HOST:
Let's talk now about color in nature, as part of our series on color - think the orange stripes of tigers, iridescent-blue butterflies, green snakes. As NPR's Rae Ellen Bichell reports, it's taken hundreds of millions of years of evolution to produce this technicolor paint box.
RAE ELLEN BICHELL, BYLINE: Let's zoom back to about 600 million years ago. The sun is shining. The Earth is made of stuff that absorbs and reflects light.
(SOUNDBITE OF OCEAN WAVES)
BICHELL: But for the slimy blobs of life that have started to take shape, the color of the sky or the sea or even their fellow sponges and worms doesn't matter a single bit because they don't have eyes.
ANDREW PARKER: Before the eye evolved, you just wouldn't have seen what was there.
BICHELL: Andrew Parker is a biologist at the Natural History Museum in London. He studies the evolution of color. He says creatures back then just floated around. They were aware of sunlight, but they didn't have any of the biological bits and pieces you need to perceive color.
PARKER: It's like it doesn't exist.
BICHELL: They lived in a world of light and dark - movement and stillness. Then, as Parker tells it, about 550 million years ago, something really big happened.
PARKER: A predator that could swim quickly evolved vision.
BICHELL: That predator looked something like a big shrimp, and now it had eyeballs. Those first eyes were game changers.
PARKER: Once eyes evolved, then that's when color really kicked off.
BICHELL: Think about it, Parker says. If you're a juicy slime blob that just happens to be yellow or red, before eyes it didn't matter what color you were, but now...
PARKER: It'll just act as a beacon to attract predators to it.
BICHELL: And the slime blob is lunch. So the species would've had to adapt. Color becomes the way to keep yourself fit, well-fed and sexy enough to get the cool guy or girl - or shrimp-thing. Now, millions of species and a few mass extinctions later, fins, fur and feathers have come up with ways to make every color in the Pantone chart. Take pink flamingos, for example. Baby flamingos are knobby-kneed, fluffy and awkward. They are also light gray. To make themselves pink, they have to steal pigments from other animals or plants by eating them. Sarah Hallager is the curator of birds at the National Zoo.
SARAH HALLAGER: Flamingos around the world - everything they eat, everything that makes them pink is carotenoids.
BICHELL: Carotenoids are natural pigments that make carrots orange and beets red. They're really abundant in nature. Lots of animals get their color from eating them. Flamingos get carotenoids mostly from shrimp and crabs. Robins and cardinals get them from berries. Koi fish turn orange from munching on algae. It even works for humans sort of.
HALLAGER: If you eat way too many carrots and the whites of your eyes turn a little pink hue, that's the same process.
BICHELL: Eat pink, become pink. Eat red, become red - seems simple. The thing is...
HALLAGER: You can't feed flamingos blueberries and turn them blue. They're only programmed to respond to carotenoids, which produce the pink plumage.
BICHELL: Turns out animals have a lot of color limitations like that. Pink and red are easy. But other colors aren't. Rick Prum, who studies birds at Yale, says blue is an especially difficult color to make.
RICK PRUM: Blue is fascinating because the vast majority of animals are incapable of making it with pigments.
BICHELL: The most brilliantly blue things, like a peacock feather or even a human blue eye, don't have a single bit of blue pigment in them. So how come they're so blue?
PRUM: They have evolved a new kind of optical technology, if you will, to create this color.
BICHELL: Blue morpho butterflies are a great example.
DAN BABBITT: Oh, this is - a huge group of morphos just flew by.
BICHELL: Dan Babbitt keeps some at the Smithsonian Museum of Natural History.
BABBITT: This is a giant butterfly. It's about six-inch wingspan, and they are bright, iridescent blue.
BICHELL: Blue morphos have tiny, transparent structures on the surface of their wings that bounce light in just the right way to make them appear a vibrant blue - so bright it hurts your eyes. Antonia Monteiro studies butterfly wings in Singapore. She says, a lot of animals use different materials to get the same effect.
ANTONIA MONTEIRO: Everywhere you look, organisms have been inventing different solutions to the same color.
BICHELL: She says butterflies do it with chitin, which is the same stuff that makes crab shells tough. And birds use keratin, which is what our fingernails are made of, with little bubbles in it to reflect light in just the right way. And it turns out that having optical structures to make blue also solves a different color challenge - going green.
PARKER: Green is a pigment that animals really have had a problem making.
BICHELL: And that's unfortunate, says Andrew Parker, if you want to lurk on a green, leafy planet. So some land animals dabble in a little color mixing.
PARKER: All the green snakes and green frogs, they're actually not green at all. They've evolved a yellow pigment and a blue structural color, and the two combined produce a green effect.
BICHELL: And all this was long before the first painter ever picked up a brush. Rae Ellen Bichell, NPR News. Transcript provided by NPR, Copyright NPR.