1 Introduction

The rapid expansion and growth of industrial, technological, and scientific activity increase human population and globalization, which, while providing many benefits, can also bring many difficulties for the overall ecosystem [1, 2]. The wastes produced by this process constitute a significant hazard to the atmosphere and terrestrial and aquatic habitats. In recent years, contaminants created during the manufacturing process in numerous industries such as textile, food, cosmetics, automobile, paper, and others have been mixed into groundwater, reducing water quality and causing significant harm to the living population. These wastes dumped into groundwater comprise a variety of hazardous, poisonous, and non-biodegradable components that pollute the ecosystem [3, 4].

The textile sector consumes a large quantity of water during production and discharges wastewater from textile dyes, which are among the biggest pollutants, into groundwater. Textile dyes are well-known to be exceedingly hazardous to human health and the aquatic habitat [5]. Additionally, dyes interfere with photosynthetic activities by blocking sunlight from reaching aquatic environments, which has a negative influence on aquatic ecology [6]. Among textile dyes, azo dyes are numerous and account for 50% of annual output. Rhodamine B (RhB) dye, one of the most poisonous dyes found in textile wastewater, is commonly employed as a colorant in the textile sector because of its great stability and biodegradability. RhB dye is often used in ballpoint pens, paints, leather, paint lasers, carbon plates, stamp pad inks, crackers, and explosives [7,8,9]. Since RhB dye is a water-soluble dye, it can have negative impacts on the aquatic ecosystem. Furthermore, when RhB dye is released into the watery environment, it reduces light penetration, making photosynthesis more difficult and, as a result, lowering oxygen levels in the water, resulting in the decline or extinction of aquatic life. As a result, before being discharged into the aquatic environment, such dyes should be disposed of [10,11,12].

In recent years, various physicochemical techniques such as reverse osmosis, adsorption, ion exchange, solvent extraction, chemical oxidation, electrocoagulation, and coagulation-flocculation have been used for the treatment of wastewater containing dyes [13]. Among these techniques, adsorption is preferred more than other techniques due to its advantages such as simplicity, naturalness, low cost, and high efficiency. The capacity of adsorbents used in the adsorption technique to remove various pollutants determines the efficiency of the adsorption process [14,15,16]. Various adsorbents such as polymers [17], composites [18], clays [19], activated carbon [20], nanomaterials [21], and natural plants [22] are used in the adsorption process.

Agro-waste biomaterials are environmentally beneficial, affordable, low-density, and have equivalent mechanical qualities [23]. Among these biomaterials, the St. John’s wort plant, whose Latin name is Hypericum perforatum L. (HP), is a plant belonging to the Hypericaceae family. Traditionally, it is widely used as herbal tea or food supplement. It contains many chemical compounds that may show pharmacological and biochemical activity. In addition, it can also show antidepressant properties due to chemicals such as naphthodianthrones, hypericin, and pseudo-hypericin [24,25,26].

HP is a cheap and abundant natural plant that can be used in various fields, making it a suitable option for adsorption, which has not yet been reported in the literature. The present study aimed to achieve effective and rapid removal of RhB dye from wastewater using an adsorbent derived from this plant. The influence of various parameters on the removal process was studied, and equilibrium, kinetic, and thermodynamic tests were conducted.

2 Materials and methods

Table 1 contains information about the study’s resources. Without additional purification, all compounds were utilized. The chemical structure of RhB dye is presented in Fig. S1.

Table 1 Chemicals used in this study

HP plants from herbalists in Istanbul, Turkey, were used as adsorbents in the context of agro-waste. The plants were properly cleaned with distilled water and allowed to air dry. Using a ball mill to grind the dried HP plants into < 100 mesh particles, they were then dried at 105 °C for 2 days. For use in removal experiments, they were thereafter kept in a desiccator.

