Anthocyanidins are common plant pigments, the aglycones of anthocyanins. They are based on the flavylium cation, an oxonium ion, with various groups substituted for its hydrogen atoms. They generally change color from red through purple, blue, and bluish green as a function of pH.
Anthocyanidins are an important subclass of the polymethine dyes and flavonoids. The flavylium cation is a chromenylium cation with a phenyl group substituted in position 2; and chromenylium (also called benzopyrylium) is a bicyclic version of pyrylium. The positive charge can move around the molecule.