Introduction

Substantial quantities of dyes are used in dyeing processes by the textile industry resulting in large volumes of industrial effluents that contain non-biodegradable contaminants ultimately released into the environment. This requires complex and expensive wastewater treatment processes to remove the dyes before the effluents are discharged into the environment. Included among the economical and cost-effective methods used to make dye processes environmentally safer are those that use natural dyes extracted from natural sources like minerals, insects/animals, and plants. The advantages of natural dyes over their synthetic counterparts make them ideal alternatives; these advantages include biodegradability, environment-friendliness, durability, antimicrobial properties, non-toxicity to humans, and non-allergic reactions (Horincar et al. 2019; Souissi et al. 2018; Cui et al. 2020; Yu et al. 2020). These advantages underly the global trend in using them by the apparel and textile industries. However, natural dyes suffer from such disadvantages as high solubility in water and low durability. These problems can be remedied if appropriate mordants are employed (Ibrahim et al. 2020; Benli and Bahtiyari 2015; Rehman et al. 2018; Nambela et al. 2020; Adeel et al. 2009; Sinnur et al. 2017; Kulkarni et al. 2011; Satyanarayana and Chandra 2013; Naveed et al. 2020).

The majority of mordants are metallic salts that properly combine with dye substances to form co-ordinate bonds, promote good bonding of dyes with textiles, help improve fastness of the dye against washing and sunlight, and enhance dye take-up by the fabric. However, these metallic ions are the source of wastewater contaminants and might agglomerate in living organisms and in the food chain to lead to diseases and disorders in humans. As a result, contamination of industrial wastewater with these non-degradable and toxic ions might affect both public health and the environment (Monier et al. 2010; Petrovic et al. 2017; Ru et al. 2018). To avoid these serious environmental impacts, natural products might be selected as alternative, totally eco-friendly mordants for use in dyeing systems.

Whey protein isolate might serve as an alternative eco-friendly mordant that additionally improves the affinity of cotton fabrics to natural dyes. Thanks to its vast applications and excellent properties, cotton is one of the oldest, most versatile, and complex of all fibers used by man. Basically comprised of cellulose with the chemical structure poly(1,4-β-D-anhydroglucopyranose), cotton releases only slight amounts of negative charges in alkali and neutral aqueous solutions (Gotoh et al. 2004) mainly due to its hydroxylic sites that are capable of oxidizing and producing carboxylic acid groups. Its negative surface charges increase significantly at pH values higher than 8 due to the ionization of certain side chain hydroxylic sites. The charge repulsion between anionic dyes and cotton materials leads to declining dye uptake and fastness in these materials (Monier et al. 2010; Pisitak et al. 2016). To overcome these problems in an eco-friendly manner, whey protein isolate, principally consisting of the three major proteins of bovine serum albumin (BSA), α-lactalbumin (α-la), and β-lactoglobulin (β-lg) (Pelegrine and Gasparetto 2005; Wijayanti et al. 2014) is used in the present study as a bio-mordant. The isolate is produced by the dairy industry and used extensively not only in food and pharmaceutical products but in biological systems as well.

Whey protein isolate used in conjunction with cotton fabrics may bind onto the fabric surface through the hydrogen-bonding interactions occurring between the amino and carbonyl groups present in whey protein isolate and the hydroxyl groups present in cotton (Zhang et al. 2011). This results in weakened negative charges on cotton surface allowing for the fabric to be dyed with natural agents. The bio-fabrics formed through cotton-protein reactions then enjoy a number of biological functions that offer promising biomedical applications.

The present study is focused on using the whey protein isolate as a bio-mordant for the natural dyeing of cotton fabrics using the tannin extracted from pomegranate rind. The study strives to produce bio-fabrics that are more environmentally-friendly.

Constituting about 50% of the total fruit weight, pomegranate rind contains various types of ingredients including ellagitannins (hydrolysable tannins) mainly punicalagin, pedunculagin, and punicalin (Seeram et al. 2005; Al-Zoreky 2009); flavonoids such as kaempferol, luteolin, and quercetin (Van Elswijk et al. 2004; Fawole et al. 2012); tannins, anthocyanidins are principally delphinidin, pelargonidin, and cyanidin (Noda et al. 2002); hydroxybenzoic acids such as gallic acid, ellagic acid, and EA glycosides (Davulcu et al. 2014), and minerals such as calcium, magnesium, phosphorus, potassium and sodium (Al-Zoreky 2009). It has been reported that pomegranate rind extract contained total of flavonoids and phenolic compounds at 47.27 mg QE/g and 104.68 mg GAE/g, respectively (Yehia et al. 2011). Since the essential bioactive products used in the present work are commonly discarded as waste and, therefore, cost not much to procure, the procedure proposed in this study seems promising for large scale production of economical biomaterials. To the best of the present authors’ knowledge, no study has yet been reported on the application of these materials in producing bio-fabrics.

To protect the ecosystem as much as possible against the hazards of releasing pollutants into the environment and to achieve excellent results at minimal resource costs, it is necessary to optimize the dyeing conditions so that minimum waste is produced. Toward these goals, the present study is conducted to achieve the following tow objectives: (1) To prepare cotton bio-fabrics in which whey protein isolate and pomegranate rind extract are used as biomaterials under optimized process conditions; and (2) to evaluate the color strength, color fastness, reaction mechanism, surface morphology, ultraviolet protection, and antibacterial properties of the bio-fabrics thus produced.