A Nicolet IS10 Thermo FTIR-ATR spectrophotometer, Malvern PANalytical X’Pert PRO XRD, Thermo Scientific Apreo 2 S LoVac FESEM, and Ohaus Starter 3100 pH-meter were used to perform FTIR-ATR (Fourier transform-attenuated total reflectance), FESEM (field emission scanning electron microscope), XRD (X-ray diffractometer), and pHpzc analyses. FTIR-ATR analyses were used to detect functional groups on the surface of HP and their changes pre- and post-removal. XRD analysis was used to determine the crystalline structure of HP. FESEM analyses were used to examine the morphology of HP and its changes pre- and post-adsorption. The point of zero charge (pHpzc) tests were conducted from the solid addition technique [27, 28].

An individual batch system was used to study the removal process of RhB dye using HP. The experiments were conducted at constant stirring speed (120 rpm) and repeated three times to minimize error. The solution pH was adjusted with 0.1 M NaOH and 0.1 HCl solutions obtained from Sigma-Aldrich, and pH tests were conducted between 2 and 12. The concentration range in the experiments was chosen as 10–50 mg/L. At the end of the experiments, the samples were analyzed at 554 nm using a UV-vis spectrophotometer. The removal percentage of RhB dye and its capacity were determined according to Eqs. (S1) and (S2). Different isotherm and kinetic models were used for kinetic and equilibrium experiments, and the linear equations of these models were presented in Table 2. Furthermore, the accuracy and applicability of the kinetic and isotherm experiments were evaluated using five different error functions (SSE, ARE, RMSE, \({\chi }^{2}\), and EABS). The equations of the error functions were also presented in the supporting information. Additionally, RhB removal tests at three different temperatures were carried out to look into the thermodynamics of the removal process [29,30,31].

Table 2 The equations and parameters of isotherm, kinetic, and thermodynamic used in this work

3 Results and discussion

3.1 Characterization of HP

FTIR-ATR spectra of HP before and after the adsorption process are illustrated in Fig. 1. From the spectra, similar peaks were depicted. From the spectrum before adsorption, the peaks obtained at 3285, 2917, 2849, 1604, 1440, and 1023 cm−1 were assigned to -OH stretchings, C-H stretchings, C = O stretchings, C-H bendings, and C-O stretchings, respectively [26]. For the sample after adsorption, a similar spectrum was obtained that of before adsorption. Additionally, some of the peaks were observed to shift. These shifts were assigned to the electrostatic interactions between dye molecules and adsorbent surfaces.

Fig. 1
figure 1

The FTIR-ATR spectra of HP before and after RhB adsorption (wavenumber range: 500–4000 cm−1)

The XRD pattern of HP is shown in Fig. 2. HP’s pattern consists of up of wide and sharp peaks localized between 2q = 10–30°, indicating its semicrystalline structure [32]. The peak at about 2q = 22° is assigned to the crystalline form of cellulose I. The range between 2q = 15° and 2q = 25° corresponds to the amorphous phases of lignin, hemicellulose, and cellulose [33].

Fig. 2
figure 2

The XRD pattern of HP (2q = 0–60 °C, 40 mA, 45 kV)

The FESEM images of HP are presented in Fig. 3. Before dye removal, HP was found to have a cleft, rough, irregular, and complex surface suitable for RhB dye retention. After the removal of RhB dye from water, it was found that the surface of HP became almost smooth and more consistent, and the dye covered the irregularities on the surface.

Fig. 3
figure 3

The FESEM image of HP pre- (a) and post- (b) removal of RhB dye (particle size: 5 μm, magnification: 25.00 KX, electron high tension: 10.00 kV, and working distance: 2.82 mm)

3.2 Influence of optimum conditions

