INTRODUCTION
The colors of fruits and flowers, ranging across the visible spectrum from white to yellow to orange, red, purple or blue (Stournaras et al. 2013), are an integral part of the beauty of nature that we as humans perceive with our limited trichromic (red, green, blue) vision (Cronin et al. 2014, Marshall and Arikawa 2014). Highly efficient pollinators like bees are also trichromic, blind to red, but with visual receptors for the ultraviolet (Briscoe and Chittka 2001, Hempel de Ibarra et al. 2014). Less efficient pollinators such as butterflies (Briscoe and Chittka 2001, Arikawa 2017) and hummingbirds (Endler and Mielke Jr 2005) are typically tetrachromic, with vision in the ultraviolet as well as throughout the visible. Despite (or perhaps because of) these differences in visual perception, the colors and the patterns they make on the flower petals, some of which can only be seen by us from photographs in the ultraviolet spectral region (Rørslett 2006, Miller et al. 2011, Garcia et al. 2014), provide contrast against the green-brown background colors of vegetation and can serve as strong visual clues for pollinators (Endler and Mielke Jr. 2005, Schoonhoven et al. 2005, Cronin et al. 2014, Hempel de Ibarra et al. 2014, Marshall and Arikawa 2014), which can include pollination-induced color changes as in Tibouchina (Pereira et al. 2011) and other plants (Weiss 1995). Likewise, the colors of fruits that indicate ripeness (Stournaras et al. 2013) attract frugivorous animals that contribute to the spatial dispersion of the seeds of the plant.
Among the natural pigments of fruits and flowers, the anthocyanins and the betalains are particularly noteworthy from the perspective of the range of colors that they are capable of producing in nature as the result of changes in their chemistry. The anthocyanins are widespread in plants and are responsible for most of the red, blue and purple colors of fruits and flowers, in addition to some vegetables (purple varieties of potatoes, corn, beans, onions, carrots, for example, or red cabbage) and some plant leaves (purple trees, the red leaves that surround the small yellow flower of poinsettias, new foliage of many plant species and the red colors of autumn leaves). The betalains range in color from yellow to red-purple, but are restricted to a single order of flowering plants, the Caryophyllales, which includes cacti, bougainvillea, carnations, some carnivorous plants and red and yellow beets. For reasons that are still not yet entirely clear, there is mutual exclusion of anthocyanins and betalains in nature (Gould and Lee 2002, Tanaka et al. 2008, Jain and Gould 2015), i.e., they do not coexist in the same plant species, although betalain formation has been induced artificially in anthocyanin-producing plants (Harris et al. 2012).
Despite their very distinct chemical structures, both anthocyanins and betalains are cationic below about pH 3, water- and alcohol-soluble, highly colored (Shimamoto and Rossi 2015), and reasonably stable to light, though their slow fading or photobleaching in sunlight is the basis of the Anthotype photographic process (Herschel 1842, Fabbri 2012, Coelho 2013). Since they have been consumed in food for millennia, both are generally regarded to be non-toxic and are available for use as natural food colorants in the form of crude extracts from either grape residues from red wine production in the case of anthocyanins or from red beetroot in the case of betalains. Moreover, both have substantial antioxidant or antiradical activity (Gliszczyńska-Świgło et al. 2006, He and Giusti 2010, Bueno et al. 2012a, b, Navas et al. 2012a, b, Lila et al. 2016, Oliveira et al. 2016c, Tománková et al. 2016, Sigurdson et al. 2017, Slimen et al. 2017) and, as part of our diet, can potentially exert a number of important health benefits (He and Giusti 2010, Gengatharan et al. 2015, Gandía-Herrero et al. 2016, Lila et al. 2016, Kay et al. 2017), making their use as substitutes for artificial food dyes particularly desirable (Wrolstad and Culver 2012, Sigurdson et al. 2017).
The anthocyanins are derived biosynthetically from flavonoids (Tanaka et al. 2008) and, although thousands of different anthocyanins have been characterized, almost all can be classified into one of six basic structural types, which differ only in the substitution of hydroxy or methoxy substituents in the B ring, as shown in Figure 1 for the corresponding deglycosylated or anthocyanidin forms. In nature, the 3-hydroxy group of anthocyanins is always glycosylated, which is apparently important for thermal stability, while the 5-hydroxy group may or may not be glycosylated. Additional structural differences can occur in the glycosylated portions of the anthocyanins and other colorless molecules attached via acyl groups to the sugars, often important for modulation of the color or stability (Castaneda-Ovando et al. 2009, Raghvendra et al. 2011, Santos-Buelga et al. 2014, Trouillas et al. 2016).