Experimental

Materials

Bleached, 100%-cotton fabrics with a plane weave (136 g/m2 in weight procured from Mazandaran Textile Co., Iran) and sour–sweet pomegranate rind (collected from Semnan, Iran) were used. Whey protein isolate with a purity of 93% (A.O.A. C., 1980, Method 38,012) was derived from cow milk obtained from Pegah Dairy Co., Golpayegan, Isfahan, Iran. All other chemicals were analytically pure and were used without further purification. Deionized water was also used to prepare all the aqueous solutions.

Pre-treatment of cotton fabric

Cotton fabrics were scoured and cleaned by treating for 1 h at boiling temperature in a bath containing 7% nonionic detergent and 3% sodium carbonate at a liquid to material ratio of 20:1. The fabrics were subsequently rinsed in hot water and finally placed in cold distilled water to avoid the redeposition of the saponified contaminants on the samples before they were dried at room temperature.

Preparation of the dye powder

The aqueous extraction procedure was used to extract the dye. Briefly, dried pomegranate rind samples were ground using a food blender and soaked in deionized water for 24 h (M:L 1:3) before they were heated in a dye bath at 95 °C for 1 h at pH = 8 under constant stirring at 40 rpm. The mixture was then allowed to stand overnight at ambient temperature for its insoluble residuals to precipitate. The aqueous solution was subsequently filtered on a fine cotton cloth. Finally, the filtrate was dried in a hot oven before it was powdered in a grinding mill.

Dyeing procedure

Prior to the dyeing process, pretreated cotton fabrics were soaked in water for 25 min. This was followed by dyeing the samples using the pre-mordanting, simultaneous mordanting, and post-mordanting procedures under optimized conditions.

Pre-mordanting was carried out using WPI as a natural mordant under two different sets of optimum conditions. First, 10 g of the cotton fabric sample was loaded into a plastic tube with 200 mL of a normal pH whey protein isolate solution at a concentration of 40 g/L. The tube was then loaded into a thermostatic water bath at 80 °C for 30 min. To avoid further thermal denaturation, the tube was immediately cooled in an iced water bath. The second treatment involved exposing 10 g of the cotton fabric sample to 200 mL of WPI with a normal pH at a concentration of 40 g/L at ambient temperature for 2 h. All the samples were subsequently pressed using a padding machine to achieve 80% expressions. The pre-mordanted fabrics were then squeezed, air dried, and subjected to the dyeing process, which was performed by dipping the fabrics pre-mordanted with WPI in an AHIBA 1000 polymath apparatus containing various concentrations of pomegranate rind powder with a material to liquid ratio of 1:20. The soaking time was 10 min, which started at a temperature of 35 °C to rise at a heating rate of 1.5 °C/min. Various dyeing times, temperatures, and pH levels were applied to obtain the optimum dyeing conditions (Table 1).

Table 1 Dyeing bath optimization criteria for the cotton fabrics pre-mordanted with WPI at 80 °C

In the simultaneous dyeing procedure, the cotton fabrics were mordanted at the same time that they were dyed in the same bath. The dyebath was prepared by dissolving 70% o.w.f. of pomegranate rind powder and 40 g/L of whey protein isolate at a material to liquid ratio of 1:20 to obtain a pH level of 4.5. Prior to loading the cotton fabric samples, bath temperature was raised to about 35 °C at which it was kept for 10 min before it was gradually raised at a heating rate of 1.5 °C/min to 90 °C at which the dyeing process was continued for 80 min.

Post-mordanted fabric samples were prepared by dyeing as described in the simultaneous dyeing procedure but in the absence of the whey protein isolate. After dyeing, 10 g of the cotton fabric sample was thoroughly squeezed before being introduced into the mordant bath containing 40 g/L of the whey protein isolate at ambient temperature where it was maintained for 2 h.

At the end of the dyeing process, all the samples were removed from the solution, rinsed with deionized water, and soaped in a bath containing 2 g/L of the non-ionic detergent at 80 °C for 15 min. Finally, the dyed fabrics were washed with deionized water while the solution was repeatedly replaced during each washing cycle before they were ultimately squeezed and dried at room temperature.

Color characteristics

The CIELAB color coordinates (L* a* b* c* h°) and color efficiency (K/S) over a range of 400–700 nm were recorded with an X-Rite Sp64 Portable Sphere Spectrophotometer (USA) (ASTM E308, ASTM E1331) using illuminant D 65 and a 10° standard observer. Color efficiency (K/S) defined as a function of color depth was determined using the Kubelka–Munk equation as follows:

$$ \left( \frac{K}{S} \right) = \frac{{(1 - R_{\lambda \max } )^{2} }}{{2R_{\lambda \max } }} $$
(1)

where, K, S, and R represent adsorption coefficient, scattering coefficient, and reflectance of the dyed substrate, respectively (Sarkar and Seal 2003).

Relative color strength (RCS) defined as the ratio of WPI-dyed fabric color to that of the untreated plain cotton one may be calculated using the following equation:

$$ RCS = \frac{{\left( \frac{K}{S} \right)dyed}}{{\left( \frac{K}{S} \right)initial}} \times 100 $$
(2)