Figure 4a depicts the relationship between the pH of the RhB solution and the removal percentage. From the results, it was observed that the percentage removal of RhB using HP increased from 33.96 to 73.83% as the solution pH increased from 2 to 7. After this value, it decreased slightly and increased to 80.03% at pH = 12. This is thought to be because of the electrostatic attraction between RhB and HP surface. In addition, the surface charge of HP was determined by pHpzc analysis, and the results are illustrated in Fig. 5. The pHpzc value of HP was calculated as 5.83. When the solution pH is above the pHpzc value, the acidic oxygen groups on the surface of HP undergo deprotonation and the negative charge density on the surface enhances, which leads to an increase in the removal percentage of the cationic RhB dye. On the flip side of the coin, RhB dye exists in aqueous solutions in cationic and zwitterionic states. When the solution pH is above pKa = 3.7, similarly, the carboxyl group of RhB dye undergoes deprotonation, which leads to the conversion of the cationic to the zwitterionic form. This leads to the emergence of electrostatic repulsion between RhB and negatively charged HP surface functional groups. If the solution pH is less than pHpzc, the HP surface is protonated, increasing the positive charge density on the surface and causing an electrostatic repulsion force with the cationic RhB dye and diminishing the removal percentage [20, 34, 35].

Fig. 4
figure 4

The influence of optimum conditions: a initial pH (constant dosage: 0.1 g, volume: 50 mL, speed: 120 rpm, contact time: 45 min, concentration: 20 mg/L, temperature: 25 °C), b HP dose (contact time: 45 min, volume: 50 mL, speed: 120 rpm, pH ≅ 7, concentration: 20 mg/L, temperature: 25 °C), c RhB concentration (constant dosage: 0.1 g, volume: 50 mL, speed: 120 rpm, pH ≅ 7, contact time: 45 min, temperature: 25 °C), and d) ontact time (constant dosage: 0.1 g, volume: 50 mL, speed: 120 rpm, pH ≅ 7, concentration: 20 mg/L, temperature: 25 °C)

Fig. 5
figure 5

The pHpzc of HP (agitation speed: 120 rpm, contact time: 48 h, pH range: 2–12, volume: 50 mL, adsorbent dosage: 0.2 g)

It is of great importance to determine the optimum dose of HP for the effective removal of RhB dye from water. For this purpose, the HP dose was varied between 0.01 and 0.30 g, keeping other parameters constant. The results were presented in Fig. 4b. As a result, the optimal HP dose for maximum removal of RhB was 0.1 g, after which there was no significant increase in the removal percentage. The rapid reaching of reaction equilibrium is because of the high amount of accessible active parts on the surface at low HP doses. Similar results are also found in the literature [36, 37]. After 0.1 g HP dose, there was no significant increase as the surface-active sites were saturated with RhB molecules. At a dose of 0.1 g HP, the removal percentage reached approximately 86%. This result indicated that HP could be a potential adsorbent for wastewater treatment.

The influence of initial concentration on removal percentage and capacity was evaluated in the range of 10 to 50 mg/L, and the results are presented in Fig. 4c. The results showed that the adsorption capacity of RhB by HP was a function of initial RhB concentration and the removal percentage diminished with enhancing concentration. At low RhB concentrations, the ratio of the number of active sites of the HP to the available reactive sites of the RhB dye decreases and the possibility of interaction between them increases, thereby increasing the adsorption capacity [38].

The change in the removal percentage depending on the contact time between HP and RhB solution was analyzed in the range of 0–120 min, and the results are given in Fig. 4d. It was discovered that as the RhB solution and HP’s contact duration lengthened, the elimination percentage rose. At the contact time of 45 min, the removal percentage of RhB on HP reached a maximum of 70.78%, 74.98%, and 77.68% for 298 K, 308 K, and 318 K, respectively. After 45 min, there was no significant change as the active parts reached saturation. These findings led to the calculation of a 45-min contact period for studies on equilibrium.

3.3 Adsorption isotherms

To comprehensively study the interactions between HP and RhB and the functioning of the process, isotherm models were applied to the adsorption process. The amount of RhB adsorbed on HP increases rapidly at low concentrations and gradually reaches a plateau at high concentrations (Fig. 6a) [39,40,41]. The raw data were applied to four different isotherms. The linear equations of the isotherm models are given in Table 2.

Fig. 6
figure 6

Isotherm curves of RhB adsorption onto HP (a) and linear isotherm plots (constant dosage: 0.1 g, volume: 50 mL, contact time: 45 min, speed: 120 rpm, pH ≅ 7): Langmuir (b), Freundlich (c), D-R (d), and Temkin (e)

