The insect produces carminic acid, which deters predation by other insects. Carminic acid is extracted from the body and eggs, then mixed with aluminium or calcium salts to make carmine dye, also known as cochineal. Today, carmine is primarily used as a colorant in food and in lipstick.