Introduction

Synthetic dyes have been widely used for the dyeing of textile fibers due to their useful properties, such as reproducibility, abundance, wide ranges of color, convenience, and easy application process (Cai et al. 2018, 2020). However, most synthetic dyes used in the dyeing of textile fibers are not biodegradable, and some of them produce toxic degradation products. Moreover, traditional textile dyeing processes consume a substantial amount of water, energy, and auxiliaries and also produce a large volume of hazardous effluent, which are detrimental to the ecosystem and human health (Islam et al. 2018, 2019; Morshed et al. 2020; Pervez et al. 2020a, b). Therefore, a sustainable environmentally friendly textile dyeing process is highly attractive.

Consequently, there is a growing interest in utilizing natural dyes in textile fibers dyeing as they possess several good characteristics such as biodegradability, renewability, environmental compatibility, and other properties, such as anti-allergic, antibacterial, and UV protective functionalities (Gorjanc et al. 2016; Hong et al. 2012; Rehman et al. 2018). However, natural dyes exhibit low dye uptake and poor colorfastness to washing and rubbing while dyeing with cellulosic fibers, such as cotton (Samanta and Konar 2011). Though pretreatment can slightly improve the dye uptake rate and colorfastness, this process does not satisfactorily increase the dye uptake level (Tsatsaroni and Liakopoulou-Kyriakides 1995). Besides these, in the traditional natural dyeing process, the usage of heavy metal salts as mordants is not only harmful to the environment but also a challenging way to control color stability; therefore, the process is not suitable for large-scale production and application (Amutha and Sudhapriya 2020; İşmal and Yıldırım 2019). To solve the technical issues of low dye uptake rate of natural dyes on cotton fiber, it is necessary to ensure that a large amount of dye is adsorbed by the fiber from the dyebath. The uptake of natural dyes can be enhanced if they could be pigmented on cotton fiber.

Cacao is the fruit of the cacao tree (Theobroma cacao), a small evergreen tree of the Malvaceae family, and its seeds are cacao beans that are used to make cacao butter and chocolate (Risner 2008). Cacao extracts are natural polyphenols prepared from the cacao husk. Cacao husk extracts dye (water-soluble) can produce brown shades in dyed textile cotton fibers (Hossain et al. 2020). It can be used as an effective and sustainable natural dye for the coloration of textile fibers as a non-toxic and eco-friendly dye for the dyeing of cellulosic fibers.

Non-aqueous dyeing is an ecologically responsive and green dyeing technology which has been employed as an alternative to the traditional water-based textile dyeing process (Chen et al. 2015; Pei et al. 2019). Water-soluble dyes have strong adsorption capacity in non-aqueous media (Tang and Kan 2020), but it is tough to dissolve water-soluble dyes in a non-aqueous medium (Pei et al. 2019). One dominant characteristic of the non-aqueous dyeing process is that a small amount of water is needed to dissolve the dye (Pei et al. 2019; Wang et al. 2018a). This dyeing system uses an organic solvent that helps to disperse the dye and facilitate the dyeing process. D5 has been employed as an organic solvent in the non-aqueous dyeing system. D5 solvent is a clear, colorless, non-toxic and odorless siloxane fluid, which is safe for humans and the environment (Pei et al. 2019; Tang et al. 2017), and D5 in the residual dyebath can be subsequently recycled and reused by a simple static separation system (Pei et al. 2019). Until now, a number of papers have focused on a D5 dyeing system with synthetic dyes, while very few researchers have reported on natural dyeing of textiles fibers using D5 solvent. Besides, the adsorption behavior of natural dyes in the non-aqueous dyeing system is still unclear and must be further investigated.

The cacao husk extracts were used as a natural dye in D5 medium for the dyeing of cotton fabric, and subsequently, the dyed cotton was treated by a fixation treatment with a cationic dye-fixing agent in the D5 medium (Hossain et al. 2020). The cotton fabric dyed with cacao husk extracts, exhibited better exhaustion in the D5 medium, higher fixation rate and color strength (K/S), and better colorfastness to washing and rubbing compared to the fabric dyed with the same extracts using the conventional aqueous dyeing and dye-fixing methods. The dye exhaustion percentage and dye fixation rate in the D5 medium were 95.6% and 94.8%, respectively, which are significantly higher when compared to conventional water medium dyeing with 48.2% dye exhaustion percentage and 35.3% dye fixation rate (Hossain et al. 2020). Due to its excellent dye exhaustion percentage in D5 medium, the exhaust waterless dyeing method was facilely applied for other soluble natural dyes. It is also worth understanding the adsorption kinetics, isotherms, and thermodynamics of the cacao husk extracts dye/D5 dyeing system.