The isotherm parameters and results obtained from the linear plots in Fig. 6 are presented in Table 3. In a comparison of the \({r}^{2}\) values of the Langmuir and Freundlich, it was found that the Langmuir isotherm had a greater correlation, indicating that this model matches the experimental data better. Furthermore, as seen from Table 3, the \({q}_{m}\) value from Langmuir isotherm was determined as 196.08 mg/g at 298 K. The Langmuir hypothesis states that all active parts on the monolayer surface of HP have the same energy and that RhB molecules are anchored to homogenous areas of that surface [19, 42]. Table 4 shows the comparison of the removal capacity of HP for RhB with existing adsorbents in the literature. The D-R model was used to apply the experimental results to examine the nature of the interaction between the RhB molecule and the HP surface. According to this model, the process is physical if the \({E}_{D-R}\) value is lower than 8 kJ/mol and chemical if the \({E}_{D-R}\) value is greater than 8 kJ/mol [43,44,45]. As shown in Table 3, the \({E}_{D-R}\) value was calculated as 0.55, 0.59, and 0.65 kJ/mol for 298, 308, and 318 K, which indicates that the process is physical for all temperatures. The Temkin isotherm disregards extremely low and extremely high concentrations and assumes that the heat of adsorption will decrease linearly as opposed to logarithmically. Furthermore, it assumes that bonding energy will be dispersed equally up to a specific maximum [46].

Table 3 Isotherm parameters for the adsorption of RhB dye on HP (constant dosage: 0.1 g, volume: 50 mL, contact time: 45 min, speed: 120 rpm, pH ≅ 7)
Table 4 Summary of \({q}_{m}\) values for RhB dye by various sorbents recorded in literature

According to the \({r}^{2}\) values in Table 3, the order of isotherm feasibility was determined as Langmuir > Temkin > Freundlich > D-R. Furthermore, error analyses were performed between \({q}_{e,exp}\) and \({q}_{e,cal}\) values, and the results are depicted in Table 5. As seen in Table 5, it was observed that there was a similar order of fit between the isotherm models.

Table 5 Error functions for the adsorption of RhB dye on HP

3.4 Adsorption kinetics and possible mechanism

To examine the kinetics of adsorption of RhB dye onto HP, quasi-first-order and quasi-second-order models were utilized [52, 53]. The linear equations are presented in Table 2. According to Table 2, time-dependent linear kinetic plots were plotted, and the results are shown in Fig. 7. The kinetic parameters and rate constants obtained from Fig. 7 are presented in Table 6. As seen in Table 6, it was observed that the adsorption of RhB dye on HP followed the quasi-second-order kinetic due to the \({r}^{2}\) values close to 1. Also, when \({q}_{e,exp}\) and \({q}_{e,cal}\) values were compared, it was found that the quasi-second-order kinetic was more appropriate. In addition, the error functions calculated between \({q}_{e,exp}\) and \({q}_{e,cal}\) values also proved that the quasi-second-order kinetic is more feasible for the process.

Fig. 7
figure 7

The linear kinetic plots of RhB adsorption onto HP (constant dosage: 0.1 g, volume: 50 mL, concentration: 20 mg/L, speed: 120 rpm, pH ≅ 7): a quasi-first-order and b quasi-second-order

Table 6 Kinetic parameters for the adsorption of RhB dye on HP (constant dosage: 0.1 g, volume: 50 mL, concentration: 20 mg/L, speed: 120 rpm, pH ≅ 7)

Figure 8 suggests the hypothesized adsorption mechanism of RhB dye on HP. As can be inferred from the FTIR-ATR spectra in Fig. 2, hydroxyl and carboxyl groups are present on the HP surface, and RhB dye is adsorbed onto the HP surface via electrostatic interaction with these functional groups and H-bonds.

Fig. 8
figure 8

The possible mechanism of RhB adsorption onto HP

