Green Chemistry in the Extraction of Natural Dyes from Colored Food Waste, for Dyeing Protein Textile Materials

The beetroot peels can be a sustainable source of betalains that can dye the wool materials through green processes based on low water and energy consumption. Green chemistry in the extraction of betalains from colored food waste/peels from red beetroot involved the use of water as a solvent, without other additives. In order for the extract obtained to be able to dye the wool, it was necessary to functionalize betalains or even the wool. Three types of sustainable functionalizations were performed, with (1) acetic acid; (2) ethanol; and (3) arginine. For each functionalization, the mechanism that can justify dyeing the wool in intense colors was elucidated. The characterization of the extract was performed with the data provided by UV-VIS and HPLC-MS analyses. The characterization of the wool dyed with the extract obtained from the red beetroot peels was possible due to the information resulting from the FTIR and CIELab analyses. The functionalizations of betalains and wool in acid environments lead to the most intense red colors. The color varies depending on the pH and the concentration of betalains.


Introduction
The stringent issue of sustainability and the need for the transition toward a circular economy that are emphasized in EU Directives [1] requires a deep transformation of the textile industry: more and more companies require products to be certified to "STANDARD 100 by OEKO-TEX ® " [2]. An important direction toward change refers to replacing the synthetic components, especially the synthetic dyes, currently used in the textile industry that are hazardous both to humans and nature. For humans, they can cause allergies, while the dyeing processes lead to polluted residual waters [1]. The solution of this problem is the use of a sustainable approach of design, based on designing or redesigning processes or systems so that their environmental, economic, and societal impact is significantly and lampranthin II (feruloylbetanin) [11]. The beetroot peel can contain vulgaxanthin I, vulgaxanthin II, indicaxanthin as betaxanthins and betanin, prebetanin, isobetanin, and neobetanin as betacyanins. In addition, cyclodopa glucoside/V-formylcyclodopa glucoside, glucoside of hydroxyindolcarboxylic acid, betalamic acid, L-tryptophan, p-coumaric acid, ferulic acid, and traces of unidentified flavonoids were detected [12,13].
The dyes' quantities from the beetroot peels depend on the degree of maturity of the vegetable, variety, and climatic conditions [6].
Extraction of dyes from the pulp of red beetroot (betalains) for the food industry can be done in the presence of water, of an acid/alcohol medium (citric acid solution, ascorbic acid solution, citric acid and ascorbic acid mixture, ethyl alcohol, citric acid and ethyl alcohol mixture, HCl mixture, and ethyl alcohol) or by enzyme/microorganisms-assisted processes [5][6][7][8][9][10].
The stability of betalains is influenced by numerous factors, as follows: pH, temperature, time, dye content, glycosylation degree, acylation degree, antioxidants, chelating agents, and nitrogen atmosphere [13][14][15][16]. Modifying these factors, the color of the dye is often affected.
Studying the literature on the extraction methods of the dyes from the red beetroot with the possibility of their use in the textile industry, we reached the following conclusions: (a) There are a lot of references concerning the extraction of red beetroot dyes (for juices in the food industry) [10][11][12][13][14][15][16], but no such extract was used in the textile industry [5]; (b) The vegetables dyes are currently extracted mostly from the pulp, ignoring the peels, which are often a by-product of the food industry [11][12][13][14]; (c) Nobody has succeeded in a red deep and durable dyeing of wool with functionalized extract from red beetroot peels.
Regarding the dyeing process, the protein materials (wool and silk) are not dyed with fresh red beetroot extract; if a mordant is added to the dye bath, then only light colors such as "milk rose or pink baby" are obtained [19,20].
Certain mordants added to the dyebath (potassium dichromate, aluminum sulfate, ferrous sulfate, copper sulfate) had a negative effect on the color change performance of some natural support (wool and wood) [21,22]. The silk dyeing using simultaneously a mordanting technique, in the presence of ecofriendly acid mordants (citric acid, tartaric acid, acetic acid and tannic acid), led to good color fastness properties and some changes in shade, depending on the mordant used [23].
The research direction of this article has a practical approach and could be useful for solving current global problems related to sustainable production. The capitalization of red beetroot peels and the functionalization methods could open new paths to green dyeing processes without chemicals harmful to the human factor and the environment.
The main objective of this work is to increase the sustainability of textile materials by developing an environmental-friendly innovative method for the dyeing of wool materials using recycled vegetal waste.
The novelty of the study consists in the intense red coloring of the wool using a sustainable extract obtained from beetroot peels, without using metallic mordants. Three types of functionalization of the extract and respectively of the textile support were performed: (1) functionalization in an acid environment; (2) esterification; and (3) amination. The mechanism that justifies the dyeing of the wool in strong red colors was determined for each type. Using the UV-VIS and HPLC-MS analyses, we determined the component of the extracts. FTIR and CIEL*a*b* measurements confirmed the existence of betalains on the textile support, giving it a red color with certain characteristics.
Color fastness properties are very good in two cases: (1) when the wool has been dyed with an extract functionalized in an acidic environment and (2) when the wool has been functionalized in an acidic environment before dyeing. The designation of one of these variants as the best must be based on the analysis of color in terms of strength, shade, resistance to washing, rubbing, exposure to light, and durability to repeated washings. The destination of the dyed material and the client's requirements/preferences are also other criteria for selecting the optimal functionalization/dyeing variant.