IR Spectroscopic analysis

Fourier Transform Infrared (FTIR) spectroscopy was performed and absorbance spectra were obtained using a NICOLET Nexus 670 in order to investigate the structural changes of cotton fabrics after their modification. The spectra were averaged over 40 scans recorded at a resolution of 4 cm−1 over the range 400–4000 cm−1. The absorption peaks in the FTIR spectra were analyzed using Omnic software.

Color fastness

The bio-fabrics thus produced were subjected to a repeated washing test according to ISO 105-C01: 2006. The samples were studied with respect to their stability by antibacterial measurements after 0, 5, and 10 washing cycles in a nonionic detergent. The light fastness test of the coated samples was carried out according to ISO 105 B02: 2014.

UV protection measurement

AATCC 183-2010 standard was used to determine the ultraviolet protection properties of the untreated and dyed cotton fabric samples over a range of 290–400 nm at intervals of 10 nm. The values for ultraviolet protection factor for the dry, tensionless, and flat samples were determined using the relevant software as follows:

$$ UPF = \frac{{\int_{290}^{400} {E(\lambda )\varepsilon (\lambda )\Delta (\lambda )} }}{{\int_{290}^{400} {E(\lambda )T(\lambda )\varepsilon (\lambda )\Delta (\lambda )} }} $$
(3)

where, \(T_{{}} (\lambda )\), \(\Delta_{{}} (\lambda )\), \(\varepsilon (\lambda )\), and \(E_{{}} (\lambda )\) represent spectral transmittance at \(\lambda\) 290, wavelength interval of the measurements (nm), arithmetic action spectrum, and measured solar irradiance (Wm−2 nm−1), respectively. The percentage of UV-B and UV-A were also estimated and reported as the average value of four determinations using the average transmittance data in the ranges of 290–315 nm and 315–400 nm, respectively.

SEM analysis

A Philips scanning electron microscope (XL-30, The Netherlands) was used to investigate the surface morphologies of the untreated plain samples as well as the WPI-treated and dyed biofabrics.

Antibacterial activity

Using the AATCC 100-2004 test method, the bio-fabrics prepared under the optimized conditions were quantitatively investigated in terms of their antibacterial activities against the two microorganisms of Staphylococcus auras, a Gram-positive bacterium (American Type Culture Collection No. 6538), and Escherichia coli, a Gram-negative bacterium (ATCC 25,922) (Baseri 2016).

Results and discussions

Optimization of the dyeing parameters

The samples were subjected to different dyeing conditions to determine their effects on the color strength of the dyed cotton fabrics. Figure 1 presents the effects of different dyeing conditions (dye concentration, pH, temperature, and time) on color efficiency of the dyed cotton fabrics.

Fig. 1
figure 1

Effects of different dyeing parameters on color efficiency

As can be seen, color strength exhibited a considerable enhancement with an increase in dye concentration. This can be explained by the increased number of dye molecules made available for reaction with the functional groups as a result of increasing dye concentration, a situation that is characterized by increased color efficiency as well.

Regarding dyebath temperature, a relatively slow increase in color strength was observed with increasing dyeing temperature up to 60 °C, beyond which the enhancement in color strength took a fast trend up to a temperature of 90 °C (Fig. 1). This could be due to the effect of temperature on the kinetic energy between the dye and the fabric molecules. Indeed, the kinetic energy of the dye molecules increased but their aggregation decreased with increasing temperature. Also, the increasing temperature increased the movement speed of the segment cotton chains leading to more open structures in the fabrics that created greater fractional free volumes (Baseri 2015) that made more active sites available for more dye molecules to attach to the fabrics. Thus, a temperature of 90 °C was identified as the best dyebath one under the conditions used in the experiments.

It is also clear from Fig. 1 that color strength declined in the samples as dyeing bath pH rose from 5 to 11 so that maximum color strength was obtained at a pH equal to 4.5. This might be attributed to the isoelectric point of whey protein isolate as whey protein exhibits its minimum solubility and surface charge at this pH due to the significantly decreased electrostatic forces of the molecules. This resulted in the facilitated transfer of dye molecules to the fabric such that more tannin molecules were able to form complexes with the polar groups of the whey protein isolate in the fabric. It is well known that the isoelectric point of whey protein isolate is about 4.5 (Pelegrine and Gasparetto 2005). At lower or higher pH values, the protein surface becomes either positively or negatively charged, which increases its solubility. It may, therefore, be concluded that, for the conditions used in the present experiments, maximum color strength is obtained at pH 4.5.

Another important point to note in Fig. 1 is the considerable increase in color efficiency with increasing dyeing duration to 80 min, beyond which dye uptake increased at a lower rate. This can be explained by the fact that, at longer dyeing durations, more time is available for the dye molecules to diffuse and react with the functional groups present in the pretreated cotton fabric until a state of equilibrium is reached. It, therefore, appears that a dyeing duration of 80 min best suits the conditions used in the present experiments.

Based on the results obtained from the present study, the optimal conditions for the most efficient dyeing of pre-mordanted cotton fabrics were determined to be those summarized in Table 1.

Evaluation of the dyeing procedure based on color strength and dyeing efficiency obtained for dyed cotton fabrics