The cacao husk extracts/D5 reverse micelle dyeing system comprised an organic solvent and miscible fluids stabilized by surfactants and co-surfactants. Surfactants and co-surfactants effectively reduced interfacial tension to form microemulsions (Salager et al. 2013). They created a ‘water pool’ where the water-soluble dyes were properly dispersed and formed an effective emulsion between the dye solution and D5 medium (Wang et al. 2016). When the dry and hydrophilic cotton fiber was immersed in the D5 dyebath, the ‘water pool’ evenly dispersed in the D5 medium, causing fast adsorption of the dye onto the fiber. After adsorption, the “water pool” was damaged. Besides, the adsorption processes were irreversible due to the hydrophobic property of D5. During the rotating dyeing process, the dye solution in D5 medium without dye aggregation (Wang et al. 2016) was continuously transferred from the D5 dye bath to the fiber, resulting in higher dye exhaustion compared to the conventional water medium dyeing. Of course, a small quantity of dye solution possibly desorbed if the “water pool” was not broken; meanwhile, the surfactants and co-surfactants adsorbed on the surface of the fiber also possibly contributed to impeding adsorption of the dye solution. Therefore, the dye solution was not completely absorbed into the fiber, i.e., 100% dye exhaustion (Fig. 1).

Fig. 1
figure 1

Schematic mechanism of cotton fiber dyeing in the cacao husk extracts/D5 microemulsion system

Therefore, the prime objective of this study is to execute the adsorption kinetics, isotherm, and thermodynamic parameters of cacao husk extracts dye/D5 system to better understand the dyeing mechanism of natural dye in D5. The pseudo first-order and pseudo second-order models and intraparticle diffusion were plotted to clarify the kinetic behavior of cacao husk extracts dye. Further, the experimental data were fitted to Langmuir, Freundlich, and Dubinin–Radushkevich isotherm models to identify the adsorption mechanism. This study showed that the adsorption process of the dyeing followed the pseudo second-order kinetics and fit well with the Langmuir isotherm, and the adsorption of the cacao husk onto cotton was accompanied with a physical process.

Experimental

Materials

A pure desized, scoured, and bleached cotton woven fabric (GSM 140 g m− 2, yarn count 40 s Ne) was received from Jiangnan Group Co., Ltd., China. Cacao husk extract natural dye (solid, water-soluble) was purchased from Organic Herb Inc., China, and used without further purification. Decamethylcyclopentasiloxane (D5 ≥ 95.0%) was obtained from Jiangxi Bluestar Xinghuo Silicones Co., Ltd., China, and utilized without additional purification. Alkylalcoholpolyoxyethylene ether (AEO-3) was purchased from Chengdu Aikeda Chemical Reagent Co., Ltd., China. N-octanol (≥ 99.0%) and ethanol (≥ 99.5%) were procured from Sinopharm Chemical Reagent Co., Ltd., China. All other chemicals and reagents were analytical grade.

Dyeing of cotton in cacao husk extracts/D5 microemulsion dyebath

A predetermined amount of surfactant, AEO-3, and co-surfactant, n-octanol, were mixed at a mass ratio of 1:1 with mechanical stirring at room temperature to prepare a mixture (mixture 1). Subsequently, a fixed amount of mixture 1 was added to a D5 solution with continuous stirring at room temperature for preparation of homogeneous, stable, and transparent microemulsions (mixture 2) with 25 g L− 1 of the prepared mixture 1. Finally, a certain volume of cacao husk extracts dye solution containing 100% o.w.f (on the weight of fabric) of water (mixture 3) was slowly added to mixture 2, and the resultant mixture was stirred until a stable and uniform cacao husk extracts dye/D5 microemulsion dyebath (mixture 4) was formed. Then, 2.0 g cotton fabric was immersed into the microemulsion dyebath (mixture 4) with a liquor-to-goods ratio of 20:1. The parameters of the dyeing process, such as dyeing temperatures (333–373 K), dyeing time (5-500 min), and cacao husk extract mass 1–8% o.w.f were varied. All dyeings were carried out in an infrared-heated laboratory dyeing machine (Model HB-HWX24, Ronggui Huibao Dyeing and Finishing Machinery Factory, China). A graphical illustration of the dyeing process of cotton fabric in the cacao husk extracts/D5 microemulsion dyebath is shown in Fig. 2a, and the dyeing profile is depicted in Fig. 2b.