Experimental investigations employing NaCl and CaCl2 salts at various concentration levels were conducted in order to verify that the adsorption process is mediated by electrostatic interaction and to investigate the impact of different salt solutions on the adsorption process. Figure 9 presents the findings of an investigation into the impact of NaCl and CaCl2 salts on the RhB adsorption process on HP. Figure 9 illustrates how an increase in salt concentrations causes the adsorption effectiveness of RhB dye to decrease. This is explained by the fact that the presence of CaCl2 and NaCl protects the active sites on the adsorbent surface and raises the ionic strength of the aqueous medium. RhB dye molecules’ electrostatic attraction to negatively charged active sites on the adsorbent surface may be weakened by the presence of positively charged Na+ and Ca2+ ions in aqueous solutions, which may also lessen the negative charge of the active sites [54, 55].

Fig. 9
figure 9

The effect of salt concentration onto RhB adsorption on HP (constant dosage: 0.1 g, volume: 50 mL, concentration: 20 mg/L, speed: 120 rpm, pH ≅ 7)

3.5 Adsorption thermodynamics

Thermodynamic parameters for the adsorption of RhB dye on HP were found from the linear thermodynamic equations given in Table 2, and the results are presented in Fig. 10 and Table 7. As seen in Table 5, negative \({\varDelta H}_{A}^{S}\) and \({\varDelta G}_{A}^{S}\) values indicated that the process was exothermic (− 13.58 kJ/mol) and spontaneous (− 26.61 kJ/mol). The positive value (+ 43.74 kJ/mol) of \({\varDelta S}_{A}^{S}\) indicated that the RhB molecules on the HP surface were more randomly arranged than in the solution.

Fig. 10
figure 10

The Van’t Hoff plot of RhB adsorption onto HP (constant dosage: 0.1 g, volume: 50 mL, contact time: 45 min, speed: 120 rpm, pH ≅ 7)

Table 7 Thermodynamic parameters for adsorption of RhB dye on HP (constant dosage: 0.1 g, volume: 50 mL, contact time: 45 min, speed: 120 rpm, pH ≅ 7)

3.6 Reusability experiments

A 0.1 M HCl solution was utilized for the reusability tests. Under ideal circumstances, adsorption and desorption investigations were conducted, and Fig. 11 shows the outcomes. Protons displace the RhB dye from the binding sites in an acidic solution. This makes sense since factors that affect regeneration include molecule size, contact point count, temperature, surface concentration, and the number of adsorbed species in the solution [56]. The adsorption effectiveness dropped from 72.32 to 49.87% after 5 cycles, according to the reusability experiments. The adsorbent’s ability to effectively remove cationic dyes from aqueous solutions across multiple uses was demonstrated by these results.

Fig. 11
figure 11

The reusability of RhB adsorption onto HP (constant dosage: 0.1 g, volume: 50 mL, contact time: 45 min, speed: 120 rpm, pH ≅ 7)

4 Conclusions

In this work, HP was successfully utilized to obtain an efficient and low-cost adsorbent for the removal of RhB dye from wastewater. The characterization of HP was performed by FTIR-ATR, FESEM, XRD, and pHpzc analyses. Additionally, post-adsorption FTIR-ATR and FESEM analyses were performed to investigate the evolution of the process. It was observed that pH played an important role in RhB removal and a superior interaction occurred at higher pH values. According to the \({r}^{2}\) values and error functions, the equilibrium data were found to best fit the Langmuir isotherm, and from this isotherm model the \({q}_{m}\) value was calculated as 196.08 mg/g at 298 K. Kinetic tests illustrated that the process followed a quasi-second-order kinetic. This was also proved by error analysis. From the thermodynamic data, the removal of RhB on HP was found to be exothermic and spontaneous. Reusability studies showed that HP plant can be used repeatedly as a low-cost adsorbent for the removal of cationic dyes from aqueous solutions. All the results showed that HP could be an interesting and potential adsorbent for the effective removal of cationic pollutants from water for the development of low-cost and environmentally friendly adsorbents.