Materials and Chemicals
The protein materials used were wool in the form of fabric with 250 g/m 2 . To extract the natural dye, beetroot peels were used (from Romania), and 80% acetic acid and 96% ethanol were purchased from Merck and L-arginine from the company Sanflora from Bucharest/Romania.

Experimental Protocol
For the extraction of betalains, 200 g of beetroot peels were used in 2 L of distilled water, proceeding as follows: after washing the beets, the peel was grated, crushed, weighed, and then added to a 3 L Berzelius glass. Distilled water (2 L) was added (without other additives), and everything was well stirred for 1 h, at room temperature. After filtration, volumes of 100 mL extracts were used for the functionalization of betalains and wool dyeing.
Three types of functionalizations were performed both on the wool samples and betalains/extracts, as follows: (1) Treatment with 10 mL of acetic acid; (2) Esterification with 10 mL ethanol in an acid medium (pH = 3); (3) Amination with 10 mL arginine solution of 50 g/L. (4) The duration of each functionalization was 30 min, at 25 • C. After the functionalization, the wool samples of 1 g each were dyed, at 40 • C, for 2 h.
Therefore, the experimental protocol includes a green chemistry extraction of betalains from red beetroot peels, betalains/wool functionalization treatments, and wool dyeing; all these processes are highlighted in Figure 1.
resistance to washing, rubbing, exposure to light, and durability to repeated washings. The destination of the dyed material and the client's requirements/preferences are also other criteria for selecting the optimal functionalization/dyeing variant.

Materials and Chemicals
The protein materials used were wool in the form of fabric with 250 g/m 2 . To extract the natural dye, beetroot peels were used (from Romania), and 80% acetic acid and 96% ethanol were purchased from Merck and L-arginine from the company Sanflora from Bucharest/Romania.

Experimental Protocol
For the extraction of betalains, 200 g of beetroot peels were used in 2 L of distilled water, proceeding as follows: after washing the beets, the peel was grated, crushed, weighed, and then added to a 3 L Berzelius glass. Distilled water (2 L) was added (without other additives), and everything was well stirred for 1 h, at room temperature. After filtration, volumes of 100 mL extracts were used for the functionalization of betalains and wool dyeing.
Three types of functionalizations were performed both on the wool samples and betalains/extracts, as follows: (1) Treatment with 10 mL of acetic acid; (2) Esterification with 10 mL ethanol in an acid medium (pH = 3); (3) Amination with 10 mL arginine solution of 50 g/L. (4) The duration of each functionalization was 30 min, at 25 °C. After the functionalization, the wool samples of 1 g each were dyed, at 40 °C, for 2 h.
Therefore, the experimental protocol includes a green chemistry extraction of betalains from red beetroot peels, betalains/wool functionalization treatments, and wool dyeing; all these processes are highlighted in Figure 1.   In order to appreciate the results of the washing tests, the 2 variants of the gray scale were used: one for assessing the change in color and another one for assessing staining of the undyed lining fabric. In the case of color fastness to rubbing, only the gray scale to assess the staining was used. The light fastness was assessed with the blue wool scale that has 8 references/swatches.
Durability at repeated washings was tested using the Home Laundering test (SM SR EN ISO 105-CO6: 2013). This testing is based on gravimetric determinations; for the functionalized and dyed samples, the mass losses were measured after 1-5 cycles of repeated washings. The washes were carried out in accordance with the instructions from the Home Laundering test, on Warner Mathis equipment (Switzerland). The gravimetric measurements were performed using an electronic balance of the Mettler Toledo AT201 type that can assess any mass with an accuracy of 0.01 mg.

UV-VIS
The UV-VIS spectra were performed in 200-800 nm range on a Single Beam Scanning M 501 UV-VIS spectrophotometer. This analysis allowed determining the dependence of the absorbance on the extract concentration and drawing a calibration curve. The characterization of the extract was performed according to the reports in the literature [24][25][26][27] using absorbances at different wavelengths and at different pH values. The following parameters were calculated: betanin content, the total monomeric anthocyanins, color density (control), browning index, and percentage of polymeric color.
The relationships used to characterize the extract are as follows: The total monomeric antocyanins (mg/L) = A × DF × MW × 1000/ε × L; • Color density (control) = (A 420 nm − A 700 nm ) + (A vis max − A 700 nm ); • Polymeric density (bisulfite-treated sample) = (A 420 nm − A 700 nm ) + (A vis max − A 700 nm ); • Browning index (bisulfite-treated sample) = A 420 nm − A 700 nm ; • Percent of polymeric color = polymeric color density × 100 %/color density. where: A is the absorption at λ max corrected by the absorption at 600 nm or even 650 nm; MW is the molecular weight of betanin; V f is the total extract volume; DF is the dilution factor; ε is molar absorptivity, ε = 60,000 L/mol*cm in water, for betanin; L equals path length, L = 1 cm; W is the weight of fresh (W f ) of the peels red beetroot; A vis max , A 700 nm , and A 420 nm are the absorbance of extract at maximum wavelength, 700 nm, and 420 nm at certain pH.