Fig. 2
figure 2

a Dyeing process and b dyeing profile of cotton fabric in the cacao husk extract dye/D5 microemulsion dyebath

Dye exhaustion

Dye exhaustion means the amount of dye adsorbed by the fiber, and exhaustion percentage (E%) is determined by measuring the absorbance of cacao husk extract dyebath before and after dyeing, respectively. Ethanol was used to dilute the cacao husk natural dye/D5 microemulsion dyebath and allowed the dyes to uniformly disperse in the dyebath. A UV-Vis spectrophotometer (TU-1900 UV-VIS, PERSEE, China) was employed to measure the absorbance of the dyebath solution at the wavelength of maximum absorption (477 nm). The exhaustion percentage (E%) was calculated using Eq. 1 (Cai et al. 2018; Su et al. 2019).

$${\text{E}}\%=\left(\frac{{\text{A}}_{\text{o}}-{\text{A}}_{\text{t}}}{{\text{A}}_{\text{o}}}\right)\times 100\%$$
(1)

where Ao is the absorbance of cacao husk extracts dye solution before dyeing and At is the absorbance of cacao husk extracts dye solution after dyeing.

Dye adsorption in fiber

The amount of cacao husk extracts dye adsorbed [D]f,t (g g− 1) by per unit weight of the cotton fabric at time t (min) was calculated by using Eq. 1 (Haque et al. 2020).

$$ [D]_{{f,t}} = \left( {\frac{{[C]_{o} - [C]_{t} }}{m}} \right) \times V $$
(2)

where Co is the initial concentration (g L− 1) of cacao husk extracts dyebath, Ct is the concentration (g L− 1) of cacao husk extracts solution after time t (min), V is the volume of the cacao husk extracts dye solution (L), and m is the weight of cotton fabric (g) used for dyeing in the dyebath. After dyeing, the residual dyebath was diluted by ethanol, and its light absorbance value was measured by the UV-Vis spectrometer, subsequently the concentration of cacao husk extracts in the dyebath (Ct) was calculated using a linear regression equation of the standard curve. Besides, the amount of cacao husk extracts dye adsorbed by per unit weight of the cotton fabric at equilibrium [D]f,e (g g− 1) was calculated using Eq. 2 (Haque et al. 2020).

$${\left[{\text{D}}\right]}_{\text{f,e}}=\left(\frac{{\left[\text{C}\right]}_{\text{o}}-{\left[\text{C}\right]}_{\text{e}}}{{\text{m}}}\right)\times \text{V}$$
(3)

where Ce is the concentration of cacao husk extracts dye solution at equilibrium.

Results and discussion

Influence of dyeing time on the exhaustion percentage

The influence of dyeing time on the E% of cacao husk extract dye into the cotton fiber at different temperatures (333–373 K) with an applied dosage of 3% o.w.f of dye is shown in Fig. 3. It is worth noting that the cacao husk extracts dye was thermally stable at a higher dyeing temperature (Hossain et al. 2020), although some natural plant dyes are liable to thermal degradation above 343 K, for example, watermelon extracts (Liman et al. 2020). The thermal stability of cacao husk extracts dye proves that when dyeing of cotton fabric at high temperatures does not influence the detection of E% by using the absorbance. These results demonstrate that E% increased with increasing dyeing time, and the shortest equilibrium time was observed by 90 min at 363 and 373 K. Equilibrium times were found to be 100, 140, and 200 min at 353, 343, and 333 K, respectively. Higher temperatures led to shorter equilibrium time, and E% also increased with increasing temperature. At a higher temperature, E% was higher because the dye solution was more quickly transferred from the microemulsion dyebath to the fiber. Once the dye solution was adsorbed on the fiber, it did not desorb and move back in the microemulsion dye bath since the adsorption was irreversible because of the hydrophilic properties of cellulosic fiber and hydrophobic properties of D5. The E% increased quickly in the initial stages and gradually decreased with increasing time until it reached equilibrium. It can be seen in Fig. 3 that the dyeing temperature had a significant influence on E% and the increased dyeing temperature leads to a rapid increase in dye exhaustion from 333 to 363 K. Interestingly, at 363 and 373 K, E% shows a similar tendency which implies that for cacao husk extract dyeing, 363 K is the optimal dyebath temperature to promote dye exhaustion into the fiber from the dyebath.