The effects of the different mordanting methods on cotton dyeing were investigated and the results obtained on dye depth, i.e. color efficiency (color strength), were presented in Fig. 2.

Fig. 2
figure 2

Color Efficiencies of the different procedures used to dye cotton fabrics (1) WPI –premordanted at 80 °C, (2) WPI-premordanted at room temperature, (3) plain cotton fabrics (4) post-mordanted, and (5) simultaneous mordanted

It is clear that, regardless of the dyeing procedure used, all the samples showed identical trends of decreasing color efficiency with increasing wavelength. In addition, both pre-mordanted samples exhibited higher values of color efficiency than did those solely subjected to dyeing. This may suggest a twofold increase in color efficiency in cotton fabrics dyed through the pre-mordanting procedure as compared to others. This may be explained along the following lines. First, the whey protein isolate might bind onto the fabric surface not only through the hydrogen-bonding interactions of the amine and carbonyl groups present in it with the hydroxyl groups in the cotton but also via van der Waals forces. These result in reduced negative charges on cotton surface and the fabric’s increased dyeability. Second, pomegranate rind has a tannin content. Hence, the polar groups in whey protein isolate might react with the phenolic hydrogen groups in tannins to form an insoluble complex through hydrogen bonding (Kadam et al. 1990). This claim will also be confirmed by the results obtained from FTIR analysis in the present study. On the other hand, it may be claimed that the whey protein isolate not only reduces the negative charges on cotton surface, but also improves dye uptake by pre-mordanted fabrics due to dye–whey protein isolate complexation.

It is seen in Fig. 2 that the color efficiency of the cotton fabrics exhibited a more pronounced effect as a result of pre-mordanting at 80 °C than at room temperature. This indicates adsorption of more of the whey protein isolate followed by a reduction of the negative charges on the cotton surface as a result of pre-mordanting at 80 °C, which eventually increases the dyeability of the fabric. This phenomenon could also be explained by the greater tannin-whey protein isolate complexes formed due to the higher amount of whey protein isolate absorbed on cotton fabrics as a result of pre-mordanting at 80 °C. These results are consistent with those observed in weight changes of the fabrics pre-mordanted at two different temperatures. For the conditions used in the present experiments, pre-mordanting of cotton fabrics with whey protein isolate at 80 °C and at room temperature resulted in 12.3% and 7.5% (w/w), respectively, of whey protein isolate contained in the final cotton fabrics treated with whey protein isolate.

Another important point to note in Fig. 2 is that the cotton fabrics dyed with pomegranate rind extract through the simultaneous and post-mordanting procedures exhibited lower color efficiencies than did those dyed only with the natural dye. On the other hand, using whey protein isolate as a bio-mordant in both procedures led to declines in color efficiency. The lower color efficiency of cotton fabrics dyed through the simultaneous mordanting method could be explained with recourse to the solubility of whey protein isolate in water. It is well known that the solubility of whey protein isolate is significantly affected by temperature such that, at high enough temperatures, some secondary and tertiary structures of the whey protein isolate transform or break down in time. This causes the hydrophobic groups of the whey protein isolate to come in contact with each other to form aggregate molecules; this coagulation causes protein solubility in water to decline (Langerdorff et al. 1999). Another explanation put forth is that the dye and the mordant in the simultaneous dyeing procedure come into contact with each other to form certain tannin-whey protein isolate complexes in the dyeing bath. Part of the dye then possibly escapes adsorption on the cotton fabric due to precipitation, thereby leading to reduced color efficiency in the samples.

In the post-mordanting procedure, the fabrics were initially dyed only with the pomegranate rind extract followed by treating in a separate bath with the whey protein isolate used as a bio-mordant. As a result, some of the dye molecules might have escaped the dyed fabric to form an insoluble tannin–protein complex in the mordanting bath. This situation is characterized by reduced color efficiency of the post-mordanted fabrics only relative to that of the fabrics merely dyed.

Table 2 reports the colorimetric characterization of the different samples tested and their relative color strengths.

Table 2 Relative color strengths and colorimetric data of various dyed cotton fabrics

In this Table, the chromatic coordinates of a* and b* represent green (a* < 0) to red (a* > 0) and blue (b* < 0) to yellow (b* > 0), respectively. The L* values show color brightness ranging from 0 (black or darkness) to 100 (white or lightness). C* denotes the distance between a color and the achromatic point; it may be termed ‘color clarity’ or ‘degree of color saturation’. Hue angle implying purity of color is designated by h°. Finally, while ∆E* signifies the total color differences, ∆E* > 1 indicates the total color difference between two dyed samples as distinguished by the naked eye (Gawish et al. 2017; Harane et al. 2014).

It is evident from Table 2 that all the dyed samples recorded ∆E* values larger than unity, implying a significant difference between the samples. Moreover, compared to the cotton fabric solely dyed, simultaneous mordanting and post-mordanting of the samples caused reductions not only in their relative color strengths but also in their b* and c* values. These observations confirm the reduced dye uptake in the simultaneous and post-mordanting procedures, indicating that the whey protein isolate is not a suitable bio-mordant for use in these dyeing procedures. Conversely, both pre-mordanted fabrics exhibited higher values of relative color strength than did the fabrics solely dyed, a situation which is characterized by a significant decrease in color brightness. Hue angle, yellowness, and color clarity increased as a result of pre-mordanting with the whey protein isolate. Moreover, compared to the fabrics pre-mordanted at room temperature, those subjected to pre-mordanting at 80 °C exhibited higher values of relative color strength, color clarity, color coordinate b*, hue angle, and total color difference but a lower value of brightness. This is not only an indication of the higher dye uptake by the fabrics pre-mordanted at 80 °C but also a confirmation of the strong reliance of whey protein isolate absorption on both the dyeing procedure used and the temperature applied.