HPLC Experimental Technique
For the identification of the compounds in the beetroot extract, a Thermo HPLC-MS system was used, equipped with a Diode Array and MSQ Plus detector, an Acclaim 120 C18 column (150 mm × 4.6 µm), acetonitrile (5-95%), and formic acid 0.1% (95-5%), with a flow rate of 0.4 mL/min as mobile phase and 10 µL injection volume. The MSQ plus functioned in ESI mode (positive ion mode), with 250 • C probe temperature, and +75 V (cone). The UV absorptions were recorded at 4 wavelengths: 310 nm, 480 nm, 505 nm, and 541 nm.

FTIR
To acquire and record the IR spectra, equipment from Bruker Optic, Germany was used, consisting of an FT-IR spectrophotometer coupled with a HYPERION 1000 microscope. The process was done in reflection mode, and the spectra were superimposed using KnowItAll software.
2.6. CIEL*a*b* Measurements CIEL*a*b* measurements were performed for extracts as well as for dyed/functionalized samples. CIEL*a*b* measurements (L*, a*, b*, C*, h) were performed with a Datacolor Sprectroflash SF300 spectrophotometer. The meanings of the color measurements are as follows: L* is the lightness; a* and b* indicate the positions on the red-green and yellowblue coordinates; C* is the color saturation; and h is the color hue. The color strength (K/S) was also measured on a Datacolor Sprectroflash SF300 spectrophotometer that uses the light reflectance technique based on the Kubelka-Munk equation.

Statistical Analysis
All experiments were performed in triplicate, for which the calculation of the standard error of the mean was required. The calculation was performed in Excel, and the size of each one was indicated directly on the figures.

UV-VIS
In order to dye the textile materials with aqueous extracts of some natural dyes, it is necessary to know the behavior in the UV-VIS field, betalains content/characteristics of the colored extract, and especially what are the betacyanin and betaxanthin components existing in the extract.
For the raw extract (non-functionalized), a calibration curve was made ( Figure 2), which highlights the dependence of the absorption on the concentration of betalains. This calibration curve allows determining the concentrations of betalains from the extracts used for dyeing, which is extremely useful information when it is desired to reproduce the same color on several batches of textiles. The characteristics of the extract resulted from peels of red beetroot are indicated in Table 1, being calculated according to the indications in the literature [24][25][26][27].     The color of this extract (for a volume V = 50 mL, measured at room temperature) is characterized by the following CIEL*a*b* values:   The color of this extract (for a volume V = 50 mL, measured at room temperature) is characterized by the following CIEL*a*b* values:

Functionalization and Dyeing of Wool with Red Beetroot Peels Extract
The mechanism of dyeing wool with beetroot extract is based on the following: 1. Functionalization/activation of wool and the formation of ionic bonds with COOgroups in betalains; 2. Functionalization of the dye, making possible the formation of electrostatic interactions between the functional groups of betalains and those of activated wool.

Functionalization and Dyeing of Wool with Red Beetroot Peels Extract
The mechanism of dyeing wool with beetroot extract is based on the following: Functionalization of the dye, making possible the formation of electrostatic interactions between the functional groups of betalains and those of activated wool.

Functionalization of Wool
The three types of functionalization treatments to which the wool was subjected made it possible to dye it in strong red colors. The reaction mechanisms are further presented in detail in Sections 3.2.1.1-3.2.1.3.

Functionalization of Wool in Acidic Environment
The protonation of wool in acidic medium is based on dissociation reactions (of the acid and amino acids in wool), activation of wool, and a double exchange reaction between activated wool and betalains Equations (1)-(4), thus: Wool is an amphoteric compound; therefore, in the acid environment, it interacts with the acid, accepting protons, thus resulting in activated/protonated wool.
This intermediate phase actually means an activation of the amino groups of the wool, which thus become binding centers for the anions of the dye in the solution: This mechanism is similar to that found in the classic dyeing of wool with synthesized acid dyes that have SO 3 − anionic groups and can form ionic bonds with the + NH 3 group of wool activated by the acid medium from dyeing. The difference is that betalains acquire COO − anionic groups, only after a deprotonation process, determined by the presence of a weaker acid as betalains (e.g., acetic acid or water).

Wool Esterification (FEW) with Ethanol
Wool esterification (FEW) with ethanol, in acid medium (HCl), consisted in the conversion of COOH groups from wool into COO-CH 2 -CH 3 groups (Equation (5)); as a result, an intense yellow coloration appears on the wool, which combines with the red, determined by the attraction between the free NH 2 groups, from the wool amino acids, which protonate in the acidic environment (Equation (3)) and form ionic bonds with the COO − groups from betalains (Equation (4)).
If the acid used to carry out the esterification reaction is of the organic type (acetic acid), then the color of the wool is intense red with faint shades of yellow, because the degree of esterification is lower. It turns out that the + NH 3 groups in wool and COO − in betalains have a significant role in ensuring the red coloration, after dyeing.