Figure 1 The six most common chemical structures of anthocyanins, shown as the fully deglycosylated or aglycone forms referred to as anthocyanidins; the percentages in parentheses represent the approximate relative natural abundances.
The betalains, on the other hand, are Schiff base adducts of betalamic acid (Tanaka et al. 2008), a fluorescent aldehyde derivative of L-tyrosine, with an amino acid or amine (Figure 2). When the amino acid is cyclo-DOPA or a glycosylated derivative thereof, the resultant betalains are reddish-purple in color due to the extended conjugation and designated generically as betacyanins. With other amino acids or amines, the resultant betains are yellow or yellow-orange and generically referred to as betaxanthins (Gengatharan et al. 2015, Gonçalves et al. 2015, Khan and Giridhar 2015, Khan 2016, Slimen et al. 2017). This variability of the relative proportions of betacyanins and betaxanthins is responsible for the enormous range of colors of the flowers of bougainvillea vines. The same range of colors could potentially be achieved in food products by mixing the betacyanin extract of red beets with the betaxanthin-rich extract of yellow beets.

Figure 2 Generic structures of betacyanins and betaxanthins, their biosynthetic precursor betalamic acid and several examples of naturally occurring betalains.
In the following sections, we provide an overview of the status of research at the frontiers of the investigation of the chemistry and photochemistry of anthocyanins and betalains, as well as the more recent interest in the pyranoanthocyanin pigments that form from anthocyanins during the maturation of red wine. Leading references, with emphasis on recent reviews, are provided for readers desiring more detailed information on the topics addressed in this overview. Note that much of our current understanding of these pigments has been derived from studies of model compounds that mimic the reactivity patterns of the natural pigments, while permitting a greater latitude of structural modification than provided by Nature. These studies have been particularly useful for the elucidation of the relationship between the complex chemistry and photochemistry of these pigments and their biological roles in plants and for the rational design of novel semi-synthetic dyes, pigments and fluorescence probes.
THE ANTHOCYANIN PIGMENTS OF PLANTS
The ground-state chemistry of Anthocyanins
Anthocyanin-containing plant extracts have been employed as pH indicators since at least the seventeenth century (Rancke-Madsen 1972, Terci and Rossi 2002) due to the pH-dependent changes in their color in aqueous solution. These color changes reflect a very rich chemistry (Figure 3) involving the interconnected series of reversible pH-dependent equilibria (Castaneda-Ovando et al. 2009, Quina et al. 2009, Rossi and Shimamoto 2010, Salomão et al. 2010, Pina et al. 2012, 2015, Santos-Buelga et al. 2014, Silva et al. 2016) indicated in Figure 3. Below pH 3, the dominant form of anthocyanins in aqueous solution is the red or red-purple 7-hydroxy flavylium cation form, AH + , with a pKa for formation of the conjugate base, A, in the range of 4-5 (Freitas et al. 2007, 2011). However, above about pH 3, attack of water at the 2-position of the cationic form (AH + ) of the anthocyanin forms the colorless or pale yellow hemiketal B (on the time scale of seconds to minutes), resulting in an almost complete loss of the visible color. Subsequent ring-opening tautomerism (on the time scale of minutes) produces the colorless or pale yellow (E)-chalcone (EC), which slowly (hours to days) equilibrates with the (Z)-chalcone (ZC).