Color tone is represented by the two color coordinates a* and b*. The relevant graphical representations for different dyed cotton fabrics are presented in Fig. 3.

Fig. 3
figure 3

Graphical representations of the color coordinates a* and b*

It is evident that all the dyed cotton fabrics are located in the red-yellow zone of the CIE space and that they all exhibit yellowness but with different reddish shades. This is also confirmed by the hue angle values greater than 45° reported in Table 2. Another point worth noting in this Figure is the total color difference whose highest value was recorded with pre-mordanting at 80 °C. The results obtained from the present experiments reveal that the best results obtained with pre-mordanting at 80 °C. It is, hence, recommended as the best procedure for dyeing cotton bio-fabrics produced by using the whey protein isolate and the pomegranate rind extract. The total content of polyphenols in dyebaths before and after dyeing was analyzed by the procedure described in (Singleton and Rossi 1965) and the add-on% of the total polyphenols on the fabric surface may be calculated using the following equation:

$$ Total\;Polyphenols\;Removal(\% ) = \frac{{C_{b} - C_{a} }}{{C_{b} }} \times 100 $$
(4)

where, Cb and Ca represent the total polyphenols concentrations in dye bath before and after dyeing, respectively (Table 3).

Table 3 Total polyphenols removal value of WPI pre-mordanted fabric

Color fastness of the dyed cotton bio-fabrics

Since textiles are subjected to frequent laundering, dye durability might have drastic effects on the final application and properties of cotton bio-fabrics. In order to investigate the durability of the samples under repeated washing cycles, they were washed in a Launder-O-meter to investigate their fastness properties before and after pre-mordanting with WPI and the results were reported in Table 4.

Table 4 Fastness properties and UPF values of dyed cotton fabrics before and after pre-mordanting with WPI at 80 °C

Clearly, the cotton fabrics dyed with the pomegranate rind extract exhibited excellent wash fastness properties as evidenced by their no shade change or staining to the adjacent multifiber strip after multiple washes. Additionally, pre-mordanting with WPI exhibited no effect on the wash fastness of the fabrics as they retained their excellent wash ability (Table 4). However, pre-mordanting with WPI was observed to improve the light fastness properties of cotton fabrics dyed with the pomegranate rind extract. It may be suggested that whey protein isolate as a bio-mordant had a negative catalytic influence on the photochemical degradation of the natural dye extracted from pomegranate rinds. Moreover, calorimetric analysis revealed that WPI pre-mordanting not only increased dye uptake by the cotton fabrics but also increased dye concentration in the samples, a situation characterized by elevated values of light fastness. It may be concluded that the conditions used in the experiments led to stable interactions between the WPI/pomegranate rind natural dye and the cotton fabrics.

Characterization of the surface of the bio-fabric (SEM)

Microstructural images were prepared of both the plain and the WPI/dyed samples using a scanning electron microscope at a magnification of 2.00 KX, the analytical results of which are presented in Fig. 4.

Fig. 4
figure 4

SEM micrographs of the cotton fabrics: a plain, b pre-mordanted with WPI at 80 °C, c solely dyed, and d pre-mordanted and dyed

It is clear from these micrographs that a homogeneous layer of whey protein isolate lacking microscopic cracks or discontinuities formed on the fabric surface. The pre-mordanted cotton fabrics exhibited some particles on their surfaces, indicating that the whey protein isolate was bonded to the fabric. As expected, these structures persisted even after dyeing with pomegranate natural dye (Fig. 4d). This might have occurred due to the presence of a chemical bond between the whey protein isolate and the pomegranate rind extract with the cotton fabric as also confirmed by the FTIR analysis. It is not far from expectation that a continuous layer of both the bio-mordant and the dye could have been formed under the experimental conditions in this study.

Chemical interaction of cotton fabric, whey protein isolate, and pomegranate rind dye

FTIR spectra from 4000 to 400 cm−1 were used to determine whether the pomegranate rind extract and the whey protein isolate were chemically bonded to the cotton fabrics. The results obtained on the plain cotton fabrics and those dyed and pre-mordanted with WPI at 80 °C are presented in Fig. 5. The spectra are presented with no shift in the absorbance axis while they have also been normalized and baseline corrected.

Fig. 5
figure 5

Normalized FTIR spectra for a plain cotton fabrics, b those WPI-pre-mordanted at 80 °C, and c both WPI-pre-mordanted and dyed

The FTIR spectra for the plain cotton fabrics as well as those for the pre-mordanted dyed ones exhibit characteristic adsorption peaks that can be divided into three important regions: a broad region in the range of 3500–3200 cm−1 corresponding to the stretching of the hydrogen bonded (O–H), a region from 3000 to 2700 cm−1 corresponding to the stretching vibrations of CH2 and CH3, and finally, adsorption peaks in the range of 1800–700 cm−1 representing the (O–H) bending, (C=O) and (C–N) stretching, as well as (N–H) oop vibrations (Alizadeh-sani et al. 2018; Batool and Shah 2018; Cintron and Hinchliffe 2015; Kondo et al. 1994; Haque et al. 2017; Yang et al. 2000).

