1 Introduction

The compounds of anthocyanin water soluble and polar derivatives which have a large membrane bound vesicle in a cell’s cytoplasm can be seen in different colors in an expanded range of colors such as red, purple, blue or black [1,2,3]. The aromatic cyclic group of anthocyanins are a part of fundamental compounds as flavonoids synthesized via the phenyl propanoid pathway which are discovered in roots, stems, leaves, flowers, and fruits. The portion of the most common anthocyanidins in fruits and vegetables including cyanidin, delphinidin, pelargonidin, peonidin, malvidin, and petunidin is 50%, 12%, 12%, 12%, 7%, and 7%, respectively [4]. In nature, cyanidin in berries is a reddish-purple major pigment and other red-colored vegetables such as red sweet potato and purple corn [5, 6]. Delphinidin (Dp) has a chemical characteristic similar to most of the anthocyanidins which appears as a blue-reddish or purple pigment in the plant like the blue hue of flowers which is due to the delphinidin pigment [7]. But pelargonidin is different from most of the anthocyanidins as a red-colored pigment [8]. Besides, pelargonidin donates an orange hue to flowers and red to some of the fruits and berries [9, 10]. The investigations on foods and plants consisting of antioxidant characteristics have begun toward indicating the multiple data exhibiting their effects in the reduction of risk through chronic sicknesses on the members in the world [11,12,13,14].

Fruits and vegetables have the chemical structures linked to health promotions showing several antioxidants like vitamins (C and E), carotenoids and flavonoids and their characteristics including molecular weight, dimensional conformation, biochemical and physical characteristics of these compounds conduct them to react with different points in many live organisms [15,16,17].

The most advantage of nutrition in anthocyanin pigments through the human life shows the ability of health benefits on various sicknesses like cancer, Alzheimer disease, obesity, neurological diseases, inflammation and diabetes. The compounds of anthocyanin pigments are a big family of polyphenolic molecules as flavonoids that are founded by plants as the part of their secondary metabolism. Flavonoids are divided into different subclasses based on their chemical characteristics and share a popular carbon basis called flavylium ion chain with different rings [18, 19].

The Glycosylated anthocyanidins groups which are linked to the skeleton of anthocyanin have the highest common type of pigments in plants. So, it can be found a variety of anthocyanins due to complex glycosylation models over some aglycones. These compounds are largely colored at low pH, through the eight conjugated double bonds exhibiting a positive charge of the structure that show various colors due to various substitutions in the aromatic cyclic chains [20,21,22,23,24]. Physicochemical properties of anthocyanin structures are affected by the particle substitutions due to changing the size, polarity and solubility in water toward an expanded range of compounds in nature [25]. It is important how the plants arrange the structure or how chemistry of the anthocyanins produces an expanded range of colors often in the visible spectrum [26]. Moreover, for indicating the color and stability of anthocyanins through the chemical and other photochemical properties, several new anthocyanin-inspired dyes and pigments have been prepared for applying in cosmetics or foods with pleasant colors and stability in comparison to the color and stability of natural anthocyanins [27]. The scientists have explained that the color of natural anthocyanins is sensitive to concentration of hydrogen cation in the solution (weak acidic media are appropriate). Around “pH = 3”, changing the color generates the colored anthocyanin cation, AH+, which alters into colorless or near-colorless samples (Scheme 1) [28].

Scheme 1
scheme 1

a Qara Qat fruit (redcurrant) of Arasbaran vegetation in Iran, b Basic anthocyanin structure [28]

Arasbaran vegetation zone is a very rich area in Iran which has most of Iran's herbaceous species including medicinal, ornamental and edible products. Most of the trees in this area are oak, kikem, crimson, barberry, wild pomegranate, wild apples, wild pears and raspberries, and cucumbers, along with fruits called Qara Qat (redcurrant), which is very tasty and sour, and are seasoned in the middle of summer (Scheme 1a). In acidic media, anthocyanin appears as a red pigment while blue pigment anthocyanin appears in alkaline media. Anthocyanin is considered as one of the flavonoids with a positive charge at the oxygen atom of the (C)-ring (Scheme 1b).

