Food coloring
Food coloring is a substance, liquid or powder, that is added to food
Food is any substance consumed to provide nutritional support for the body. It is usually of plant or animal origin, and contains essential nutrients, such as carbohydrates, fats, proteins, vitamins, or minerals...

 or drink
A drink, or beverage, is a liquid which is specifically prepared for human consumption. In addition to fulfilling a basic human need, beverages form part of the culture of human society.-Water:...

 to change its color
Color or colour is the visual perceptual property corresponding in humans to the categories called red, green, blue and others. Color derives from the spectrum of light interacting in the eye with the spectral sensitivities of the light receptors...

. 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, for example in home craft projects and in education.
People associate certain colors with certain flavor
Flavor or flavour is the sensory impression of a food or other substance, and is determined mainly by the chemical senses of taste and smell. The "trigeminal senses", which detect chemical irritants in the mouth and throat as well as temperature and texture, are also very important to the overall...

s, and the color of food can influence the perceived flavor in anything from candy
Confectionery is the set of food items that are rich in sugar, any one or type of which is called a confection. Modern usage may include substances rich in artificial sweeteners as well...

 to wine
Wine is an alcoholic beverage, made of fermented fruit juice, usually from grapes. The natural chemical balance of grapes lets them ferment without the addition of sugars, acids, enzymes, or other nutrients. Grape wine is produced by fermenting crushed grapes using various types of yeast. Yeast...

For this reason, food manufacturers add these dyes to their products.