Figure 3 The pH-dependent multiequilibria of natural anthocyanins, illustrated for pelargonidin monoglyceride (R1 = glucosyl moiety), together with the chemical structures of the model flavylium cation analogs HMF and MMF used to investigate aspects of anthocyanin chemistry and photochemistry.
Although encapsulation (Cavalcanti et al. 2011, Held et al. 2016, Cortez et al. 2017) and copigmentation (Trouillas et al. 2016, Cortez et al. 2017) might be strategies to inhibit the loss of color, the range of application of anthocyanins as natural food colorants is still currently restricted to relatively acidic media where the cation AH + is the dominant species present (Wrolstad and Culver 2012, Sigurdson et al. 2017). On the other hand, by incorporating anthocyanins in an appropriate polymer film matrix, one can fabricate smart food packaging materials that change color due to liberation of amines resulting from the decomposition of food products (Veiga-Santos et al. 2011, Pereira Jr et al. 2015, Maciel et al. 2015).
In nature, the anthocyanins often are present as mixtures of the different basic structures in different degrees of glycosylation etc., which represents a barrier to systematic studies of the chemistry of natural anthocyanins. Fortunately, most of the salient features of the chemistry and photochemistry of naturally-occurring anthocyanins are mimicked by the synthetically more accessible 7-hydroxyflavylium cations (Pina et al. 2012), in which the nature, position and number of other substituents can be varied systematically in order to develop structure-reactivity correlations (Freitas et al. 2011) or alter the net charge or hydrophobicity of the molecule. In addition, some or all of the multiequilibria can be selectively blocked (Quina et al. 2009), as in the 7-hydroxy-4-methyl-flavylium cation (HMF), in which the acid-base equilibrium is preserved but hydration impeded, and the 7-methoxy-4-methyl-flavylium cation (MMF), in which none of the multiequilibria occur (Figure 3).
Photophysics of the electronically excited states of Anthocyanins
In fruits and flowers, it is straightforward to identify the primary biological role of anthocyanins as signals for frugivores or pollinators, respectively, although additional properties such as antioxidant capacity should not be ignored. In plant leaves, however, the biological raison d’être for the presence of anthocyanins has been the subject of discussion for at least a century (Wheldale 1916, Gould and Lee 2002, Landi et al. 2015). Anthocyanins are known to be expressed in newly sprouted leaves and in situations of stress induced by drought, excess solar radiation or physical damage to the plant (Landi et al. 2015), as well as in senescent autumn leaves (Keskitalo et al. 2005). Among the putative explanations, the role of acting as a sunscreen or filter (Solovchenko 2010) to protect the photosynthetic apparatus from excess solar radiation has been advanced most frequently, though several other alternatives have also been seriously considered (Gould and Lee 2002, Landi et al. 2015). Of these, the viability of the photoprotection hypothesis is amenable to testing from a photochemical standpoint. Thus, like any sunscreen molecule, if anthocyanins do indeed function as effective photoprotectors, they must both absorb strongly in the appropriate spectral regions and very rapidly convert the absorb light energy into heat, without producing any net photochemistry or forming undesirable intermediates such as radicals or reactive oxygen species.
Indeed, systematic studies of the photophysics of anthocyanins (Quina et al. 2009, Silva et al. 2016) have shown that, analogous to phenol or naphthol, the singlet excited state of the cationic form, AH + *, of anthocyanins is a very strong photoacid, with excited state pKa* values below 0, i.e., 5-6 orders of magnitude more acidic than the ground state. Moreover, the time scale of adiabatic proton transfer from AH + * to water, forming the excited base A*, is extremely short, in the range of 5-20 ps. The excited base is also short lived and decays back to the ground state in ca. 200 ps. Thus, as required for a sunscreen (Kockler et al. 2012, Saewan and Jimtaisong 2015, Rodrigues et al. 2016), excited state proton transfer effectively converts the absorbed light energy into heat in less than a ns, with no other significant competing processes. Other recent studies have shown that the singlet excited states of the colorless hemiketal, B, and the chalcones could also serve as effective ancillary sunscreen molecules in the ultraviolet region. The former undergoes photoinduced ring opening tautomerism on a ps timescale, while the chalcones undergo E-Z photoisomerization (Costa et al. 2015).
Given the ultrafast nature of the proton transfer from AH + * to water, 7-hydroxyflavylium ions have been found to be excellent fluorescence probes for the study of proton dynamics at the surface of micelles and in water-organic solvent mixtures (Quina 2013, Freitas et al. 2014). In these systems, proton transfer followed by geminate recombination between the proton and the newly-formed excited base can be detected and the rate constants for the various primary events of the proton transfer itself, including back transfer and escape of the proton from the geminate pair (A* 1 •••H+) can be determined:
Anthocyanin complexes
In plants, anthocyanins localize in vacuoles where there are also a variety of other organic molecules, metal ions, or biopolymers that can form complexes with the anthocyanins. In some cases, insoluble anthwocyanic vacuolar inclusions are present and may enhance anthocyanin storage (Pourcela et al. 2010). The complexation of anthocyanins with colorless organic molecules (referred to as copigments) increases the stability of the AH + form and thus the pH range over which the visible color persists. The driving force for this bimolecular complexation or “copigmentation” involves a significant charge-transfer component (Silva et al. 2005, Quina et al. 2009, Trouillas et al. 2016), in addition to hydrophobic or, in some cases, ion-pairing contributions. These copigmentation complexes are non-fluorescent and the charge-transfer character of the excited state mediates ultra-fast non-radiative decay back to the ground state (Rodrigues et al. 2009, Silva et al. 2016). Hence, copigmentation complexes are even more efficient than uncomplexed anthocyanins, by at least an order of magnitude, at transforming absorbed solar energy into heat. In addition to bimolecular complex formation, many anthocyanins have been characterized in which copigments are covalently attached to the sugar residues of the anthocyanins, resulting in stabilization of the AH + form via intramolecular copigmentation (Silva et al. 2012, Trouillas et al. 2016).
Gottlieb (1982) pointed out that blue flower color is characteristic of the most highly evolved flowering plants, which should favor pollination by hymenoptera, which do not detect red light. Cyanidin, delphinidin, and petunidin, with ortho-hydroxy groups in the B-ring, can change color by forming complexes with divalent and trivalent metal cations, notably Al3+, Fe2+/Fe3+ and Mg2+, transforming the color of the pigment from red to blue (Yoshida et al. 2009, Castaneda-Ovando 2009, Sigurdson and Giusti 2014, Oyama et al. 2015, Trouillas et al. 2016, Sigurdson et al. 2017, Volodymyr et al. 2017). Japanese (Yoshida et al. 2009, Oyama et al. 2015) and European (Trouillas et al. 2016) groups have conducted detailed experimental and theoretical studies of the various types of blue metal-containing complexes of anthocyanins. Anthocyanins and flavylium ions with ortho-hydroxyl groups in the B-ring also bind to mesoporous TiO2 and have been examined as chromophores in dye-sensitized solar cells, though net efficiencies are still relatively low for all types of natural plant pigment extracts tested thus far (Calogero et al. 2012, 2013, Hug et al. 2014, Jaafar et al. 2017). Although no systematic studies of their photophysics have been reported to date, the preliminary indications are that anthocyanin-metal complexes are probably non-fluorescent and old Japanese woodcut prints colored with the blue metaloanthocyanin pigment extracted from the Asiatic dayflower (Commelina communis) must be protected from light to prevent fading (Sasaki and Coombs 2005, Hioki 2009).
THE CHEMISTRY AND PHOTOCHEMISTRY OF BETALAINS
Unlike anthocyanins, the color of betalains is insensitive to pH in the range from acid to neutral. This in fact provides a rather simple test for discriminating between these two classes of pigments for red or purple fruits or flowers: the pigments of the fruit or flower of interest are extracted into mildly acidic methanol and the pH of the extract adjusted to ca. pH 7; a rapid and reversible change of the color or fading indicates that the pigment is an anthocyanin rather than a betalain (Rossi and Shimamoto 2010). In addition, red beetroot serves as a convenient source of appreciable quantities of betanin (Figure 2), which can then be hydrolyzed to betalamic acid (Gonçalves et al. 2012). The betalamic acid thus obtained can then be reacted with amino acids or other amine-containing compounds to prepare a wide variety of natural and synthetic non-natural analogs of betalains (Schliemann et al. 1999, Gonçalves et al. 2015). The study and characterization of natural and artificial derivatives of betalains suffers from two important limitations, viz., low solubility in non-aqueous media and hydrolytic instability in aqueous media (Slimen et al. 2017). Betalains are chemically labile in highly acidic aqueous media (pH < 1) and alkaline hydrolysis occurs at pH > 8, restricting most studies in aqueous media to slightly acidic conditions (4 < pH < 6). Even at pH 5, the thermal decomposition of most derivatives occurs in a few minutes at 100 oC. (Herbach et al. 2006, Gonçalves et al. 2013a). Betalains are also subject to metal-ion catalyzed decomposition (Slimen et al. 2017). An additional inconvenience is that water can also catalyze the E-Z isomerization of betalains (Bartoloni et al. 2013). Recently, however, it has been found that trifluoroethanol (TFE) and aqueous TFE are particularly interesting solvents for betalains (Bartoloni et al. 2013). TFE improves the hydrolytic stability of betalains, enabling their structural and physicochemical characterization, and TFE may be a useful solvent for the optimization of the synthesis of new betalain derivatives. Encapsulation has also been investigated as a stabilization strategy for betalains (Slimen et al. 2017).
While most betaxanthins are weakly fluorescent in aqueous solution (fluorescence quantum yields typically less than 0.001), betacyanins are essentially non-fluorescent (Gonçalves et al. 2015). The fluorescence quantum yields of betaxanthins and several different synthetic analogs were found to increase 2-4 fold in TFE relative to water, probably reflecting the different influence of intermolecular hydrogen bonding on the non-radiative deactivation of the singlet excited state of the betalain (Bartoloni et al. 2013). Betaxanthins pigments are responsible for the fluorescence of the petals of the flowers of the yellow varieties of four-o’clock (Mirabilis jalapa) and eleven-o’clock (Portulaca grandiflora) under illumination with blue light (Gandía-Herrero 2005, Iriel and Lagorio 2010b, Gonçalves et al. 2015). However, this fluorescence, and that of flowers in general, is too weak relative to the light reflected from the flower to be of appreciable importance in attracting pollinators (Iriel and Lagorio 2010a, b).
Selected practical applications of Betalains
Although naturally-occurring betalains are only weakly or non-fluorescent, betalain analogs with much higher fluorescence efficiencies can be obtained by conjugating betalamic acid with a highly emissive chromophore such as 7-amino-4-methylcoumarin (Coumarin 120). The resultant coumarin-containing betalain (cBeet120, Figure 5) not only exhibits good fluorescence and high photostability, but also was found to be promising as a dye for the selective live-cell fluorescence imaging of malaria parasites inside Plasmodium-infected erythrocytes (Gonçalves et al. 2013b). The betalain moiety in cBeet120 extends the pi conjugation of the coumarin chromophore, resulting in a spectroscopically convenient bathochromic spectral shift of the absorption and emission. In addition, compared to the free or unconjugated coumarin, cBeet120 is quite water soluble, which facilitates the accumulation of the dye in the cells. Studies are currently in progress in our laboratories with the objective of delineating the role of the betalain moiety on the selectivity of the uptake by the infected cells and the preferential localization in the parasites.