Glińska and his coworkers have illustrated the decrease of potential toxic effects of anthocyanins through separating metal cation chelation of these compounds [30]. For being capable of forming metallic cation chelation and expressing purple blue colors, the molecule of anthocyanin must tolerate at least 2 free hydroxyl groups on the (B)-ring. When the cation approaches the anthocyanins, it plays a role to compete with the hydrogen ions for the binding sites (Scheme 2) [31].

Scheme 2
scheme 2

Pigment clusters of anthocyanin-cation chelation including [anthocyanin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)] through the (B)-ring for three anthocyanins of Cyanidin, Delphinidin and Petunidin [31]

The chelation of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+) metallic cations by cyanidin, delphinidin and petunidin has been more extensively studied due to its relationship with the blue coloration of hydrangea floral compounds. Relatively, stable complexes between delphinidin and aluminum cation have been investigated to form acidified ethanol and a wide pH range [31]. In these structures, color expression of the delphinidin began red becoming violet and then blue as pH and anthocyanin concentration were maintained, but the aluminum cation content increased. Chelation of aluminum cation with cyanidin has been identified to develop in aqueous samples, pH (2–5) which indicate violet colorations [32].

The spectral responses of these cyanidin complexes jointed to metal cation chelation were more difficult to distinguish in the value of pH 7 (Scheme 3). It has been obvious that large Bathochromic shifts have existed in the value of pH 6, but the appeared changes in maximum λ in neutral pH were small specially with enhancing metal ion concentrations. Besides, the junction of anthocyanidins to Fe3+ cation was a little larger than to aluminum cation based on other investigations. Anthocyanins can gain a maximum amount of λ by these chemical complexes based on the bathochromic replies. Anthocyanin has indicated the maximum value of λ in the range of pH (7, 8) and has showed the hypochromic replies in the higher pH [33, 34].

Scheme 3
scheme 3

The spectral responses of the cyanidin derivatives to metal ion chelation of Al3+ & Fe3+ in pH = 7. Buchweitz and his co-workers compared the stability of aluminum cation chelates of delphinidin-3-rutinoside in American eggplant to that of acylated cyanidin glycosides, red cabbage, as literature is limited about stability of acylated anthocyanin metal chelates

It has been seen the changes in the observable absorption of the spectra for the colorful pigments existent in solution, but the changes of maximum λ of anthocyanin by metallic cation chelation were small and sometimes negative (Scheme 3).

They explained that anthocyanin metallic complexes are stronger to heat treatment rather than light exposure. Degradation of delphinidin-aluminum chelates seems jointed to concentration with rate decreasing of time, in agreement with recent researches [35].

In the recent researches, it has been approved that aluminum cation in metalloanthocyanins is capable of inducing blue color development with delphinidin, having a pyrogallol moiety on the (B)-ring, but it is not enough to lead to blue colors with cyanidin derivatives [36].

Therefore, a theoretical study of the linkage between the electronic and chemical structure of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+) metallic cations by cyanidin, delphinidin and petunidin and their stability has been followed using theoretical and computational methods in two media of gas and water at 300 K based considering Beer Lambert law for discovering different usages of these structures such as coloring agents in pharmaceutical products and foods. Moreover, it has been illustrated the structural properties of [anthocyanin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)] cluster chelation in Iranian Qara Qat fruit by quantum chemical methodologies as the computational design and the simulated class to estimate the physicochemical characteristics of these chelated pigments with metal ions through conserving their stability and color tide.

2 Perspective of cluster chelation

The chelation of anthocyanins of cyanidin, delphinidin and petunidin with (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+) metallic cations in Iranian Qara Qat fruit has been studied in this investigation by forming relatively stable complexes in the weak acidified medium with a different pH range. Thus, a series of quantum theoretical approaches has been done for finding the optimized coordination of [anthocyanin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)] cluster chelation in Iranian Qara Qat fruit with IR computations and following the Beer lambert Rule using Gaussian09 program package [37].

It has been declared that polarization functions into the applied basis set in the computation always introduce us an important achievement on the modeling and simulation theoretical levels. Normal mode accomplishment is the verdict of harmonic potential wells by analytic methods which maintain the motion of all atoms at the same time in the vibration time scale leading to a natural explanation of molecular vibrations [38,39,40,41,42,43].