Functionalization of Wool with Arginine
The functionalization of wool with arginine determines the enrichment of wool in NH 2 groups. Arginine is an amino acid that has the chemical structure shown in Figure 4. The newly acquired NH 2 groups by functionalization with arginine are protonated in the acidic environment used to dye the wool, thus showing attraction for the COO − /carboxylic groups in betalains. The red coloration of the arginine functionalized sample (FAW) is Polymers 2021, 13, 3867 9 of 23 much lower in intensity than in the case of FAAW and FEW ( Figure 5), which is probably due to the steric hindrance or simultaneous attraction of the dye molecule by the numerous protonated NH 2 groups from functionalized wool.

Functionalization of Wool with Arginine
The functionalization of wool with arginine determines the enrichment of wool in NH2 groups. Arginine is an amino acid that has the chemical structure shown in Figure 4. The newly acquired NH2 groups by functionalization with arginine are protonated in the acidic environment used to dye the wool, thus showing attraction for the COO − /carboxylic groups in betalains. The red coloration of the arginine functionalized sample (FAW) is much lower in intensity than in the case of FAAW and FEW ( Figure 5), which is probably due to the steric hindrance or simultaneous attraction of the dye molecule by the numerous protonated NH2 groups from functionalized wool. The red colors obtained after each functionalization of the wool, followed by dyeing, were evaluated using CIEL* a* b* measurements and color strength, K/S ( Figure 5). The functionalization/protonation of the wool in acidic environment and its coloring are confirmed by the FTIR analysis ( Figure 6). Untreated wool (spectrum 1) records the following absorption bands: 3296 cm −1 (N-H and O-H), 2877 cm −1 (-CH2), 1607 cm −1 (Amide I), 1527 cm −1 (Amide II), and 1244 cm −1 (Amide III). This information is close to that indicated in the literature [28][29][30]. The functionalization of the wool by protonation (spectrum 2) determines changes only at the level of the absorption bands of the free NH2 groups that become + NH3 (according to Equation (3)). In the untreated wool (spectrum 1), the free NH2 groups absorb at 1565 and 1546 cm −1 ; in protonated wool, the + NH3 groups absorb at 1581 cm −1 (asymmetric deformation) and 1535 cm −1 (symmetric deformation). In the range 3200-2800 cm −1 , the absorptions for + NH3 asymmetric and symmetric stretching are observed.
Without functionalization, the extract does not dye the wool regardless of the temperature used for dyeing and the concentration of the extract. Analyzing the structures of these dyes, it is observed that the functional groups that theoretically could be involved in dyeing wool are of the following types: COOH, OH, NH 2 , and SO 4 2− . Their number varies: 3-4 COOH groups, 2-5 OH groups, 1 NH 2 group, and 1 SO 4 2− group ( Table 2). The presence of polar groups such as COOH, OH, and NH 2 gives them an affinity for water and a certain solubility, which is why the components of betalains cannot be called pigments but dyes. It is known that pigments are water-insoluble dyes, which can dye any textile material only if they are attached to its surface by means of a binder. In this article, the way in which the aqueous solution of the dyes' mixture included in betalains can dye the wool materials has been researched. Without a previous functionalization, dyeing the wool with betalains is not possible. Without functionalization, the extract does not dye the wool regardless of the temperature used for dyeing and the concentration of the extract. Analyzing the structures of these dyes, it is observed that the functional groups that theoretically could be involved in dyeing wool are of the following types: COOH, OH, NH2, and SO4 2− . Their number varies: 3-4 COOH groups, 2-5 OH groups, 1 NH2 group, and 1 SO4 2− group ( Table 2).
The presence of polar groups such as COOH, OH, and NH2 gives them an affinity for water and a certain solubility, which is why the components of betalains cannot be called pigments but dyes. It is known that pigments are water-insoluble dyes, which can dye any textile material only if they are attached to its surface by means of a binder. In this article, the way in which the aqueous solution of the dyes' mixture included in betalains can dye the wool materials has been researched. Without a previous functionalization, dyeing the wool with betalains is not possible.
The number of COOH groups in the structure of a betalainic dye gives a certain acid character, which is highlighted by the pKa values. These groups have a significant role in the functionalization of betalains in acidic environments. The number of COOH groups in the structure of a betalainic dye gives a certain acid character, which is highlighted by the pKa values. These groups have a significant role in the functionalization of betalains in acidic environments.