Fig. 3
figure 3

Influence of dyeing time (5–500 min) on E% at different temperatures (333–373 K) with 3% o.w.f cacao husk extracts and a liquor ratio of 20:1

Influence of cacao husk extract mass on exhaustion percentage

Figure 4 shows the E% versus cacao husk extracts dye mass at various dyeing temperatures (333–373 K). As shown in Fig. 4, E% increased with increasing cacao husk extracts mass until 3% o.w.f and then E% started decreasing with increasing dye mass above 3% o.w.f. However, with increased dye mass, the dye mass absorbed in the fiber still increased with mild promotion. Moreover, E% was also temperature-dependent, and maximum dye exhaustion was observed at a higher temperature. However, E% was found to be nearly similar at 353, 363, and 373 K.

Fig. 4
figure 4

Influence of cacao husk extract mass (%, o.w.f) on E% at different temperatures (333–373 K) for 90 min dyeing time with a liquor ratio of 20:1

Influence of dyeing temperature on the exhaustion percentage

The influence of dyebath temperature on the E% of dyes was investigated in the range of 333–373 K temperatures and 3% o.w.f of cacao husk extract. This result (Fig. 5) indicates that the E% increased with increasing temperature and E% increased quickly from 333 to 363 K. When the temperature was at 373 K, the increasing rate of the exhaustion began to slow, which is similar to that at 363 K.

Fig. 5
figure 5

Influence of dyeing temperature (333–373 K) on E% with 3% o.w.f of cacao husk extract dye for 90 min dyeing time with a liquor ratio of 20:1

Substantivity of cacao husk extract dye on cotton fabric

Substantivity plays a vital role in the dyeing process and is defined as the affinity between the substrate and dye molecules, and the substantivity is closely related to the affinity value defined by the thermodynamics of the dye (Ferus-Comelo 2013). Substantivity is generally applied to determine the suitability of a particular dye for a particular type of fiber. Substantivity represents the correlation among liquor-to-goods ratio, and the rate of exhaustion at equilibrium. Substantivity is calculated by using Eq. 3 (Cai et al. 2014).

$$\text{K}= \frac{{\text{E}}_{\text{e}} \times\text{L}}{100 - \%{\text{E}}_{\text{e}}}$$
(4)

where K is the substantivity; %Ee is the percentage of dye exhaustion at equilibrium and L is the liquor-to-goods ratio. A higher K value suggests higher substantivity of cacao husk extracts dye toward cotton fiber and also higher transport of the dye from the dyebath to the fiber. A higher K value specifies that more dye could remain inside the fiber than the dyebath. The parameters of substantivity of dyeing are presented in Table 1. It can be seen from Table 1 that the E% and substantivity (K) of cacao husk extract dye increased with increasing temperature in D5 microemulsion.

Table 1 Substantivity of cacao husk extracts on cotton at different temperatures

Adsorption kinetics

The purpose of kinetic model analysis is to explain the dynamic adsorption interactions between cotton fiber and cacao husk extract dye. To evaluate the kinetics of cacao husk extract dye adsorption onto cotton fiber, experimental data were studied by using the Lagergren’s pseudo first-order, pseudo second-order adsorption kinetic models, and intraparticle diffusion model (Moussout et al. 2018; Tang et al. 2019).

The pseudo first-order kinetic model can be expressed by Eq. 4 (Abraham et al. 2018; Khandaker et al. 2020).

$$ \log ([{\text{D}}]_{{{\text{f,e}}}} - [{\text{D}}]_{{{\text{f,t}}}} ) = \log [{\text{D}}]_{{{\text{f,e}}}} - \left( {\frac{{{\text{K}}_{1} }}{{2.303}}} \right){\text{t}} $$
(5)

where K1 (min− 1) is the pseudo first-order adsorption rate constant. The correlation coefficient (R2), adsorption rate constant (K1), and equilibrium adsorption amount [D]f,e (cal) are determined by employing the linear plot of log ([D]f,e – [D]f,t) versus the adsorption time (t). The fitted line plot is shown in Fig. 6a and the corresponding model fitting parameters of pseudo first-order are listed in Table 2. The correlation (R2) values determined from the pseudo first-order kinetic model are in the range of 0.9301–0.9677, indicating that pseudo first-order model fit for adsorption of cacao husk extracts. Moreover, the [D]f,e (cal) obtained from the calculation is less than the experimental [D]f,e (exp) value demonstrating that the whole adsorption process cannot be described by the pseudo first-order model (Haque et al. 2020). The linear form of pseudo second-order adsorption kinetic model can be written as shown in Eq. 5 (Halysh et al. 2018; Simonin 2016).

