Answer:
The color of the flowers is generally caused by anthocyanin pigments
Explanation:
Anthocyanins are hydrosoluble vacuole pigments from the family of flavonoids. Anthocyanins are characteristics of flowers that have distinct colors depending on the pH (i.e., red, blue, purple, etc). These phytochemicals are commonly present in different parts of the plant including stems, roots, leaves, flowers and fruits.
Carotenoids, another type of phytochemicals, are known to confer their color to tomatoes and carrots. It is a class of isoprenoid pigment that produces yellow and orange colors.
Finally, betalains are another type of glycoside pigments that may also confer color to plants.