First, optimized geometry coordination of [cyanidin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)] cluster chelation in Iranian Qara Qat fruit (Fig. 1) through their (B)-ring in two media of gas and water at 300 K has been evaluated in Table 1.

Fig. 1
figure 1

The schematics of ab initio optimized coordination [anthocyanin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)] through representing the bond length of oxygen–Mn+ and bond angle of oxygen–Mn+–oxygen calculated by m062x/cc-pvdz pseudo = lanl2 in solvation optimized with QM/MM model of anthocyanins’ family inside 500 water molecules as solvent, including 3 levels of m06-HF for the high (H) layer, Pm3MM semi empirical for the medium and Monte Carlo for low layers at 300 K

Table 1 Optimized geometry with m062x/cc-pvdz pseudo = lanl2 for various [anthocyanin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)] cluster chelation in Iranian Qara Qat fruit extracted of Fig. 1

Besides, charge electron transfer and thermodynamic properties of [anthocyanin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)] cluster chelation in Iranian Qara Qat fruit through their (B)-ring in two media of gas and water at 300 K have been evaluated and compared to each other by different concentration of H+ in a simulated solvent model (Fig. 2).

Fig. 2
figure 2

Solvation optimized of [anthocyanin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)] in Iranian Qara Qat fruit with QM/MM model of anthocyanins’ family in gas phase (left side) and inside water box periodic box (right side) as solvent model of three stages of m06-HF for the high (H) layer, Pm3MM semi empirical for the medium and Monte Carlo for low layers at 300 K

In this work, the data have been achieved from thermodynamic parameters of ΔG, ΔH and ΔS for the solute–solvent model of [anthocyanin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+] cluster chelation in Iranian Qara Qat fruit. The solved data at 300 K have been analyzed compared to gas phase.

Therefore, for accomplishing a stable structure of [anthocyanin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)] cluster chelation of cyanidin, delphinidin, and petunidin of colorful pigments in Iranian Qara Qat fruit, geometry optimization plus frequency calculations were done; the frequency and intensity of the vibrational modes were calculated with the quantum mechanics of theoretical method, and the principal vibrational modes were analyzed by their changes of Gibbs free energy in water compared to water medium at 300 K. Thermochemistry analysis follows the frequency and normal mode data. The zero-point energy output in Gaussian-09 has been expanded and corrected as: thermal correction to energy, thermal correction to enthalpy and thermal correction to the Gibbs free. In addition the total energies can be calculated as: sum of electronic and zero point energies, sum of electronic and thermal energies, sum of electronic and thermal enthalpies and sum of electronic and thermal Gibbs free energies. The theoretical calculations were done at various levels of theory to gain the more accurate equilibrium geometrical results and IR spectral data for each of the identified compounds. It is supposed that an additional diffuse and polarization functions into the basis set applied in the computation conduct us to the magnificent progress on the results of theoretical methods. The simulation indicates the approaches which produce a common template of a model at a special temperature by computing all physicochemical properties among the partition function [39].

3 Computational details

In this work, molecular dynamics, (MD), methods produce a series of time-correlated points in phase space in propagating a starting set of coordinates and velocities according to Newton’s second equation by a series of finite time steps on [anthocyanin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)] cluster chelation in Iranian Qara Qat fruit. Unlike single point and geometry optimization calculations, molecular dynamics calculation account for thermal motion (Fig. 3). Molecular dynamics (MD) includes conformation theories, thermodynamic parameters and movement rules of the molecular machine and kinetic energy to the potential energy surface. If a set of initial situations is explained, then Newton's rules cause the molecular machine to raise a path that is indicated as the molecular dynamics path. This path climbs the potential level in ways that are of important interest to unravel. Both the final point of a path and the trajectory taken to get there are of credit in molecular modeling.

Fig. 3
figure 3

Optimized energy of anthocyanin-cation metal chelation in Iranian Qara Qat fruit

