Nothing about a raw shrimp suggests what one minute of boiling will do to it. The shell is a cool gray-blue, somewhere between slate and storm cloud, and then steam hits and the animal flushes the familiar pink-orange of a dinner plate. The color that appears was not manufactured by the heat. It was present in the raw shell the whole time, handcuffed to a protein that changed how it looked. Cooking breaks the handcuffs. That single bit of chemistry is also a quiet lesson in how much of the color in the world depends not just on which pigment is present, but on the company it keeps—an idea worth holding next to the way a food's color steers what we expect it to taste like, since cooks read this particular change as a doneness signal brains have trusted for centuries.

Pigment in handcuffs

The pigment is astaxanthin, a carotenoid in the same family as the orange of carrots. Shrimp cannot make it themselves; they accumulate it from the algae and smaller creatures they eat, and it ends up deposited in the shell. Free astaxanthin absorbs blue-green light and therefore looks orange-red. But in a live shell most of it is not free. It is bound inside a large protein complex called crustacyanin, and that binding rearranges the pigment's light-absorbing behavior so strongly that the shell reads blue-gray rather than orange.

Structural studies of the complex explain how. Each protein unit cradles astaxanthin molecules in close pairs, in a tightly water-free pocket, slightly stretching and twisting the pigment's long light-absorbing chain. Loose in solvent, astaxanthin absorbs mostly blue-green light. Bound and paired in crustacyanin, its absorption shifts toward longer, redder wavelengths. Change what the molecule absorbs and you flip the color it shows: a shell whose pigment now eats the orange-red end of daylight returns the blue-gray end to your eye. Chemists call the shift bathochromic; a cook calls it lunch not yet done.

Two of the shift's ingredients deserve a plain-language name. The first is pairing itself: when two identical pigment molecules sit almost touching, they absorb light as a team, and the team's absorptions split and slide toward the red compared with a single molecule's. The second is the pocket: the protein's electric field and its cramped geometry strain the pigment's straight chain into a slightly different shape, which alone moves the absorption band. A protein that holds its pigment in exactly the right strained, paired arrangement is effectively a color decision as well as a container —which is why breaking the container changes the color at all.

What heat actually changes

Crustacyanin, like most proteins, holds its shape only within a comfortable temperature range. Boiling water violently disorders its structure, and the carefully cradled astaxanthin spills out of the ruined pocket into the surrounding tissue. Freed, the pigment returns to its normal absorption and the shell turns orange-red within seconds to a minute, depending on size and heat. The change is one-way for practical purposes: the protein cannot refold into its precise cradle, so the cooked color holds even when the animal cools.

Once you know the mechanism, edge cases make sense. Shrimp that have been frozen and thawed sometimes show patchy pink before cooking, because freezing can partially loosen the protein grip. Wild-caught shrimp fed on carotenoid-rich diets run more deeply pigmented than others, since the whole display depends on how much astaxanthin the animal stored in the first place. Farmed salmon follow the same logic from the other direction: their flesh is pink because feed is supplemented with astaxanthin—bound and unbound states of one pigment, producing entirely different appearances.

Across the seafood counter

The same molecule teaches a second lesson one stall over. A raw salmon fillet is deep, translucent red-orange from its own astaxanthin—loosely held in muscle, not locked in a shell protein—and cooking takes its color in the opposite direction from the shrimp's. The flesh turns opaque and a shade paler, not more saturated, because heat does a different job there: muscle proteins unfold and tangle into a fine mesh that scatters light in all directions. Same trigger, denatured protein; opposite color outcome, because in one case the heat releases pigment and in the other it builds fog. Between the shell and the fillet you have both directions a protein can steer a color.

Follow the pigment one step down the food web and the picture completes itself. Astaxanthin begins in algae and accumulates up through krill and shrimp to salmon, flamingos, and the pink tails of other birds—animals that cannot synthesize carotenoids and can only wear what they eat. The shrimp's gray-blue armor and the flamingo's pink feathers are the same chemistry wearing two different protein contexts.

Why the shell color is not a freshness meter

It is tempting to read dark shells or pale ones as quality grades, but the raw shell is mostly a record of species, diet, and molting stage, not of how long the animal sat on ice. The reliable color change is the one heat controls: gray-blue to pink-orange means the protein has collapsed and the meat is cooking through. Even then, the exact orange you land on varies—and if you find yourself debating whether a shell is properly 'cooked pink' or something more amber, you are arguing the same boundary you can drill in a round of Red or Orange?, where the line between the two turns out to be a judgment, not a fact.

One pigment, two disguisesIllustrative sRGB swatches; live-shell color varies by species and diet
Raw: bound in crustacyaninslate gray-blue, approx. #5C6B7A
Cooked: astaxanthin freedorange-red, approx. #E0632F

Both swatches describe the same carotenoid. The label above each block—not the hue—is what identifies the chemical state, and boiling moves the pigment from the left state to the right.