Anthocyanins are water-soluble pigments that contribute various colors like red, purple, and blue to foods. They are flavonoids that contain three phenyl rings and a sugar residue. Common anthocyanins found in foods include pelargonidin, cyanidin, and malvidin. Anthocyanin color changes from red to blue depending on pH. Myoglobin is the pigment that gives meat its color. Its color depends on the oxidation state of the iron in its heme group and whether oxygen is bound. Oxymyoglobin is bright red while deoxymyoglobin is purplish-red. Heat and oxidation cause myoglobin to turn brown.