Molecular dynamics simulations, MD, estimate the future velocities and positions of atoms on the basis of their current velocities and positions. At first, the simulation identifies the force on an atom, Fi, as the function of time, toward a negative gradient of the potential energy (Eq. 1);

$${\text{F}}_{{\text{i}}} \, = \partial {\text{V}}/ \, \partial {\text{r}}_{{\text{i}}} ,$$
(1)

V = function of potential energy and ri is the position of atom i. Then, we can distinguish the acceleration, ai, of an atom by dedicating the force action to it by the atom mass (Eq. 2);

$${\text{a}}_{{\text{i}}} = {\text{F}}_{{\text{i}}} /{\text{m}}_{{\text{i}}} .$$
(2)

The variety of velocities, vi, is the integral of acceleration over time. The variation in the position, ri, is the integral of velocity over time. Kinetic energy, K, is determined as the velocities of the atoms (Eq. 3) [44, 45];

$${\text{K}} = 1/2\sum\limits_{{{\text{i}} = 1}}^{{\text{N}}} {{\text{m}}_{{\text{i}}} {\text{v}}_{{\text{i}}}^{2} } .$$
(3)

The total energy of the system, called the Hamiltonian, is the sum of the kinetic and potential energies (Eq. 4);

$${\text{H }}\left( {{\text{r}},{\text{p}}} \right) \, = {\text{ K }}\left( {\text{p}} \right) \, + {\text{ V }}\left( {\text{r}} \right)$$
(4)

where r is the set of Cartesian coordinates and p is the momenta of the atoms.

The spectral patterns of [cyanidin-(Mg2+, Ga3+, Sn2+, Cr3+ and Fe3+)] metallic cations] are shown in Fig. 4. The control patterns of these complexes were characterized by two peaks at 280 nm and 520 nm and their spectral intensities were significantly changed. A significant decrease at 520 nm and a significant increase at 280 nm, in a sequence of [cyanidin-(Ga3+  > Mg2+  > Cr3+ > Fe3+)] were observed.

Fig. 4
figure 4

The effects of metal chelation on the UV–Vis spectral characteristics of cyaniding–Mn+ (M = Mg2+, Fe3+, Al3+, Ga3+) in Iranian Qara Qat fruit

It has been obvious that each site of the complexes including cyanidin-[Mg2+, Al3+/Cr3+, Fe3+,Ga3+] have been minimized by ab-initio method via (DFT),density functional theory, which consists of ECP calculations with theoretical levels of lanl1, lanl2 basis sets and pseudo key due to the metal elements. Besides, those structures have been estimated via QM/MM complex method using an ONIOM level. In our study, the varieties of theoretical methods are discussed due to comparing density and energies with two approaches of “OPLS” and “AMBER” via Monte Carlo (MC) optimization. Moreover, a hyperchem professional (7.01) program pancake has been used for some extra keywords such as “PM3MM” and “PM6” which is pseudo = lanl2.

The density function method (DFT) with the “van der Waals” densities functional was illustrated due to modeling of solvent compounds interactions. All minimizations of solvent effects were done by Gaussian09 package. The corrected results were calculated using the theoretical levels of “m062x”, “m06-L”, and “m06” for chelation of cyanidin metallic cation effect. The “m062x”, “m06-L” and “m06-HF methods have a suitable correlation in non-bonded calculations between these structures and solvent molecules. The ONIOM theoretical levels have been performed through three levels of high “H”, medium “M” and low “L” calculations which The density function method (DFT) methods were applied for the high “H” layer and the semi empirical method of “PM6” and “PM3MM” was applied for the medium and finally Monte Carlo (MC) for low layers, respectively.

The Polarizable Continuum Model, “PCM”, is the most popular “SCRF” model based on apparent surface charges diffusing to discuss non-electrostatic impacts with scaled point theory [46, 47].

Kirkwood developed [48, 49] the most common levels of the “SCRF” method of multiple expansions with an algorithm based on the use of a strict multipolar expansion up to the 7th order by Frisch that is currently available at both semi-empirical and ab initio levels of theory.

Onsager [50] and have arranged an intention for various continuum solvation examples of a multiple expansion, “MPE”, of the solute charge distribution [51].Then, Wiberg and co-workers improved Onsager-SCRF for the Gaussian program [52].

