Most flower pigments are anthocyanins and other flavonoids that act as
co-pigmnents, and a lot is known about their biosynthesis and
genes that control their expression.
The red color of tomatoes is caused by carotenoids and xanthophylls
Beets and some other plants contain betacyanins, nitogen containing pigments.
I hope this info helps.