Figure 4 Formation of a Vitisin B type pyranoanthocyanin via a reaction of malvidin (oenin), the predominant anthocyanin in Vitis vinifera grapes, with the enol form of a copigment during the maturation of red wine (Oliveira et al. 2014; Vallverdú-Queralt et al. 2016), together with the structure of a typical synthetic pyranoflavylium cation 1 (Chassaing et al. 2015) used to investigate the chemistry and photochemistry of the pyranoanthocyanin chromophore (Freitas et al. 2017).

Figure 5 An example of live cell imaging of Plasmodium-infected red blood cells with cBeet120 (molecular structure indicated in the figure). The blue and green fluorescence emissions in the online version are from Hoescht 33342 (a selective stain for DNA) and cBeet120, respectively.
Metal cations can bind to betalains via complexation with the 1,2,3,4-tetrahydropyridine-2,6-dicarboxylic acid moiety of the betalamic acid portion of the molecule. For example, the magenta-colored betalain of red beetroot forms a stable orange-colored one-to-one complex with Eu3+. This observation, combined with the knowledge that the causative agent of anthrax, B. anthracis, secretes the calcium dipicolinate (CaDPA) complex led to the development of a colorimetric test for anthrax. In the presence of increasing concentrations of CaDPA in the micromolar range, the color changes from the orange of the Eu3+-betalain complex to magenta due to the competitive binding of Eu3+ to CaDPA rather than to the betalain (Gonçalves et al. 2013c). Compared to the method based on the luminescence of Eu3+ and Tb3+, originally developed by Rosen et al. (1997), our method does not require the synthesis of ligands and has equivalent sensitivity for the detection of CaDPA and bacterial spores since the determining factor in this case is the CaDPA/lanthanide ion competitive binding and not the detection mode.
Betalains also have been used as chromophores in dye-sensitized solar cells (Calogero et al. 2012, Hug et al. 2014, Jaafar et al. 2017), presumably via the interaction of the carboxylate groups of the molecule with the surface of mesoporous TiO2, and for the generation of H2 using nanoparticles decorated with hydrogenase mimic and betanin (Pavliuk et al. 2017a, b). Finally, in a green chemistry application, beetroot extract has been used as both a reducing agent and growth-regulator for the controlled preparation of monodisperse silver nanoparticles in a microfluidic flow system (Fernandes et al. 2016).
IMPROVING ON NATURE? THE PYRANOANTHOCYANINS IN RED WINES
Pyranoanthocyanin pigments formed in vitro from the Anthocyanins in red wines
During the ageing of red wines, the free anthocyanins and/or anthocyanin complexes responsible for the initial color of the wine (Lago-Vanzela et al. 2013, Casassa and Harbertson 2014, Figueiredo-Gonzalez et al. 2014, Heras-Roger et al. 2016, Tang et al. 2017) are slowly transformed by condensation with copigments and yeast metabolites into a variety of more complex pigment molecules (Fulcrand et al. 2006, Marquez et al. 2013, Oliveira et al. 2017b). The condensation products responsible for the final color are primarily the pyranoanthocyanins (Figure 4), which differ from the anthocyanins by the presence of an additional pyran ring situated between the 4-carbon and the 5-hydroxy group of the anthocyanin precursor (Oliveira et al. 2014, Souza et al. 2014).
Due to the presence of the pyranoanthocyanins, the color of mature wines is much more pH-stable (Souza et al. 2014, Oliveira et al. 2014, 2017b) and much less susceptible to bleaching by additives such as sulfite than that of young wines (Marquez et al. 2013, Tománková et al. 2016). Pyranoanthocyanins make an important contribution to the antioxidant radical scavenging capacity of aged wine (Azevedo et al. 2014) and current research is focusing on their contributions to the organoleptic properties of red wines in addition to color (Quaglieri et al. 2016, Garcia-Estevez et al. 2017). As in the case of anthocyanins, pyranoanthocyanin derivatives extracted from wine grapes can act as photosensitizers in solar cells (Santos et al. 2014).
Much of the difficulty in the study of naturally-occurring pyranoanthocyanins arises from the fact that mature wines can contain a complex mixture of chemically distinct products (Fulcrand et al. 2006, Marquez et al. 2013, Oliveira et al. 2017b). In addition, the entry of beverages containing any amount of alcohol into the IQ-USP for any purpose has been prohibited since 2015 (193rd Reunion of the Technical-Administrative Council, IQUSP, 09/21/2015), which precludes the possibility of such studies in our laboratories. As a result, most studies to date, all of which are relatively recent, have employed pyranoflavylium cation analogs (Figure 4) possessing the basic chromophoric group of natural pyranoanthocyanins (Chassaing et al. 2015, Oliveira et al. 2016a, b, 2017a, Vallverdu-Queralt et al. 2016, Freitas et al. 2017). Like pyranoanthocyanins, pyranoflavylium ions are weak acids in the ground state, but have much simpler pH-dependent chemistry, exhibiting only the acid-base equilibrium, with pKa values of ca. 4 (Vallverdu-Queralt et al. 2016, Freitas et al. 2017, Oliveira et al. 2017a). The absence of the hydration reaction is responsible for the persistence of the visible color of pyranoanthocyanins at neutral pH (Oliveira et al. 2014, 2017b, Souza et al. 2014). Although the photoacidity of pyranoflavylium ions is less pronounced than that of uncomplexed anthocyanins and 7-hydroxyflavylium cations, excited state proton transfer does still appear to be the dominant excited state deactivation pathway of pyranoanthocyanins as well, consistent with their relatively good photostability (Freitas et al. 2017).
PERSPECTIVES
With its enormous biodiversity, Brazilian tropical flora is a treasure-trove of natural plant pigments. Over eons, the evolution of the color of fruits and flowers has resulted in the development of a variety of natural pigments via which plants interact with their environment such as plant-insect or plant-herbivore interactions. We have briefly considered here current aspects of research at the frontiers of investigation of the chemistry and photochemistry of the two pigment classes, the anthocyanins and the betalains, that are responsible for almost all of the red, purple and blue colors of fruits and flowers. Elucidation of this often complex chemistry and photochemistry points to strategies for stabilizing the color of these natural pigments in practical applications such as nutraceuticals in foods or dyes in consumer products. At the same time, systematic studies of model compounds containing the basic chromophoric groups of these pigments are providing a deeper understanding of the effects of solvent, substituents, copigmentation and the formation of metal complexes on pigment color and stability, as well as identifying new applications. The development of efficient protocols for inducing the formation in vitro of pyranoanthocyanin pigments analogous to those produced during the maturation of red wines provides an alternative for improving the stability of the color of anthocyanins while maintaining the benefits to human health. Finally, methodologies for the larger-scale isolation of betalains and anthocyanins are paving the way for employing these natural pigments as starting materials for the preparation of novel semi-synthetic dyes, pigments and fluorescence probes.