Functionalization of Betalains in Acidic Environment
Acetic acid is added to the colored extract until a pH = 2 is reached; acetic acid is a weaker acid (pKa = 4.75) than betalains (pka = −2.3-2.12, Table 2), the latter will release protons from the COOH groups (Equation (6)), depending on the pH value (Figures 8 and 9). On the other hand, in the acidic environment, the protonation of the NH 2 groups from vulgaxanthin I (Equation (7)) takes place, which have affinity for the COO − groups from the wool, which they dye in yellow color (Equation (8)). Wool, which contains numerous amino acids, has many COO − and + NH 3 groups (Equation (2)) as functional groups. The protonated amino groups become dyeing sites. Electrovalent bonds are formed between these groups and COO − from deprotonated betalains (betacyanins and betaxanthin), and the wool will turn red (Equation (9)). Therefore, the final color of the wool dyed in an acid medium, with protonated extract (FAAD) will be yellowish-red, as a result of the combination of the two colors: yellow and red. Vulgaxanthin Polymers 2021, 13, x FOR PEER REVIEW 13 of 24 pH = 2 2 < pH < 3.5 3.5 < pH < 7 The ability of betalains to deprotonate also depends on pKa values; thus, betanin can generate mono-deprotonated, di-deprotonated, and tri-deprotonated forms in the presence of water molecules [32] (Figure 9). It is observed that deprotonation takes place at the COOH groups level, in the order C17, C17 + C2, C17 + C15, C17 + C15 + C2, and C17 + C15 + C2 + OH6. The degree of deprotonation increases with increasing pH.
In the study [33], the relative stability and bond dissociation energy (thermochemical parameters) of betanin in different deprotonation states has been calculated.
In the study [33], the relative stability and bond dissociation energy (thermochemical parameters) of betanin in different deprotonation states has been calculated.
In the study [33], the relative stability and bond dissociation energy (thermochemical parameters) of betanin in different deprotonation states has been calculated.
The relative stability decreases in the following order [33]: (a) In the mono-deprotonated series: Polymers 2021, 13, 3867 13 of 23 (b) In the di-deprotonated series: (c) In the tri-deprotonated series: The deprotonation energies in the mono-deprotonated series are indicated in the same work [33]  Even though the nitrogen atom at position 16 can deprotonate most easily, it does not become a dyeing site due to the steric effect that prevents interaction with protonated wool. Probably, the COO − group attached to C17 is responsible for the most intense dyeing.
The acidic environment influences both the deprotonation process of betalains ( Figure 8) and the value of absorption in the UV-VIS domain ( Figure 10). Even though the nitrogen atom at position 16 can deprotonate most easily, it does not become a dyeing site due to the steric effect that prevents interaction with protonated wool. Probably, the COO − group attached to C17 is responsible for the most intense dyeing.
The acidic environment influences both the deprotonation process of betalains (Figure 8) and the value of absorption in the UV-VIS domain ( Figure 10). In the case of this extract, blue shift appears, meaning that the hypsochromic effect is probably determined by the changing of solvent's polarity. The wavelength where the absorption is maximum for betacyanins decreases as the pH increases (λmax = 540.0 nm at pH = 1; λmax = 535.0 nm at pH = 2; λmax = 530.0 nm at pH = 4.5; λmax = 535.0 nm at pH = 7). Maximum absorption decreases as the pH value decreases (hypochromic effect) because at a strong acid pH, there is a degradation of betanin to betanidine (which becomes the main form, including its deprotonated forms) but also the formation of betalamic acid and cyclo-dopa-5-O-glycoside.
The literature [34] indicates that betanidine has maximum absorption at 540 nm, betanin at 535 nm, indicaxanthin at 480 nm, and cyclo-dopa-5-O-glycosides at 270 nm. According to Figure 10, it results that at pH ≤ 2, the aglycons form of betanin is formed, meaning betanidine as result of a hydrolysis process of main betacyanin. Another effect is the increase in absorption from 270 nm, which confirms a certain degradation of betalains in a strongly acidic environment.
The conversion of betanin to a strong acid medium in betanidin has been consistent with other studies in the literature [35,36]. The same effect is obtained at high temperatures or in the presence of a gluco-oxidase (EC 3.2.1.21), and the process is called deglucosylation [35]. In the case of this extract, blue shift appears, meaning that the hypsochromic effect is probably determined by the changing of solvent's polarity. The wavelength where the absorption is maximum for betacyanins decreases as the pH increases (λ max = 540.0 nm at pH = 1; λ max = 535.0 nm at pH = 2; λ max = 530.0 nm at pH = 4.5; λ max = 535.0 nm at pH = 7). Maximum absorption decreases as the pH value decreases (hypochromic effect) because at a strong acid pH, there is a degradation of betanin to betanidine (which becomes the main form, including its deprotonated forms) but also the formation of betalamic acid and cyclo-dopa-5-O-glycoside.
The literature [34] indicates that betanidine has maximum absorption at 540 nm, betanin at 535 nm, indicaxanthin at 480 nm, and cyclo-dopa-5-O-glycosides at 270 nm. According to Figure 10, it results that at pH ≤ 2, the aglycons form of betanin is formed, meaning betanidine as result of a hydrolysis process of main betacyanin. Another effect is the increase in absorption from 270 nm, which confirms a certain degradation of betalains in a strongly acidic environment.
The conversion of betanin to a strong acid medium in betanidin has been consistent with other studies in the literature [35,36]. The same effect is obtained at high temperatures or in the presence of a gluco-oxidase (EC 3.2.1.21), and the process is called deglucosylation [35].
The characterization of the extract functionalized in acidic medium was performed using HPLC analysis.
The original pH of the betalains extracts in water was pH = 5.7. In the strong acid medium (pH ≤ 2), the betanin can isomerize (to isobetanin or neobetanin) and hydrolyze (to betanidin) [34]. The acid-functionalized extract component, determined by HPLC-MS analysis, is shown in Table 3, compared to the non-functionalized extract component. It is observed that betanin (551 on the MS spectrum) was converted to betanidine and isobetanidin (m/z = 389) when pH = 2 ( Table 3).
The results of the HPLC analysis (retention times and identified components of betalains) depend on the content of betalains and the performance of the column/device [12,[36][37][38][39].

Esterification of Betalains with Ethanol
Esterification of betalains with ethanol (FED) in an acidic medium (pH = 3) depends on the type of acid used [36]: if HCl (pKa = −6) is used, then the esterification effect is high. It means that most COOH groups in betalains esterify [36]; thus, becoming blocked will not attract + NH 3 groups from the activated wool. In this case, the wool will be dyed in yellow color as a result of the protonation of NH 2 from vulgaxanthin I and the formation of ionic bonds with the COO − groups from the wool. If acetic acid is used as the acid medium required by the esterification reaction, then the esterification yield is lower, which causes the final color to be red-yellow. It turns out that the COO − groups in betalains have a significant role in dyeing wool, they being the groups that interact with the dyeing sites in activated wool.

Functionalization of Betalains with Arginine
The functionalization of betalains with arginine (FAD in Figure 11) and then their use in the dyeing of wool in acidic environments causes a weak red color due to the electrostatic attraction between + NH 3  Dyeing the wool with functionalized extract by keeping it in an acidic environment is also confirmed by FTIR analysis (Figure 12). The functionalization of betalains with an organic acid, acetic acid (pKa = 4.75), determined the deprotonation of some COOH groups (up to COO − ) and the protonation of NH2 groups in Vulgaxanthin I. This behavior is justified by the pKa values of betalains (e.g., pKa for betanin = 1.46) which, in the presence of acetic acid, behave as strong acids, yielding protons. These attach to the free NH2 groups in Vulgaxanthin I, converting them to + NH3. Thus, zwitterionic forms (H3N + -R-COO − ) appear whose presence is proved by the peaks of 1594 cm −1 (COO − asymmetric stretching), 1446 cm −1 (COO − symmetric stretching), 3102-3000 cm −1 ( + NH3 asymmetric stretching), 2985 cm −1 ( + NH3 symmetric stretching), 1641 cm −1 ( + NH3 asymmetric deformation, weak absorption band), 1558 cm −1 ( + NH3 symmetric deformation), and 1023 cm −1 (CN stretching). On the other hand, in the case of other betalains (except Vulgaxanthin I), in an acid medium, the dyes exist in the form of R-COO − . These COO − ions from betalains interact with the + NH3 groups from wool, leading to ionic bonds and a colored wool (Equation (9)).
Dyeing the wool with functionalized extract by keeping it in an acidic environment is also confirmed by FTIR analysis (Figure 12). Dyeing the wool with functionalized extract by keeping it in an acidic environment is also confirmed by FTIR analysis (Figure 12). The functionalization of betalains with an organic acid, acetic acid (pKa = 4.75), determined the deprotonation of some COOH groups (up to COO − ) and the protonation of NH2 groups in Vulgaxanthin I. This behavior is justified by the pKa values of betalains (e.g., pKa for betanin = 1.46) which, in the presence of acetic acid, behave as strong acids, yielding protons. These attach to the free NH2 groups in Vulgaxanthin I, converting them to + NH3. Thus, zwitterionic forms (H3N + -R-COO − ) appear whose presence is proved by the peaks of 1594 cm −1 (COO − asymmetric stretching), 1446 cm −1 (COO − symmetric stretching), 3102-3000 cm −1 ( + NH3 asymmetric stretching), 2985 cm −1 ( + NH3 symmetric stretching), 1641 cm −1 ( + NH3 asymmetric deformation, weak absorption band), 1558 cm −1 ( + NH3 symmetric deformation), and 1023 cm −1 (CN stretching). On the other hand, in the case of other betalains (except Vulgaxanthin I), in an acid medium, the dyes exist in the form of R-COO − . These COO − ions from betalains interact with the + NH3 groups from wool, leading to ionic bonds and a colored wool (Equation (9)).
The COO − groups of betalains and COOH of wool absorb at 1697 cm −1 (C=O stretching), 1674 cm −1 (C=O stretching, internally bonded), 3374 cm −1 (dimer OH), and 3482 cm −1 (in phenols ArO-H, H bonded) (Figure 12). Figures 5 and 11 show that the most intense red colors were obtained when acetic acid was used to functionalize wool (FAAW) and betalains (FAD). Figure 13a shows that the increase in the volume of extract used to dye the unprotonated wool, at 40 • C, for 2 h leads only to the staining of the wool, the lightness values of L* remaining extremely high (around 78). The decrease in the lightness and the coloring of the wool are very obvious when the wool has been protonated/activated beforehand, at pH = 2. In terms of color, the control sample registers light shades of yellow, and red is almost imperceptible. However, the protonated wool (30 min at pH = 2 with acetic acid) is dyed intensely red, all the more so as the volume of the dyeing solution is higher. This fact is highlighted by both the values of a* and the color strength (K/S = 3.5 in Figure 13b) after a 30 min protonation of the wool and the dye, respectively. The COO − groups of betalains and COOH of wool absorb at 1697 cm −1 (C=O stretching), 1674 cm −1 (C=O stretching, internally bonded), 3374 cm −1 (dimer OH), and 3482 cm −1 (in phenols ArO-H, H bonded) (Figure 12). Figures 5 and 11 show that the most intense red colors were obtained when acetic acid was used to functionalize wool (FAAW) and betalains (FAD).

The Best Results from Dyeing Wool
3.3.1. Protonated/Activated Wool Dyeing (FAAW) Figure 13a shows that the increase in the volume of extract used to dye the unprotonated wool, at 40 °C, for 2 h leads only to the staining of the wool, the lightness values of L* remaining extremely high (around 78). The decrease in the lightness and the coloring of the wool are very obvious when the wool has been protonated/activated beforehand, at pH = 2. In terms of color, the control sample registers light shades of yellow, and red is almost imperceptible. However, the protonated wool (30 min at pH = 2 with acetic acid) is dyed intensely red, all the more so as the volume of the dyeing solution is higher. This fact is highlighted by both the values of a * and the color strength (K/S = 3.5 in Figure 13b) after a 30 min protonation of the wool and the dye, respectively.

Wool Dyeing Results with Acid-Functionalized Dye (FAAD)
When the extract has not been protonated, regardless of the volume used for dyeing, the wool does not color because there are no interactions between wool and betalains. Achieving an acidic pH causes the deprotonation of carboxyl groups that can be attracted to + NH 3 groups in wool. The reddest color is obtained at pH = 3 when a* = 28.13, b* = 12.66, and K/S = 3.0158.
Dyeing with a large volume of extract (100 mL) with pH = 7 ( Figure 14) led to the lowest color strength, which shows that the pH value has a major influence in the process of dyeing the wool. Achieving an acidic pH causes the deprotonation of carboxyl groups that can be attracted to + NH3 groups in wool. The reddest color is obtained at pH = 3 when a* = 28.13, b* = 12.66, and K/S = 3.0158. Dyeing with a large volume of extract (100 mL) with pH = 7 ( Figure 14) led to the lowest color strength, which shows that the pH value has a major influence in the process of dyeing the wool. The use of 100 mL extracts with different pH values led to red colors characterized by lower lightness at lower pHs. Therefore, the higher color strengths and the strongest shades of red were obtained at low pH, which was due to the deprotonation of the extract ( Figure 15). The use of 100 mL extracts with different pH values led to red colors characterized by lower lightness at lower pHs. Therefore, the higher color strengths and the strongest shades of red were obtained at low pH, which was due to the deprotonation of the extract ( Figure 15). The color variations are generated by the changing ratios of betaxanthin and betacyanin content [34]. The color of the dyed wool samples varies depending on the pH of the dyeing medium, as follows: red-dark at pH ≤ 2, strong red at pH = 3, bright-red at pH 4, and very slow red as the pH = 6.
For an alkaline pH, the color of the dyed wool is yellow-brown because the betalains were degraded by hydrolysis.
Regarding the shade, Figures 16 and 17 show that FAAD is less red than FAAW, with more yellow, which justifies the effect of the acid: the deprotonation of carboxylic groups but also a slight degradation of betacyanins, with the formation of betalamic acid (yellow). However, the color strengths are extremely close. The color variations are generated by the changing ratios of betaxanthin and betacyanin content [34]. The color of the dyed wool samples varies depending on the pH of the dyeing medium, as follows: red-dark at pH ≤ 2, strong red at pH = 3, bright-red at pH 4, and very slow red as the pH = 6.
For an alkaline pH, the color of the dyed wool is yellow-brown because the betalains were degraded by hydrolysis.
Regarding the shade, Figures 16 and 17 show that FAAD is less red than FAAW, with more yellow, which justifies the effect of the acid: the deprotonation of carboxylic groups but also a slight degradation of betacyanins, with the formation of betalamic acid (yellow). However, the color strengths are extremely close. The color variations are generated by the changing ratios of betaxanthin and betacyanin content [34]. The color of the dyed wool samples varies depending on the pH of the dyeing medium, as follows: red-dark at pH ≤ 2, strong red at pH = 3, bright-red at pH 4, and very slow red as the pH = 6.
For an alkaline pH, the color of the dyed wool is yellow-brown because the betalains were degraded by hydrolysis.
Regarding the shade, Figures 16 and 17 show that FAAD is less red than FAAW, with more yellow, which justifies the effect of the acid: the deprotonation of carboxylic groups but also a slight degradation of betacyanins, with the formation of betalamic acid (yellow). However, the color strengths are extremely close.

Comparison between FAAW and FAAD samples
The quality of a dyed material depends on the solidity of its shade, which can be verified by performing certain tests. These tests aim to determine the resistance of textile colors to household/commercial washing (when using a reference detergent), to dry or wet rubbing, to light and to repeated household washing. The results of color-fastness tests for samples functionalized in an acidic environment (FAAW and FAAD) are shown in Table 4. With the exception of light fastness, all the other results obtained are very good, being comparable with the values obtained after the dyeing processes of many natural fibers,

Comparison between FAAW and FAAD Samples
The quality of a dyed material depends on the solidity of its shade, which can be verified by performing certain tests. These tests aim to determine the resistance of textile colors to household/commercial washing (when using a reference detergent), to dry or wet rubbing, to light and to repeated household washing. The results of color-fastness tests for samples functionalized in an acidic environment (FAAW and FAAD) are shown in Table 4. With the exception of light fastness, all the other results obtained are very good, being comparable with the values obtained after the dyeing processes of many natural fibers, performed with synthetic dyes [40][41][42]. This behavior can be explained based on the penetration of betalains inside the wool fiber with which it formed strong bonds.
The ionic bonds are the result of the attraction between the electric charges of opposite sign; charges appeared in deprotonated betalains (COO − ) and protonated/activated wool ( + NH 3 ), as a result of the functionalizations in an acidic environment. Functionalized betalains behave as high-affinity anionic dyes for the protein support, ensuring very good results at washing and rubbing, such as those included in Table 4.
Color fastness to washing was assessed in terms of changing the color of the dyed sample and staining the two undyed samples, as result of the transfer of dyes from the dyed sample to those undyed, as follows: - The dyed FAAW sample was assessed with a grade of 5 on the gray scale for assessing the change in color, after performing the color fastness to washing test; - The undyed cotton and wool samples that were attached on each side of the dyed sample (FAAW and FAAD, respectively) obtained grades of 5 on the gray scale for staining assessment; this indicates that the ionic bonds established between betalains and wool remained intact throughout the washing, even under the action of the detergent and the impact forces exerted by the steel balls used in the color fastness to washing test.
Color fastness to rubbing testing involves evaluating the transfer of dye from the dyed sample to the standard rubbing cloth under dry and wet conditions [41].
The FAAW and FAAD samples have excellent color fastness to dry rubbing (grades of 5) and good values (grades of [4][5] to wet rubbing, on the gray scale for staining assessment.
Regarding the color fastness to light, it is known that natural dyes in general and betalains in particular have a sensitivity to exposure to light [43,44]. The chemical structure of the chromophore is responsible for color loss under the action of light.
The blue wool scale was used to assess the color fading of the dyed tested samples as a result of light action on the chemical structure of dyes.
In Table 4, the values from the light fastness test indicate a certain change in the color of the samples as an effect of light/energy exposure. The light deteriorates the stability of the betalains, leading to the color fading of the tested samples; probably, light affects the chromophores of betaxanthins and betacyanins. However, according to the ISO 105-B02: 2013 standard, grades 4 or 5 on the blue wool scale indicated a fair light fastness, and the betalains will remain unchanged for many years if it is used with additional protection against exposure to light.
The results of the Home Laundering test (SM SR EN ISO 105-CO6: 2013) indicate excellent values for durability because the mass losses after 5 washing cycles are extremely small, representing 1.55% in the case of the FAAW sample and 1.64% in the case of the FAAD sample. In both samples, the ionic bonds between betalains and wool do not break during repeated washings. The small mass losses are probably caused by the dislocation of those dye molecules that failed to get close enough to the dyeing sites to form ionic bonds, but they formed superficial bonds with the protein support.
The comparison of FAAW and FAAD samples must be done taking into account the following aspects:

•
In terms of color strength, wool functionalization is better because the FAAW sample has K/S = 5.71 higher than the FAAD sample (K/S = 5. In terms of color-fastness properties, both functionalizations lead to very good results in washing and rubbing and to acceptable results in the light fastness test ( Table 4). The values of these tests can be criteria for choosing the type of functionalization, depending on the destination of the dyed fabric; • In terms of durability for repeated household washes, both functionalizations indicate excellent results.
In conclusion, both variants based on functionalization in an acid environment are good, indicating that the choice of the functionalization process should be made depending on the destination of the dyed material and the requirements/preferences of the client.

Conclusions
Normally, the red extract obtained from beetroot peels does not generate the red color of the wool because there is no affinity between the two partners in the dye bath; betalains (betacyanins and betaxanthins) and wool contain the same types of functional, non-ionized groups (COOH and NH 2 ). The ionization of these groups to COO − and + NH 3 occurs only during deprotonation and activation processes. Thus, there are attractions between these ionized groups with the formation of electrovalent bonds and the generation of a red coloration of the wool.
The acidic environment is responsible for the phenomena of betalains deprotonation and wool activation; strong inorganic acids do not lead to the intensifications of the red color. Esterification functionalizations, compared to those performed with acetic acid, led to lower color strengths, thus highlighting the essential role of COOH groups during dyeing. Enrichment with amino groups due to amination functionalizations has led to much lighter red shades, which means that NH 2 groups do not play a major role in the process of dyeing the wool. The only solution that favors the strong red coloration of the wool is the functionalization with acetic acid. The pH value influences both the content of betalains and the color characteristics of the dyed wool.