$$ \frac{{\text{t}}}{{[{\text{D}}]_{{{\text{f,t}}}} }} = \frac{1}{{{\text{K}}_{2} [{\text{D}}]_{{{\text{f,e}}}}^{2} }} + \left( {\frac{1}{{[{\text{D}}]_{{{\text{f,e}}}} }}} \right){\text{t}} $$
(6)

where K2 (g g− 1 min− 1) is a pseudo second-order adsorption rate constant. Eq. 5 was employed to obtain the graph (Fig. 6b) from which [D]f,e (cal), K2, and R2 were determined and listed in Table 2. The pseudo second-order kinetic model describes the adsorption kinetics well with a higher correlation coefficient (R2 = 0.99). Furthermore, the pseudo second-order kinetic model exhibited closer values when comparing the experimental and calculated [D]f,e values. The closer values between the calculated [D]f,e (cal) and experimental [D]f,e (exp) values suggest that the pseudo second-order model is well fitted to describe the adsorption kinetics of cacao husk extracts dye/D5 microemulsion dyeing of cotton fabric. With increasing dyeing temperature, the experimental [D]f,e (exp) and calculated [D]f,e (cal) values increased, reflecting higher temperatures led to enhanced adsorption capacity of cotton fiber.

Fig. 6
figure 6

Plot of a pseudo first-order kinetic model, b pseudo second-order kinetic model, and c intraparticle diffusion model at different temperatures during the adsorption of cacao husk extracts dye on cotton fabric

This specific diffusion mechanism cannot be described by pseudo first-order and pseudo second-order models (Haque et al. 2020). The intraparticle diffusion model was studied to describe the diffusion mechanism of liquid/solid adsorption (Nesic et al. 2012; Weber and Morris 1940). Plots of this model are often multilinear; usually, the data are graphically analyzed to visually determine the straight line segments (Malash and El-Khaiary 2010). In an adsorption process, dye transfer from the dyebath to the fabric can be completed by either film diffusion (transport of dye to fabric surface) or intraparticle diffusion (diffusion of dye within the pores of fabric) or both film diffusion and intraparticle diffusion (Perez-Ameneiro et al. 2015). The intraparticle diffusion mechanism was calculated using Eq. 6 (Hoque et al. 2019; Perez-Ameneiro et al. 2015).

$${\left[{\text{D}}\right]}_{\text{f,t}}={\text{K}}_{\text{ip}}{\text{t}}^{1/2}+{\text{C}}_{\text{ip}}$$
(7)

where Kip (g g− 1 min− 1/2) is the intraparticle diffusion rate constant and t1/2 is the square root of time. The constant Cip (g g− 1) represents the thickness of the boundary layer where a higher value of Cip indicates a greater influence on the rate control of surface adsorption (Alkan et al. 2007; Li et al. 2012). The graph of t1/2 versus [D]f,t was plotted, and the slope and intercept were used to derive the appropriate parameters (Fig. 6c). The corresponding model fitting parameters are listed in Table 2 where Kip1, Cip1, and \({\text{R}}_{1}^{2}\) are the slope, intercept, and correlation coefficient of the first linear portion, respectively. Similarly, Kip2, Cip2, and \({\text{R}}_{2}^{2}\) are the slope, intercept and correlation coefficient of the second linear portion, respectively. Likewise, Kip3, Cip3, and \({\text{R}}_{3}^{2}\) specify the slopes, intercepts and correlation coefficients of the third linear portion, respectively. For all temperatures (333–373 K), plots have multilinear characteristics that consist of three linear sections with different slopes. The first straight line is the external surface diffusion and the sudden increase in slope indicates that the dye molecules are transported to the outer surface of the cotton fabric through film diffusion and the diffusion is rapid at the initial stages with increasing temperature (Tanzifi et al. 2018). As adsorption of the dye molecules starts rapidly on the surface of the cotton fiber and after, the dye molecules gradually start to penetrate inside the cotton fiber through channels (pores) by intraparticle diffusion, and the slope of the second stage is lower than the first stage (Fig. 6c) (Haque et al. 2020). The third part is considered the final equilibrium stage as shown by the lowered diffusion rate (Roy et al. 2013). In this third stage, due to the extremely low concentration of dye in the dyebath, intraparticle diffusion begins to retard (Nesic et al. 2012; Noroozi et al. 2007). In our study, the above statement is also supported by decreasing the diffusion rate of cacao husk extracts dye in progressive steps (Kip1> Kip2> Kip3). Besides, the dye transport within the pores of cotton fiber was negatively influenced as the boundary layer thickness increased over time (Cip3> Cip2> Cip1). According to the intraparticle diffusion model, it is essential for the [D]f,t versus t1/2 plots (fitted lines) to pass through the origin (0, 0) if the intraparticle diffusion is considered as the only rate-controlling step over the whole adsorption period (Abraham et al. 2018; Roy et al. 2013). However, the fitted lines (Fig. 6c) do not pass through the origin (i.e. nonzero; 0, 0) and the three-stage adsorption process suggests that both film diffusion and intraparticle diffusion are responsible in controlling the rate of the adsorption process (Li et al. 2012; Nandi et al. 2009). Primarily, at the beginning of the dyeing process, the dye adsorption rate on cotton fabric was controlled by the film diffusion (external mass transport) and at a subsequent stage, the process was controlled by the intraparticle diffusion (Haque et al. 2020).