FTIR spectra of the (O–H) stretching region

The chemical structure of cotton is basically poly(1,4-β-D-anhydroglucopyranose) composed of glucose units. It contains three different hydroxyl groups in each repeating glucose unit, with each distinct hydroxyl group exhibiting a single stretching vibration at a given wavenumber, thereby giving a broader band. It is well known that vibration band in the range 3310–3230 cm−1 might be associated with the intermolecular hydrogen bonding for 6-OH…O-3′ while those in the ranges 3375–3340 cm−1, and 3455–3410 cm−1 might correspond to the intramolecular hydrogen bonds for 3-OH…O-5 and 2-OH…O-6, respectively (Kondo et al. 1994; Haque et al. 2017; Yang et al. 2000).

Figure 5 shows that a broad adsorption peak is observed at 3450 cm−1 for the plain cotton fabrics. Moreover, a broad adsorption peak appears at 3428 cm−1 with a shoulder on the low wavenumber side for the WPI-treated/dyed fabrics, suggesting new intermolecular interactions as well as widely distributed H-bond geometries and distances (Zhang et al. 2011). The observed shoulder may be equally attributed to the (NH2) stretching vibrations in the WPI-treated and dyed samples. Another important point to note in Fig. 5 is the shift from 3450 to 3428 cm−1 in the spectra for the pre-mordanted and dyed cotton fabrics. This might be attributed to the strengthening of the intramolecular hydrogen bonds for 2-OH…O-6, with the stronger bonds shifting to a lower energy. For this band, the hydrogen bonding distance (R) and the energy of the hydrogen bond (EH) can be estimated from the following equations (El-Zaher et al. 2019; Popescu et al. 2009):

$$ E_{H} = \left( \frac{1}{K} \right)\left[ {\frac{{(v_{0} - v)}}{{v_{0} }}} \right] $$
(5)
$$ (v - {v_{0}}^{{\prime\prime}} ) = 4.43 \times 10^{3} (2.84 - R) $$
(6)

where, v is the frequency of the bonded OH group observed in the FTIR of the sample, v0 is the standard frequency corresponding to free OH groups (at 3650 cm−1) and K is a constant (1/K = 2.625 × 102 kJ) (El-Zaher et al. 2019). Also, v0″ is the monomeric OH stretching frequency (v0″ = 3600 cm−1) (Popescu et al. 2009). The results are shown in Table 5.

Table 5 Hydrogen bond wavenumbers, the energy of the hydrogen bond, and the hydrogen bonding distance for studied cotton fabrics

Clearly, the WPI-treated/dyed cotton fabrics exhibited a higher value of hydrogen bonding energy than did the plain fabrics, a situation which is characterized by a decrease in the hydrogen bonding distance. These must be due to the specific hydrogen-bonding interactions between the hydroxyl groups in the cotton fabrics, the whey protein isolate, and the pomegranate rind extract.

FTIR spectra of (C–H) stretching region

The collection of bands between 3000 and 2700 cm−1 belong to the (C–H) stretching region. The baseline in this region exhibits an (O–H) absorbance (Haque et al. 2017; Yang et al. 2000; Forteir et al. 2017). It is evident from Fig. 5 that the (C–H) stretching vibrations decline in intensity once the cotton fabrics have been pre-mordanted and dyed. This may be explained by the fact that dyeing the cotton fabrics with the whey protein isolate and pomegranate rind dye might have led to more interactions between the hydroxyl groups in the cotton and the WPI/natural dye, which ultimately led to reduced free hydroxyl groups of the cotton bio-fabrics. This situation is characterized by a decrease in the intensity of the (C–-H) stretching bands in the bio-fabrics.

FTIR spectra of the (O–H) bending as well as the (C=O) and (C–N) stretching regions

The vibrational modes at 1800–700 cm−1 are attributed to the (O–H) bending region and to those of (C=O) and (C–N) stretching vibrations (CCintron and Hinchliffe 2015). The absorption peaks at 1850–1650 cm−1 were attributed to the overlapping of the bending vibration of (C–H) and to the presence of carbonyl/carboxyl functional groups (Allen et al. 2007). As is evident from Fig. 5, compared to plain fabrics, the WPI/dyed samples exhibited enhanced intensities in their (C =O) stretching vibrations in the relevant spectra, demonstrating that the carbonyl/carboxyl groups increased as a result of treatment with WPI and the natural dye. The presence of carboxyl groups in the WPI/dyed fabrics is also confirmed by the acidic (C–O) stretching peak at around 1260 cm−1. The plain control fabric did not display such a vibration mode, whereas the WPI-treated and dyed fabrics showed a small band at 1260 cm−1.