Solvation is illustrated in terms of a dipole moment with an iterative path of quantum mechanics calculations on the structure. The perspective of Onsager-SCRF was one to directly apply almost all of the computational characteristics of Gaussian program. The dielectric continuum models like the self-consistent reaction field approach are efficient in applying account the long range of solute–solvent electrostatic interactions and the effect of solvent polarization. Another theoretical level is combination of molecular mechanics (MM) solvent molecule with quantum mechanics level (QM) for electronic structure of the solute molecule named “QM/MM” which can modify deficiency of the dielectric continuum model [53, 54].

Absorbance is a direct measure of how much light is absorbed by our samples in this work. As the absorbance can take on values between 0 (at 100% Transmittance) and about 2.0 (at 1% Transmittance); thus large values of absorbance are associated with very little light passing entirely through the sample and small values of absorbance are associated with most of the light passing entirely through the samples. We could imagine two interesting situations. First one, if we pass a beam of light of the appropriate wavelength through a fairly dilute solution, second, we could imagine that the photons will encounter a small number of the absorbing by the metal ions of chemical species such as metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+), so we might expect a high % transmittance and a low absorbance. Alternatively, if we pass the same beam of light through a highly concentrated solution, we could imagine that the photons will encounter a large number of the absorbing chemical species including [anthocyanin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)].

In this article, the light goes due to a number of molecules as the system, the anthocyanidin pigments appear the spectrum of molecular transformations with the pH varieties, and generating variation in colors; (1) (Flavylium cation) pH˃3 red, (2) Carbonyl pseudo base (pH = 4–5 colorless), (3) the hydro base (pH = 6–7 violet), (4) an-hydro base anion (pH = 7–8 blue), (5) chalcone (pH ˃ 8 yellow)]”., therefore \(\frac{{I_{0} }}{{I_{1} }} = \frac{{I_{2} }}{{I_{3} }} + \frac{{I_{3} }}{{I_{4} }} + \frac{{I_{4} }}{{I_{5} }} = n\). This qualitative relationship is defined by a function for light intensity: \(I_{i} = I_{0} n^{ - i}\) or \(I_{i} = 10^{{ - i\log_{n}^{10} }}\) which “\(i\)” is a number of species in the mechanism. The final expression might be normalized for each system with light path-length (\(l\)): \(I = I_{0} 10^{ - kl}\), which k is the coefficient depending on concentration, c, and the molar absorptivity, ε: consequently, k = ε × c (Scheme 4).

Scheme 4
scheme 4

The relation of light intensity in the Beer Lambert law with concentration aspect of metal ion chelation of anthocyanin’s family like anthocyanin-Mn+, in water in Iranian Qara Qat fruit

A Hyperchem model has been applied for calculation the pH [Scheme 5] using a box via various dimensions including N molecules H3O+. The volume (V) of each box has been yielded by multiple of V = \(a \times b \times c\) and the pH has been calculated via concentration of [H+] = N/V with pH = − log [H+].

Scheme 5
scheme 5

The 112 number of H3O+ around the Cy-Sn in a box with dimension a = 15, b = 15 and c = 15 angstrom for calculation the concentration of [H+] and also estimating of the related pH

4 Results and discussion

In this project, three anthocyanin pigments of cyanidin (Cy), delphinidin (Dp), and petunidin (Pt) have been estimated using theoretical methods to measure the effect of metal chelation of different plants including factorial excess of metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+) in different pH and evaluated by IR spectroscopy using Gaussian09 in two media of gas and water at 300 K (Figs. 1, 2).

The thermodynamic properties of ∆G, ∆H, ∆S, Electronic Energy and Core–Core Interaction, frequency spectrums, anthocyanin concentration, and pH determined final color and intensity (Table 2 and Fig. 5a, b) [37, 55]. The difference of ∆HR among [anthocyanin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)] cluster chelation in Iranian Qara Qat fruit (Fig. 5b) has been unraveled due to double bonds and carbonyl groups through the chelation of (B)-ring for Cy, Dp and Pt anthocyanins in two media of gas and water.