Table 2 Kinetic parameters of pseudo first-order and pseudo second-order kinetic models, and intraparticle diffusion model for cacao husk extract adsorption on cotton fabric at different temperatures

Adsorption isotherms

To choose the most appropriate model for the dye adsorption process, the experimental data were evaluated using Langmuir, Freundlich, and Dubinin–Radushkevich adsorption isotherm models. The plot of experimental data is shown in Fig. 7 and the corresponding model fitting parameters are presented in Table 3.

The linear form of the Langmuir isotherm model is shown in Eq. 7 (Chanzu et al. 2019; Wang et al. 2018b).

$$\frac{1}{{\left[\text{D}\right]}_{\text{f,e}}}= \frac{1}{{\left[\text{D}\right]}_{\text{max}} \times {\text{K}}_{\text{L}}}\times \frac{1}{{\left[\text{C}\right]}_{\text{e}}} + \frac{1}{{\left[\text{D}\right]}_{\text{max}}}$$
(8)

where [D]max (g g− 1) is the maximum theoretical saturated adsorption capacity by per unit weight of cotton fabric and it corresponds to a complete monolayer coverage on the surface, and KL (L g− 1) Langmuir constant, which is related to the energy of adsorption, respectively. The theoretical saturated adsorption amount, [D]max, implies to compare the adsorption performance and indicates the actual limiting adsorption capacity when the surface is entirely covered by adsorbate molecules (Chairat et al. 2005). Correlation coefficients (R2) for different temperatures were more than 0.973, which reflects good fits of this model. The equilibrium parameter (rL), which is also known as the separation factor, was used to study whether the adsorption process was favourable or unfavourable to the Langmuir adsorption model and was derived using Eq. 8 (Cai et al. 2014; Wang et al. 2018b).

$${\text{r}}_{\text{L}}= \frac{1}{1+ {\text{K}}_{\text{L} }{\left[\text{C}\right]}_{\text{o}}}$$
(9)

where the adsorption isotherm is considered as favourable (0 < rL<1), unfavourable (rL>1), linear (rL=1), and irreversible (rL=0), respectively, based on the value of rL for Langmuir adsorption isotherm model (Cai et al. 2014; Khandaker et al. 2020). The linear form of the Freundlich isotherm model is represented below (Eq. 9) (Abraham et al. 2018; Chanzu et al. 2019).

$${\text{log}} \left[{\text{D}}\right]_{\text{f,e}}= \log {\text{K}}_{\text{F}}+ \left(\frac{1}{{\text{n}}}\right){\text{log}}{ \left[\text{C}\right]}_{\text{e}}$$
(10)

where KF (g g− 1) and n are Freundlich adsorption isotherm constants, which are related to adsorption capacity and intensity of the adsorption, respectively. The adsorption process is considered as favourable and reflects good adsorption properties when the n value ranges from 1 to 10 (1/n < 1), whereas adsorption is assumed unfavourable if 1/n > 1 (Khandaker et al. 2020). A closer value of 1/n to zero correlates to a more heterogeneous adsorbent surface (Hameed et al. 2009; Tanzifi et al. 2018). The average correlation coefficient (R2) of the Langmuir isotherm model was higher than the Freundlich isotherm model. Results indicate that the adsorption process followed the Langmuir adsorption isotherm model and suggests that the adsorption of the cacao husk extracts dye took place on the homogeneous surface of cotton fabric by monolayer adsorption with no interaction between the adjacent adsorbed molecules. The maximum monolayer adsorption capacity [D]max was 0.367 g g− 1. Table 3 shows that all values of separation factor (rL) are in the range 0 < rL<1, which suggests that the adsorption process of the cacao husk extracts on the cotton fabric is highly favourable. The value of n is in the range of 1.02–1.36, which reveals that the adsorption process is favourable and the lower heterogeneous surface is confirmed by the 1/n (0.74–0.98) value (Tanzifi et al. 2018).