It is also interesting to note that a small peak appeared at about 800 cm−1 when the cotton fabrics were treated with WPI and pomegranate rind dye, which is indicative of the presence of (N–H) oop in amines (Pavia et al. 1996). The presence of amines in these samples was also verified in “FTIR spectra of the (O–H) stretching region” above. In the light of these arguments, it may be concluded that WPI and pomegranate rind dye were chemically absorbed to the cotton fabric. On the other hand, it is well known that the two spectral bands at around 1700 and 1580 cm−1 indicate water adsorption (Garside et al. 2003). This may be verified by Fig. 5 showing that the cotton fabrics treated with the WPI and the natural dye display slight increases in intensity at these modes, which might have been due to increased water absorption and hydrophilicity of the cotton bio-fabrics.

Based on the FTIR spectra and their analysis, the model in Fig. 6 was developed for the possible reaction route among the functional groups present in cotton, WPI, and pomegranate rind dye.

Fig. 6
figure 6

Schematic diagram for the chemical interactions among cotton, WPI, and pomegranate rind dye

The adsorption of pomegranate rind dye into the cotton fabric is believed to take place in the following two steps:

  1. (1)

    The first step involves the initial adsorption of WPI onto the cotton fabric. Upon contact with the cotton fabric, the amine and carboxyl groups present in the WPI are oriented toward the cotton surface to allow for intra- and inter-molecular hydrogen bonds to form between the hydroxyl groups in the cotton and the amino/carboxyl groups in the WPI molecules. This decreases the negative charges on the cotton surface, resulting in its enhanced dyeability.

  2. (2)

    The second step involves the subsequent formation of hydrogen bonds between the various functional groups present in the WPI-premordanted cotton fabric and the phenolic compounds in the pomegranate rind dye. The phenolic compounds include Ellagic acid, N-methyl Granatonine, and Quercetin, all of which are prominent colored structures in pomegranate rind (Shaukat et al. 2016).

In addition to the predominant hydrogen bonds, hydrophobic interactions between the non-polar domains in tannins and the whey protein isolate might play an important role in the adsorption of pomegranate rind dye by the WPI-treated cotton fabrics (Deaville et al. 2007).

UV Protection of the cotton bio-fabrics

Table 4 reports the UV protection factors for the dyed samples before and after pre-mordanting with WPI at 80 °C. It is clear from this Table that the non-mordanted cotton fabrics dyed with the pomegranate rind natural dye recorded excellent UPF values (50+). This could be attributed not only to the chemical structures but also to the functional groups present in the pomegranate rind dye. The presence of tannins, ellagic and gallic acids, and other phenolic compounds in the pomegranate rind extract have been shown to exhibit photo protection properties due to their reflection or absorbance of UV radiations (Negi and Jayaprakasha 2003; Murugesh Babu and Ravindra 2014; Soobrattee et al. 2005). Also, it was well-known that flavonoids and phenolics are highly effective free radical scavengers and antioxidants (Yehia et al. 2011).As a result, they are well capable of preventing the destructive effects of UV radiation such as genomic and mitochondrial DNA fragmentation, mutagenesis, and DNA cellular death (Davulcu et al. 2014). The protective effects of pomegranate polyphenolics against UVA- and UVB-induced cell death of human skin fibroblasts may also be attributed to reduced generation of intracellular ROS and increased intracellular antioxidant capacity (Viuda-Martos et al. 2010). Additionally, pre-mordanting with WPI at 80 °C leads to reductions in both UV-A and UV-B transmittances that, in turn, increase the ultraviolet shielding efficiency of the fabric (Table 4).

It is well established that proteins give a two-fold increase in protection against ultraviolet radiation. Specifically, proteins remain as aggregates of molecules on the sample surface to scatter UV radiations. Moreover, the carbonyl groups of the protein molecules are well capable of absorbing ultraviolet radiation (Banga 2015).

Antibacterial efficiency of cotton bio-fabrics

Natural fibers such as cotton are not resistant to microorganisms. They usually provide suitable media for microorganisms to grow in. However, especially-prepared textile materials have been widely used as antibacterial materials in such varied applications as surgical clothing, bandages, medical dressings, apparel, protective clothing, veterinary materials, household tools, and healthcare (including disposable) appliances. The treatment of cotton fabrics for antibacterial effects has been studied widely (Lu et al. 2019; Gao et al. 2020; Liu et al. 2018; Wen et al. 2020). The conventional antibacterial substances used for treating cotton fabrics (i.e., metallic salts, quaternary ammonium, and triclosan) suffer from such disadvantages as escaping from the substrate to contaminate the wearers’ skin as well as high cost, toxicity, excessive tendering of the fabric, and inadequate reactivity (Mohamed et al. 2016).

Some of the natural dyes, especially those containing quinines, curcuminoids, and tannins, have been shown to offer antibacterial effects (Mohammed et al. 2016). Cotton bio-fabrics dyed with pomegranate rind dye seem to offer antibacterial effects and might, therefore, be an ideal substrate for this purpose. In an attempt to gain a better understanding of this aspect of the bio-fabrics manufactured in this study, the effects of whey protein isolate and pomegranate rind dye were investigated on their antibacterial properties against the two Gram-positive Staphylococcus aureus (ATCC 6538) and Gram-negative Escherichia coli (ATCC 25,922) bacteria in terms of percentage reductions in the number of bacteria after 18 h of incubation on the surface of plain cotton fabrics, those pre-mordanted with WPI at 80 °C, and those dyed with pomegranate rind dye using Eq. (7). The results are reported in Table 6 and Fig. 7.

