Food coloring, or color additive, is any dye, pigment or substance that imparts color when it is added to food or drink. They come in many forms consisting of liquids, powders, gels, and pastes. Food coloring is used both in commercial food production and in domestic cooking. Due to its safety and general availability, food coloring is also used in a variety of non-food applications including cosmetics, pharmaceuticals, home craft projects, and medical devices.
People associate certain colors with certain flavors, and the color of food can influence the perceived flavor in anything from candy to wine. Sometimes the aim is to simulate a color that is perceived by the consumer as natural, such as adding red coloring to glacé cherries (which would otherwise be beige), but sometimes it is for effect, like the green ketchup that Heinz launched in 1999. Color additives are used in foods for many reasons including:
Indigo Carmine, which is blue.
Allura Red AC, which is red.
Quinoline Yellow WS, which is yellow.
Betanin, a magenta dye, mainly produced from beets.
Anthocyanin, a red to blue dye depending on functional groups and pH.
beta-Carotene, a yellow to orange colorant.
The addition of colorants to foods is thought to have occurred in Egyptian cities as early as 1500 BC, when candy makers added natural extracts and wine to improve the products' appearance. During the Middle Ages, the economy in the European countries was based on agriculture, and the peasants were accustomed to producing their own food locally or trading within the village communities. Under feudalism, aesthetic aspects were not considered, at least not by the vast majority of the generally very poor population. This situation changed with urbanization at the beginning of the Modern Age, when trade emerged—especially the import of precious spices and colors. One of the very first food laws, created in Augsburg, Germany, in 1531, concerned spices or colorants and required saffron counterfeiters to be burned.
...
Wikipedia