Table 2 Thermodynamic properties of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+) metallic cation chelation for cyanidin, delphinidin, petunidin pigments in two media of gas(g) and water (w) at 300 K, calculated by m062x/cc-pvdz pseudo = lanl2
Fig. 5
figure 5

a Changes of Gibbs free energy(kcal/mol) of [ACN-Mg2+/Al3+/Ga3+/ Sn2+/Cr3+/Fe3+] cluster chelation of Iranian Qara Qat fruit in two media of gas (g) and water (w) at 300 K, b Changes of enthalpy of reaction (∆HR) for formation of [ACN-Mg2+/Al3+/Ga3+/ Sn2+/Cr3+/Fe3+] clusters in water medium

They have been illustrated the stabilities and color of [anthocyanin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)] cluster chelation of Cy, Dp, and Pt pigments in Iranian Qara Qat fruit in a weak acidic condition (Figs. 1, 2).

The highest chelate stability with different ACNs indicates that ACN-metal chelation can produce a variety range of colors under acidic pH with efficiency for food consume. The results of ∆HR for formation of [anthocyanin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)] cluster chelation have been extracted by Fig. 5b and data of Tables 2 and 3.

Table 3 The difference of ∆HR through formation of [anthocyanin-metallic cations of (magnesium, aluminum, gallium, tin, chrome and iron)] cluster chelation in Iranian Qara Qat fruit

Recently, Beer Lambert law has been used for optimized compounds of [anthocyanin-metallic cations of (magnesium, aluminum, gallium, tin, chrome and iron)] cluster chelation in Iranian Qara Qat fruit to demonstrate the absorbance of assigned molecules toward showing the stabilization and a range of color due to their electronic structures in H2O medium with different concentrations of H+ [55,56,57].The absorbance (A) of the [anthocyanin-metallic cations of (magnesium, aluminum, gallium, tin, chrome and iron)] of cyanidin, delphinidin, and petunidin colorful pigments in Iranian Qara Qat fruit in H2O periodic box of a simulated model has been calculated through the Beer Lambert law which directly depends on concentration (c/mol/L) of H+. The results have been shown in [55,56,57] based on basic equations of A = log10 (Io/I) = εlc, where A is the absorbance; I, intensity of light; ε, molar absorptivity coefficient and c, concentration of solution. Basically, the increase in absorbance continued to rise with increasing and decreasing of frequency (F) for anthocyanin-metal cation chelation of cyanidin-Al3+ and petunidin-Al3+ in higher pH, respectively.

These decreases in absorbance could be related to decreased solubility of the anthocyanin-Mn+-cluster chelation which is resulted in precipitation of some complexes. In neutral or alkaline pH, hyper-chromic effects were found to be highest with much lower Mn+ levels; they were largest in higher pH with Mn+ and [anthocyanin], respectively, and were pursued by absorbance decreases. The large increases in absorbance could be treated to convert as the colorless forms of ACN to those which absorb and reflect visible light as well as the Mn+ induced linked to anthocyanin compounds.

So, it has been shown the Changes of absorbance (A) versus concentration (c) through Beer Lambert law for [cyaniding-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+]chelation and [petunidin-metallic cations of Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)] cluster chelation in the weak acidic media by different concentrations of H+ at 300 K [55,56,57].

There is a high tendency to the absorbance of Cy, Dp and Pt with Mg2+ added, but the changes were of small magnitude by playing a role in organizing ACN into supramolecular assembly similar to the role of Mg2+, which plays in metalloanthocyanins formation [36].

Mg2+ is the only divalent metal cation used in this work which is a crucial Mn+ to life system and usually linked to ACN in plant systems lacking any electrons in d orbitals, and it is able to produce some metalloanthocyanins with the unfilled d or f orbitals [57]. Mg2+ was found to do function in the stereo chemical configurations of cyanidin, delphinidin and petunidin anthocyanins (Scheme 2, Figs. 1, 2). For discovering the impacts of Al3+ salt on food origin, anthocyanin was measured with the goal to better understanding blue color development of metallo-anthocyanin.