$$ Reductionrate(\% ) = \frac{B - A}{B} \times 100 $$
(7)

where, A and B represent the numbers of bacterial colonies (CFU/ml) reduced on the plain and treated fabrics, respectively (Baseri 2018).

Table 6 The bacterial reduction in the number of the two bacteria after 18 h incubation on the surface of various cotton fabrics before and after multiple washings (a) E. coli (b) S.aureus
Fig. 7
figure 7

Images of antibacterial activity of various cotton samples before and after multiple washings according to the AATCC 100–2004 test method a plain cotton fabrics, b solely dyed samples, c those WPI-pre-mordanted at 80 °C, and d both WPI-pre-mordanted and dyed

It is clear from Table 6 that the plain cotton fabrics and those pre-mordanted with whey protein isolate at 80 °C showed no antibacterial activity; the one dyed with pomegranate rind dye, however, exhibited an efficient antibacterial activity against both E. coli and S. aureus, which can be attributed to the antibacterial property of the dye used. The antibacterial activity of pomegranate rind has been attributed to its secondary metabolites such as phenolic compounds, tannins, ellagitannins especially punicalagin, ellagic and gallic acids, and anthocyanin as well as the flavonoids (Su et al. 2012; Gupta et al. 2005; Rosas-Burgos et al. 2016; Sorrenti et al. 2018).

In general, the antibacterial mechanisms of pomegranate rind extract can be explained with respect to its chemical active ingredients along the following lines:

  1. 1.

    Phenolic compounds are capable of cross-linking, coagulating, and clumping bacterial cells (Davulcu et al. 2014). Moreover, they are able to react with sulfhydryl groups of proteins and interference with bacterial protein secretions, or the unavailability of substrates to microorganisms (Rosas-Burgos et al. 2016; Viuda-Martos et al. 2010; Al-Zoreky 2009).

  2. 2.

    It seems that numerous mechanisms such as inhibition of nucleic acid synthesis, inhibition of cytoplasmic membrane function, inhibition of energy metabolism, inhibition of the attachment and biofilm formation, inhibition of the porin on the cell membrane, alteration of the membrane permeability, and attenuation of the pathogenicity are involved in the antibacterial activities of flavonoids which are used to explain their antibacterial properties (Xie et al. 2015).

  3. 3.

    The antibacterial activity of ellagitannins, which include punicalagin isomers, has been considered as a possible result of their ability to precipitate protein and/or remove metal cofactors through their strong affinity for metal ions (Rosas-Burgos et al. 2016).

  4. 4.

    The tannins present in pomegranate rind extract are well capable of binding to bacterial proteins, create stable complexes with them, and change their structural conformation, thereby preventing their growth (Gupta et al. 2005; Goel et al. 2005).

The WPI-treated/dyed fabrics exhibited a higher antibacterial activity than did the ones solely dyed, indicating that pre-mordanting with the whey protein isolate led to the adsorption of more pomegranate rind dye, that naturally increased the antibacterial efficiency of the fabric. This is confirmed by the findings regrading color efficiency.

It is also worth noting in Table 4 that antibacterial efficiency is more pronounced against E. coli than against S. aureus. This might be related to the cell walls of E. coli whose outer membrane is composed of phospholipids, lipoprotein, and lipopolysaccharide. Thus, the cell walls of E. coli, as a Gram-negative bacterium, act as potential barriers against foreign matter (Mohamed et al. 2016).

Finally, the samples were studied in terms of their antibacterial behavior against S. aureus and E. coli bacteria under different conditions including 5 and 10 wash cycles. It is evident from the results reported in Table 6 that the samples exhibited a consistent antibacterial performance against washing up to ten cycles, indicating the stability of the antibacterial properties of the cotton bio-fabrics.

Conclusion

Cotton fabrics were successfully dyed using whey protein isolate, as a bio-mordant, and pomegranate rind dye, as a natural dye. The effects of different dyeing conditions, including dye concentration, pH, duration, and dyeing bath temperature as well as dyeing procedure were investigated. The best results were obtained with pre-mordanting of cotton fabrics with WPI at 80 °C. The optimum dyeing conditions were determined to include a dyeing temperature of 90 °C, a duration of 80 min, a concentration of 70% o.w.f, and a pH level of 4.5. FTIR analysis revealed that the cotton bio-fabrics exhibited peaks that indicated chemical reactions between the WPI/ pomegranate rind dye and the cotton fabrics. These interactions were shown to favor hydrogen bonding and hydrophobic activities. These findings were further confirmed by visual observation of SEM images. These images also showed a homogeneous coating layer with no microscopic cracks or discontinuities formed on the fabric surface. The cotton bio-fabrics were found to offer an excellent fastness against washing cycles and light due to the chemical bonds formed between the pre-mordanted fabrics and the pomegranate rind dye. Moreover, the cotton fabrics subjected to both pre-mordanting and dyeing exhibited an excellent protection not only against the two microorganisms examined but also to the harmful ultraviolet radiation. Finally, the bio-fabrics exhibited a stable antibacterial efficiency in up to 10 washing cycles, confirming the chemical reactions between the cotton fabric and the WPI/dye. The procedure proposed in this study seems to be of potential use for the production of eco-friendly and economical textiles without adverse environmental impacts.