Fig. 7
figure 7

Plots of a Langmuir, b Freundlich, and c Dubinin–Radushkevich isotherm models for cacao husk extract dye adsorption on cotton fabric at different temperatures

The Dubinin–Radushkevich model is a more general model, not based on assumptions of a homogeneous surface or constant adsorption potential, and it can give insight into the biomass porosity and adsorption energy (Inyinbor et al. 2016). Since the mechanism of the adsorption process cannot be determined by the Langmuir and Freundlich adsorption isotherms (Srivastav et al. 2013), for further validation of the adsorption type whether physisorption or chemisorption, the Dubinin–Radushkevich adsorption isotherm model was plotted (Inyinbor et al. 2016). The linear form of the Dubinin–Radushkevich (D-R) isotherm model is shown in Eq. 10 (Haque et al. 2020).

$${\text{ln} \left[\text{D}\right]}_{\text{f,e}}= {\text{ln}}\left[{\text{D}}\right]_{\text{m}}-{\text{B}}_{\text{dr}}{\upepsilon }^{2}$$
(11)

where ln [D]m (g g− 1) and Bdr (mol2 J− 2) are the maximum adsorption capacity and D-R adsorption isotherm constant, respectively, and \({\upepsilon }\) is the constant known as the Polanyi potential, which can be calculated by Eq. 11 (Haque et al. 2020).

$${\upepsilon }={\text{RT}}\, {\text{ln}}(1+ \frac{1}{{\left[\text{C}\right]}_{\text{e}}})$$
(12)

where R is the universal gas constant (8.314 J mol− 1 K− 1) and T is the absolute temperature in Kelvin (K). The D-R adsorption constant (Bdr) values were used to calculate the mean adsorption energy (E) per molecule of the sorbate when it was transferred to the surface of the fabric by using Eq. 12. The value of the mean adsorption energy (E) gives information on whether the adsorption process is physical or chemical. When the value of E is between 8 and 16 kJ mol− 1, the adsorption process is indicated to be ion-exchange or chemical adsorption, and if the value of E is below 8 kJ mol− 1, the adsorption process is said to be physical adsorption in nature (Haque et al. 2020; Srivastav et al. 2013).

$$\text{E}=\frac{1}{\sqrt{2\text{B}}}$$
(13)

A good correlation (R2 > 0.973) of adsorption data with the D-R isotherm model was found and the experimental data fit well with the D-R isotherm. The maximum adsorption capacity [D]m obtained by the D-R model is 0.257 g g− 1 and with increasing temperature, the [D]m value increased, except at 373 K temperature. In contrast, the values of D-R constants (Bdr) decreased with increasing temperatures. The mean adsorption energies (E) were found to be 3.37, 3.96, 4.39, 4.30, 5.00 kJ mol− 1 at 333, 343, 353, 363, and 373 K, respectively. Therefore, the cacao husk extracts dye adsorption onto cotton is a physical adsorption process as the values of E are less than 8 kJ mol− 1. This finding is consistent with our previous report (Hossain et al. 2020) with regards to the poor dye fixation rate after the cacao husk extracts/D5 dyeing of cotton fabric. Therefore, it implies that after the cacao husk extracts/D5 dyeing, an auxiliary fixation treatment is essential to improve the dye fixation rate.

Table 3 Parameters of Langmuir, Freundlich and Dubinin–Radushkevich adsorption isotherm models for cacao husk extract dye adsorption onto cotton fabric at different temperatures

Thermodynamic studies

Thermodynamic studies of an adsorption process are required to understand whether the process is spontaneous, or exothermic or endothermic. To evaluate the thermodynamic feasibility of the adsorption process of cacao husk extract dye onto cotton fabric at different temperatures (333–373 K), basic thermodynamic parameters, including Gibb’s free energy change (ΔG°), standard entropy change (ΔS°), and standard enthalpy change (ΔH°) were calculated by using the Van’t Hoff equations in Eqs. 13 and 14 (Chairat et al. 2005; Tan et al. 2008).