In calculations, Al3+ was identified to displace Mg2+ in anthocyanin-Mg2+ complexes, Cy based, and produces more stable complexes [55,56,57]. This Mn+ has also even been estimated as a key to evaluate cyanidin, delphinidin and petunidin in anthocyanin extracts from edible sources [55,56,57]. Similar to Mg2+, Al3+ also lacks electrons in d orbitals but is trivalent when ionized.

In all pH, the frequency and dipole moment of anthocyanin-chelation were found to be significantly different with each metal treatment metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+) in Iranian Qara Qat fruit (Table 4).It has been seen that by increasing the pH,the frequency of [anthocyanin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)] cluster chelation in Iranian Qara Qat fruit increases between pH ≈ 1.1–1.5 (Table 4, Fig. 6a, b).

Table 4 Calculated dipole moment (D) (Debyes) and Frequency (F) (1/cm) of anthocyanin-metal chelation of cyanidin, delphinidin and petunidin in various pH using IR spectra
Fig. 6
figure 6

Changes of Frequency (F) versus pH for a [cyanidin-metallic cations of (Sn2+, Cr3+ and Fe3+)] cluster chelation and b [cyanidin-metallic cations of (Mg2+, Al3+)] chelation in the weak acidic media by different concentrations of H+ at 300 K in Iranian Qara Qat fruit

The maximum frequency of Al3+ treated acylated cyanidin was greater indicating the development of bluer colors, especially in higher pH with effects on their visible light absorbance (Fig. 6a, b).

Although we have little information about the interaction of anthocyanin with Cr3+, it is trivalent Mn+ having electrons in d orbitals, where addition of Cr3+ to the ACN of this study was also found to induce frequency and absorbance of spectra. In all pH, the mean frequency of the anthocyanin of both sources was achieved to be various from one another with each metal cation.

Similar trends occurred with Cr3+, where the Fmax of chelated cyanidin and delphinidin were greater while it has been indicated the maximum F of the anthocyanin with Cr3+ compared to Al3+in chelation by cyanidin and petunidin.

Like Al3+, the impacts of Fe3+ chelated to anthocyanin were investigated to be better characterized to generate some anthocyanin based blue colorations. Fe3+ is known to play an important role in many of the known pigment macromolecules [36].

Those metalloanthocyanins with cyanidin chromophores need Fe3+ to generate blue hues, but those based on delphinidin chromophores can produce blue colors. So, it has been seen anthocyanin formed bonds with Fe3+ producing the highest shifted of frequency and absorbance compared to other metalloanthocyanins (Fig. 6a, b).

As it has been seen in Table 4, the physical properties of high frequency and dipole moment for anthocyanin-metal cation chelation of cyanidin-Al3+, delphinidin-Al3+, and petunidin-Al3+ have been calculated in weak acidic media extracted from the infrared computational method which has shown a high deviation of absorbance for [Al3+-chelation] of Dp pigment [55,56,57].

The frequency achieved of IR vibrational spectra has shown that the normal mode of the active sites due to anthocyanin-metal cation chelation of cyanidin-Al3+, delphinidin-Al3+, and petunidin-Al3+ in optimized weak acidic media approves the stability and color of these structures. The principal frequency vibrational modes have been illustrated based on the stability and color of various anthocyanin-metal cation chelation (Table 4).

In the next step, the atomic charge of indicated atoms in [anthocyanin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)] cluster chelation in Iranian Qara Qat fruit has been evaluated as the active parts of the molecules which play an important role for the electron charge transfer toward producing a range of various colors in water medium (Scheme 2, Figs. 1, 2, Table 5).

Table 5 Atomic charge for Oxygen atoms in molecules of [anthocyanin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)] cluster chelation in Iranian Qara Qat fruit in different media of gas (g) and water (w)

In Fig. 7a–c, it has been plotted the changes of atomic charge of labeled oxygen atoms and metal cations through optimized [anthocyanin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)] cluster chelation in Iranian Qara Qat fruit (Scheme 1, Figs. 1, 2); so, the results of Table 5 in a polar medium of water solution comparison to gas phase declare the stability and color of these compounds in the natural products of vegetables and fruits (Fig. 7a–c).

Fig. 7
figure 7