$${\text{ln}}\left[ {\text{K}} \right]_{{\text{t}}} = \frac{{\Delta {\text{S}}^{ \circ } }}{{\text{R}}} - \left( {\frac{{\Delta {\text{H}}^{ \circ } }}{{\text{R}}}} \right)\frac{1}{{\text{T}}}$$
(14)
$$\Delta {\text{G}}^{\circ}= \Delta {\text{H}}^{\circ}-\text{T}\Delta {\text{S}}^{\circ}$$
(15)

where R and the T are universal gas constant (8.314 J mol− 1 K) and absolute temperature (K), respectively. In addition, [K]t is the distribution coefficient which can be calculated by employing Eq. 15 (Chairat et al. 2005; Tan et al. 2008).

$$ [{\text{K}}]_{t} = \frac{{[{\text{C}}]_{{{\text{a}},{\text{e}}}} }}{{[{\text{C}}]_{{\text{e}}} }} $$
(16)

where [C]a,e (g L− 1) and [C]e (g L− 1) are the cacao husk extracts concentration adsorbed and left in the dyebath at equilibrium, respectively. Three different initial dye concentrations (Co = 0.5, 1.0, and 1.5 g L− 1) were used, and the plots of ln[K]t versus 1/T are shown in Fig. 8. A linear plot with a correlation coefficient R2 > 0.91 is confirmed in Fig. 8. The thermodynamic parameters ΔH° and ΔS° were calculated from the slope (−ΔH°/R) and intercept (ΔS°/R) of the Van’t Hoff plots (Eq. 13) (Islam et al. 2010). The Gibbs free energy (ΔG°) was calculated by using the values of ΔH° and ΔS°, as shown in Eq. 14. The calculated values of ΔG°, ΔH°, and ΔS° under different dyeing conditions are shown in Table 4 and values of standard enthalpy change (ΔH°) are positive, indicating that the cacao husk extracts dye adsorption was an endothermic process (Inyinbor et al. 2016; Khandaker et al. 2020). The positive values of ΔS° specify high affinity of cotton fabric to cacao husk extracts dye and increased randomness at the solid/liquid interface (Inyinbor et al. 2016; Tan et al. 2008). The negative values of ΔG° show that the cacao husk extract dye adsorption on cotton fabric was favourable and spontaneous with a high affinity of the adsorbate to the surface of the adsorbent (Inyinbor et al. 2016; Tan et al. 2008). The values of ΔG° decreased (higher negative values) with increasing temperature, indicating that the spontaneity of the adsorption process was enhanced with increasing temperature (Inyinbor et al. 2016).

Fig. 8
figure 8

Van’t Hoff plots, ln [K]t versus 1/T at different initial cacao husk extracts concentrations

Table 4 Adsorption thermodynamic parameters of cacao husk extract dye onto cotton fabric at different temperatures and initial dye concentrations

Conclusions

This research focused on the sustainable waterless dyeing of cotton fabric with natural cacao husk extracts dye using a D5 microemulsion system. The adsorption behavior of cacao husk extracts dye on cotton was studied to understand the dyeing mechanism of natural dye in D5 non-aqueous media, which improved the dyeing performance. The research results demonstrate that a higher dye uptake was achieved using a D5 microemulsion system and almost 97% of the cacao husk extracts was adsorbed into the cotton fiber. The pseudo second-order kinetic model fit well with the adsorption process. The adsorption equilibrium isotherm was best fitted to the Langmuir isotherm model. The Dubinin–Radushkevich adsorption isotherm model specified that the cacao husk extracts dyeing of cotton fabric was a physical adsorption process. The positive value of ΔS° signified that the randomness of the solid-liquid interface increased during cacao husk extracts adsorption on cotton fabric in D5 microemulsion. The negative values of ΔG° indicated the spontaneous nature of adsorption, while the positive values of ΔH° showed that the adsorption reaction was endothermic. Therefore, non-aqueous dyeing technology provides an innovative way to achieve a higher absorption rate of natural dyes. This research suggests a low residual effluent-free dyeing of cotton fabric due to excellent dyebath exhaustion by using the cacao husk extract dye/D5 microemulsion system, which is a clean dyeing process that saves water and environment. The developed process could be utilized in the industry level for the sustainable dyeing of textiles.