Comparison of atomic charge versus labeled oxygen atoms and metal cations through optimized a [cyanidin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)], b [delphinidin-metallic cations of (magnesium, aluminum, gallium, tin, chrome and iron)] and c [petunidin-metallic cations of (magnesium, aluminum, gallium, tin, chrome and iron)] cluster chelation of Iranian Qara Qat fruit in two media of gas and water

The outlook of Fig. 7a–c recommends the reason for existing observed various results of [anthocyanin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)] cluster chelation in Iranian Qara Qat fruit which are principally linked to the position of active cites of labeled oxygen atoms and metal cations in these molecules which move the charge of electrons in aromatic cyclic chains because of water polar medium in contrast to gas phase and the lowest deviation for two media of water and gas has been indicated for anthocyanin-Mg2+(Fig. 7 a-c).

In fact, the spin density and partial charges have been obtained by fitting the electrostatic potential to fixed charge of \({\text{O}}_{17}^{ + }\), \({\text{O}}_{16}^{ + }\), and \({\text{O}}_{7}^{ + }\) cations for cyanidin-Mn+ (31), delphinidin-Mn+ (32) and petunidin-Mn+ (35), respectively (Table 5, Fig. 7a–c); therefore, the electrophilic groups of cyanidin, delphinidin anthocyanin pigments conduct us to find the reason for the activity and the stability of these structures in the natural products.

5 Conclusion

In this study, the anthocyanins of cyanidin (Cy), delphinidin (Dp) and petunidin (Pt) with a large chelation in the active zone of these structures by metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+) metallic cations make a variety range of colors under acidic pH; as divalent Mg2+ has shown various physicochemical properties considering its optimized geometry optimization as the bond length of oxygen—Mg2+ ≈ (1.9 Å) and the bond angle of oxygen–Mg2+–oxygen ≈ (112°) while it has been indicated the bond length of oxygen-M3+ ≈ (1.8 Å) and bond angle of oxygen–M3+–oxygen ≈ (120°) for trivalent metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+) metallic cations with more electron rich metal ions caused shifts and hue changes in the stability of color and structure.

Moreover, we have found that [anthocyanin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)] cluster chelation is based on the axes of active zones of specified oxygen atoms and metallic cations in these complexes which shift the electronic charges in aromatic cyclic chains because of water dielectric constant in contrast to gas medium. The spin density and partial charges have been gained by establishing the electrostatic potential to fix charge of \({\text{O}}_{17}^{ + }\), \({\text{O}}_{16}^{ + }\), and \({\text{O}}_{7}^{ + }\) cations for cyanidin-Mn+ (31), delphinidin-Mn+ (32) and petunidin-Mn+ (35), respectively based on the electrophilic groups of cyanidin, delphinidin and petunidin of anthocyanin colorful pigments which show the activity and the stability of these compounds toward the natural material. Generally, anthocyanin is capable to chelate the Mn+ through indicating the shift in their frequency and absorbance spectra which are affected by several factors including the anthocyanin structure, pH which is the important environmental factor in the expressed color of the solutions, and also the atomic configuration of the metallic cations.

Divalent Mg2+ was found to impact anthocyanin minimally with raising electron density in different pH; Sn2+ ≈ Fe3+≈ Ga3+ > Al3+ > Cr3+ >  > Mg2+

Using Beer Lambert law on [anthocyanin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)] cluster chelation of cyanidin, delphinidin, and petunidin pigments in Iranian Qara Qat fruit using theoretical methods illustrates absorbance factor in two media of gas and water and then unravels the stabilization energy and geometry which have been impacted by IR theoretical modeling toward the thermodynamic properties and the electronic structural of optimized [anthocyanin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)] cluster chelation in Iranian Qara Qat fruit resulting of metal chelation.

The results have exhibited that such extrapolation Schemes 1, 2, 3 and 4 significantly overestimate [anthocyanin-metallic cations of (Mg2+, Al3+, Ga3+, Sn2+, Cr3+ and Fe3+)] cluster chelation in Iranian Qara Qat fruit by sharp parts of electrophilic molecules in weak acidic media with different concentrations of H+ which are the most active particles at the applied compounds in this project.