1 Introduction

The treatment of wastewater is a significant challenge for the textile dyeing business. The industrial sector, particularly industries involved in plastics, paper, dyestuffs, and textiles, utilize dyes for the purpose of coloring their goods. Additionally, these industries have a significant water consumption requirement. Numerous dyes and their resultant degradation products has the potential to exhibit toxicity towards living organisms. Hence, the process of decolorization or separation of dyes holds considerable importance in the context of wastewater treatment prior to its discharge into natural water sources [1]. Approximately 10–15% of dyes in the form of wastewater are released into the environment during the dyeing process. The public's opinion of water quality is significantly influenced by the aesthetic aspect of water color. Synthetic dyes pose a significant challenge in terms of removal due to their intricate aromatic molecular structures, which contribute to their enhanced stability and hinder their biodegradation [2, 3]. Due to their inherent chemical composition, dyes exhibit a notable resistance to fading when subjected to various external factors such as light, water, and a wide range of chemicals [4,5,6]. Dye wastewater is a particularly complex category of contaminants due to its visible nature and limited biodegradability [7,8,9]. Dyes are chemicals with intricate molecular structures that possess the ability to attenuate light, modulate temperature, and inhibit oxidation. The aforementioned characteristics render the dyes resistant to degradation within the environment, resulting in their accumulation within the food chain. Certain color compounds possess hazardous and carcinogenic properties, leading to the manifestation of allergies and genetic alterations. Cationic dyes, exemplified by crystal violet, have been found to be associated with several health conditions including dizziness, allergic reactions, cyanosis, as well as respiratory and digestive impairments. Cationic dyes pose a greater degree of risk as compared to anionic dyes. Crystal violet (CV), also known as methyl violet, is a widely utilized cationic dye in several fields such as textiles, scientific research, and pharmaceuticals. According to previous studies [10, 11], concentrations of the CV exceeding 1 mg/L have been found to exhibit toxicity towards both people and animals. The presence of several hazardous substances in dyes poses a significant threat to the overall health and welfare of living organisms. The textile business employs a range of dye structures, including reactive dyes, acid dyes, basic dyes, diazo dyes, azo dyes, and anthraquinone dyes. The application of dyes in the textile industry can be categorized into three groups: a) anionic dyes, which include direct, acidic, and reactive dyes, b) non-ionic dyes, specifically disperse dyes, and c) cationic dyes, encompassing all base colors. These dyes find their application in the coloring of silk, leather, and wool [12,13,14]. The utilization of reactive dyes in the dye production process and subsequent application in textile dying might present challenges for both plant personnel engaged in dye production and textile workers involved in the dying process. There is evidence suggesting that certain reactive dyes have the potential to induce contact dermatitis, rhinitis, allergic conjunctivitis, occupational asthma, or other allergic reactions among individuals employed in relevant occupations [15]. Hence, it is imperative to eliminate this color from the wastewater prior to its discharge into the environment.Various techniques are at one's disposal for the attainment of efficient color elimination. A range of physical approaches, including membrane filtration processes such as reverse osmosis, nano-filtration, and electro dialysis, as well as various adsorbents in adsorption techniques, have been employed [16]. Several chemical procedures, including oxidative processes, the use of Fenton reagents, and ozonation, are commonly employed. The biological process removes dissolved materials in a manner similar to self-depuration, but with additional and enhanced effectiveness compared to clariflocculation. The efficacy of dye removal is contingent upon several elements, including the ratio of organic load to biomass in the oxidation tank, the temperature of the system, and the concentration of oxygen [17]. The effectiveness of color eradication by the integration of biological therapy with existing conventional biological treatment procedures has been found to be unsatisfactory. The adsorption procedure is widely recognized as a significant treatment technology due to its cost-effectiveness, potential as an alternative method, and effectiveness in removing dyes [18,19,20,21]. When the objective is only focused on treatment, the utilization of activated carbon as an adsorbent has been identified as an appropriate method for the removal of organic dyes from wastewater. In contrast, when the focus is primarily on the recycling of valuable chemicals or organic compounds, other adsorbents such as polymeric adsorbents that provide a more convenient desorption process (e.g., by the use of solvents) may be employed [22]. Various materials, including nanoparticles, super absorbents, charcoal, and activated carbon, can be employed for the purpose of eliminating organic substances, such as colors, from wastewater. Several adsorbents have been previously documented for the purpose of eliminating harmful dyes, including activated carbon [23], peach gum [24], ginger waste [25], rice husks [26], almond shell [27], biocomposites [1], as well as synthetic polymer-based composites and copolymers [28,29,30,31,32]. For instance, various adsorbents based on polymers, including grafted cotton textiles [33], carboxylated alginate beads [34], and Phosphoric Acid Doped Pyrazole-g-Polyglycidyl Methacrylate [35], have been examined for their efficacy in eliminating Methylene Blue dye from wastewater contaminated with this substance.

Furthermore, the global industry has led to the widespread pervasion of environmental degradation caused by heavy metals. Nickel, copper, cadmium, manganese, and chromium are commonly recognized as dangerous heavy metals. These heavy metals are often employed and are prevalent as environmental contaminants [36, 37]. Low amounts of these metals are necessary as co-factors for enzymes, but high concentrations can be highly harmful to living cells by blocking metabolism.

Potassium permanganate is frequently employed as a powerful oxidizing agent in several fields to treat organic and inorganic chemicals in soil and water solutions [38, 39]. As far as we know, only a limited number of papers have discussed the elimination of permanganate ions. Adsorption is a cost-effective and effective technique for eliminating Mn (VII) from wastewater. Various adsorbents, including activated orange peel powder [40], activated carbon [41, 42], Prosopis cineraria leaf powder [43], and Millet husk [44], are used for this purpose.

Chromium predominantly occurs as either Cr (VI) or Cr (III) in the natural environment. Chromium (III) species exhibit lower solubility and greater stability in comparison to chromium (IV) species, which display excellent solubility and mobility in aqueous solutions [45]. Chromium (VI) has more mobility compared to chromium (III), therefore increasing its ability to contaminate groundwater. The elevated danger posed by chromium (VI) is linked to its heightened reactivity and ability to cause cancer [46]. Short-term exposure to Cr (VI) results in symptoms such as nausea, diarrhea, liver and renal impairment, dermatitis, internal bleeding, and respiratory issues [5]. Inhaling this substance can lead to immediate and severe harm, including irritation, ulceration of the nasal septum, and respiratory sensitization, which can result in asthma [47]. Consumption can impact the functioning of the kidneys and liver. Direct contact with the skin can lead to systemic toxicity, extensive burns, and hinder the healing process of wounds or abrasions. Failure to receive prompt treatment may result in the development of ulceration and severe chronic allergic contact dermatitis. Exposure of the eye might result in irreversible harm. Adsorption is a cost-effective and effective technique for eliminating Cr (VI) from wastewater. Various adsorbents, including charcoal [48], activated carbon from diverse sources [49,50,51], polyaniline and its composites [52], and Chitosan [53], are used for this purpose.

Recently natural and acrylic polymers using diazo acid Blue 11 (AB 113) as a chelating agent were designed to selectively eliminate metal ions, specifically Zn2+, Mn2+, and Cr3+, from acid-contaminated wastewater [54].

The current investigation is a continuation of the prior research focused on the utilization of methylene blue-Sulphonated poly(glycidyl methacrylate) composite adsorbent (MB-SPGMA) for the purpose of removal of Cr (VI) and Mn (VII) metal anions from dichromate and permanganate contaminated waters [55, 56]. The present study examines the various factors affecting the CV content in the developed CV-SPGMA composite adsorbent, including CV concentration, adsorption period, temperature, pH, adsorbent dose, and agitation speed. Furthermore, the chemical and morphological alterations that occurred following the development of CV-SPGMA composite adsorbent were confirmed through FTIR, SEM, and EDAX investigations. The investigation of the potential reusability of the SPGMA adsorbent for the purpose of removing the CV dye was conducted through multiple adsorption–desorption cycles. Finally, the developed CV-SPGMA composite adsorbent, for the first time, tested for the removal of Cr (VI) and Mn (VII) metal ions from dichromate and permanganate contaminated waters under mild adsorption conditions. The adsorption process was verified by using EDAX analysis of the CV-SPGMA, Cr- CV-SPGMA, and Mn-CV-SPGMA samples.

2 Materials and methods

2.1 Materials

Glycidyl methacrylate (GMA) were purchased from ACROS (USA), and Potassium persulfate and sodium bisulfite were obtained from Sigma Chem. Co. (St. Louis, USA), Ethanol absolute perused from Adwic, Egypt, and finally, CV from Aldrich, Germany was perused.

2.2 Preparation of sulphonated Poly (glycidyl methacrylate) adsorbent

The Poly(glycidyl methacrylate) was first polymerized following by the sulphonation process as discussed elsewhere [57, 58] with slight modification where the sulphonation process used DMF:Water (1:1) as a solvent. The resultant SPGMA adsorbent has 12.2 meq.g−1 ions exchange capacity and 43.0 nm an average particle size.

2.3 Fourier transform infrared spectroscopic analysis

The Fourier transform infrared spectroscopic (FTIR) spectra of the SPGMA and CV-SPGMA adsorbents polymers particles were recorded with an FTIR spectrometer in the spectral range 4000–500 cm−1.

2.4 Scanning electron microscopic and EDAX analysis

The scanning electron microscope (SEM) image of the polymer particles was obtained by placing the particles onto carbon tape-attached aluminum SEM stubs after coating them with gold to a few nanometer thicknesses under vacuum. In addition to morphological inspection, the composition (mass ratios) of the SPGMA, CV-SPGMA, Cr- CV-SPGMA, and Mn-CV-SPGMA adsorbents were evaluated by EDAX analysis in conjunction with scanning electron microscopy to assess the adsorption of CV dye, Cr(VI), and Mn(VII) ions.

2.5 Crystal violet batch adsorption process

The CV adsorption was performed by mixing 10 mg of SPGMA polymer with 10 mL CV solution of 10–200 mg/L. The mixture was agitated at RT using a magnetic stirrer for definite time, then centrifuged at 12000 rpm to separate the matrix of the liquid phase. The CV concentration at mg/L, before and after the adsorption, for each solution was determined by measuring the absorbance at the maximum wavelength (ʎmax = 590 nm) [28] using a UV–VIS spectrophotometer and multiplying by constant extracted from the slope of the standard curve. The CV-polymer composites composition as (mg/g) was calculated according to the following formula:

$$\mathrm{CV}-\mathrm{polymers}\;\mathrm{composites}\;\mathrm{composition}\left(\mathrm{mg}/\mathrm g\right)=\mathrm V\left({\mathrm C}_0-{\mathrm C}_{\mathrm t}\right)/\mathrm M$$
(1)

C0 and Ct are the CV initial and final concentrations at definite immobilization time (mg/L), Vis the volume of the CV solution (L), and M is the mass of the SPGMA polymer (g).

2.5.1 Adsorption reusability

To test the reusability of the SPGMA adsorbent, the CV-SPGMA adsorbent was regenerated by mixing with 100 ml of 1 M NaCl solution at room temperature using a mechanical stirrer at 400 rpm for 180 min to desorbs CV molecules, then separated as mentioned previously and washed successive times with distilled water before separating and used in further adsorption experiments, 10 successive cycles, under the same CV adsorption conditions.

2.5.2 Chromium (VI) and Manganese (VII) ions removal [59, 60]

Synthetic dichromate (Cr VI) and permanganate (Mn VII) solutions, 10 mL, with 100 mg/L and 20 mg/L concentrations were mixed with 10 mg of CV-SPGMA composite at room temperature for 90 min, then separated by centrifugation under 12,000 rpm for 30 min, used in batch adsorption experiments. The Cr (VI) and Mn (VII) concentration at mg/L, before and after the adsorption, for each solution was determined by measuring the absorbance at the maximum wavelength (ʎmax = 357 nm and 525 nm) using UV–VIS spectrophotometer and the adsorption capacity was calculated according to Eq. 1.

3 Results and discussion

3.1 Effect of dye concentraion

Figure 1 shows the effect of variation of the CV concentration between 10 and 200 mg/L on the formed CV-SPGMA composites composition. The effect of the initial dye concentration factor depends on the immediate relation between the dye concentration and the available binding sites on a matrix surface. Usually, the percentage of dye immobilization decreases with an increase in initial dye concentration, which may be due to the saturation of immobilization sites on the matrice surface [61]. As a result, there will be unoccupied active sites at low concentrations on the matrix surface. When the initial dye concentration increases, the active sites required immobilizing the dye molecules disappears [62]. In this work, the increase in the initial CV concentration will cause an increase in the CV content of the CV-SPGMA composites, and this may be due to the high driving force for mass at a high initial dye concentration [63]. That indicates a high number of active sites relative to the number of CV molecules in the liquid phase of all the CV concentrations used where free active sites are still available. This postulation has been confirmed by the linear increase of the CV content of the CV-SPGMA composites to reach the highest value; 174.6 mg/g.

Fig. 1
figure 1

Effect of CV concentration on the CV content of the CV-SPGMA composites composition

3.2 Effect of adsorption time

A progressive increase of the CV content in the CV-SPGMA composite adsorbent has been recognized in Fig. 2. Two steps of adsorption rate were observed. The first step was a linear increment with increase of adsorption time up to 45 min where a fast CV dye removal percentage reached 81%. Further increase of the adsorption time, the rate of adsorption capacity starts to decrease and the equilibrium almost reached after 90 min with CV content of 174 mg/g corresponding to 87.11% CV dye removal percentage. The high available active adsorption sites in the first adsorption step, up to 45 min, explain the fast adsorption rate. Further progress of the adsorption time carried out with much less available active sites and less remaining CV due molecules in the liquid phase which consequently reduced the dye concentration gradient, the main driving force, between the dye liquid phase and the adsorbent solid phase [31]. The obtained results are in accordance with previousely published results [28, 30]. Synthetic copolymer adsorbent of AA and AMP was used in the removal of CV dye [28]. Also, xanthan gum /poly (N-vinyl imidazole) (XG/PVI) hydrogel [30] was used in the adsorption removal of CV where that the adsorption efficiency of CV dye increased with increasing the contact time and reached a maximum (91.0%) within 6 h, after that it leveled off. This suggests that a monolayer of dye molecules on the gel surface is formed. The formations of monolayer of CV dye at external interface on hydrogel resulting in increasing the adsorption driving force. However, the removal of dye remained constant with increasing the adsorption time from 6 to 8 h, because the free adsorption active sites may become saturated. So, increase the adsorption time (above 6 h) did not affect the adsorption efficiency. It is worthy to mention here that all the adsorbents mentioned above have anionic characters which act to attract the cationic CV dye molecules through opposite charge interaction.

Fig. 2
figure 2

Effect of adsorption time on the CV content of the CV-SPGMA composites composition

3.3 Effect of adsorption temperature

An endothermic nature of the CV adsorption process has been noticed from the adsorption behavior under different temperatures; 30 °C-80°C; Fig. 3. The CV removal percentage (%) enhanced from 78% at 30 °C to 89% at 80 °C. It is worthy to mention here that the adsorption time was only 30 min. This behavior may be referred to facilitate both of the dye molecules adsorption processes on the surface and the diffusion to interior pores of the adsorbent. That keeps the concentration gradient between the dye aqueous phase and the adsorbent solid phase enough as the driveling force of the adsorption process.

Fig. 3
figure 3

Effect of CV adsorption temperature on the CV content of the CV-SPGMA composites composition

3.4 Effect of SPGMA adsorbent dose

The SPGMA adsorbent dose increment from 5 to 40 mg has negatively affected the amount of immobilized CV as seen in Fig. 4. The increment of the available active sites for the immobilization process explains the noticed behavior where the immobilization percentage increased from 60 to 93%. As a result, the immobilization capacity decreased from 240 mg/g to 46 mg/g. This behavior agrees with previous results obtained by Mohy-Eldin and his co-workers in the immobilization of MB dye onto SPGMA [55].

Fig. 4
figure 4

Effect of the SPGMA adsorbent dosage on the CV content of the CV-SPGMA composites composition

3.5 Effect of agitation speed

The variation of the agitation speed shows the same behavior, while no noticeable effect on the CV content of CV-SPGMA composites was observed with variation from 100 to 500 rpm. That is an indication of the external mass diffusion absence due to the surface immobilization process nature, which is mainly controlled by the ratio between the numbers of active sites available on the polymer particles' surface for the immobilization process of CV molecules from the solution (Table 1). This finding is in agreement with previous results obtained by Mohy-Eldin and his co-workers in the immobilization of MB dye onto SPGMA [55].

Table 1 Effect of agitation speed on the CV content of the CV-SPGMA composites composition

3.6 Effect of adsorption pH

The pH of solution is considered one of the most important parameters in adsorption studies of cationic dyes onto adsorbents, because of its effects on both adsorption on active sites and dye molecules ionization [29,30,31,32]. The effect of the solution pH on CV dye adsorption using SPGMA adsorbent was studied using pH range (3–10) and the results are illustrated in Fig. 5. Two phases with different rates of adsorption were observed in the pH ranges 3–7 and 7–10. The turning point was located at pH 7.0; the pka of the functional sulfonated groups of the SPGMA adsorbent. The results showed that the less adsorption linear rate of CV was observed in the CV solution from pH 3.0 up to 7.0 because the concentration of H+ ions is very high which is a competitor for the adsorption of cationic CV dye onto SPGMA adsorbent as a result of the protonation process of the sulfonate groups. However, CV adsorption % increased with increasing the solution pH above 7.0, pka of the functional sulfonated groups, in a higher rate to reach the maximum value (95.2%) at pH 10.0 indicating the de-protonation of the sulfonated groups and having a negative charges sites attract the CV cationic ions. This behavior was similar to the adsorption of CV on Semi-IPN poly(acrylic acid-acrylamide-methacrylate) and amylose hydrogels [29], xanthan gum and poly (N-vinyl imidazole) hydrogel [30], and crosslinked poly (N-vinyl imidazole) grafted xanthan gum [32] as an adsorbents.

Fig. 5
figure 5

Effect of CV adsorption pH on the CV content of the CV-SPGMA composites composition

3.7 Reusability

An estimate of the extent of recovery of CV absorbed from aqueous solution can be made employing the sorption desorption cycle, as illustrated in Fig. 6. In this respect, the sorption–desorption cycles were analyzed to investigate the SPGMA adsorbent reusability for removing CV from aqueous solutions. The cycle was performed ten times by using a 1 M sodium chloride solution. The figure clearly shows that a continuous, almost linear reduction has been observed after the fourth cycle. However, the reduction in the removal percentage (%) of CV was not drastic; the CV removal percentage reached 76% in the tenth cycle compared with 87.2% in the first one. Only 12.85% of the CV removal efficiency was lost after ten cycles of sorption–desorption processes. The SPGMA adsorbent has a good sorption–desorption performance and can be used confidently without a noticeable reduction in its sorption capacity to remove CV dye.

Fig. 6
figure 6

Reusability of the SPGMA adsorbent in removal of CV dye

3.8 Comparative study

The adsorption capacity of the SPGMA adsorbent is compared with the other adsorbents for crystal violet dye removal (Table 2). The SPGMA adsorbent shows the higher adsorption capacity from soil-silver nanocomposite [64], leaf biomass [65], TLAC/chitosan composite [66], AC-Fe2O3-NPLs [67], starch-g-poly(acrylic acid)/ZnSe [68], and AA-AMP copolymer adsorbent [28]. However, the SPGMA adsorbent shows the lower adsorption capacity than Modified cellulose with glycidyl methacrylate [69], and COOH-functionalized cellulose nanocrystals adsorbents [70].

Table 2 Comparison for the adsorption of CV dye with various adsorbents

3.9 Characterization of the adsorbent

The adsorption process of the CV by SPGMA adsorbent was followed by performing FTIR, SEM, and EDAX characterization of the SPGMA adsorbent before and after the adsorption step.

3.9.1 FTIR analysis

Figure 7 demonstrates the characteristics peaks of the SPGMA adsorbent before CV adsorption and CV- SPGMA adsorbent after CV adsorption step. The FT-IR spectra of SPGMA show the peaks at 1725, 1300–1100 cm−1, caused by the stretching vibration of the ester carbonyl groups, C–O–C stretching in addition to the characteristic peaks of the residual epoxy ring at 1260 and 950–815 cm−1, while the peak at 760 cm−1 of weak intensity still noticed with shift to 780 cm−1. This may be referred to a minor fraction of epoxy rings that may have taken part in the formation of cross-linking structure during polymerization. The characteristic absorption peak of the sulphonate group at 1050–1060 cm−1 was recognized for SPGMA. Since the epoxy groups in poly (GMA) reacted with Na2SO3 to form SPGMA, the epoxy groups would produce -OH groups. The figure shows that the intensity of -OH peak (3500 cm−1) [58]. The adsorption of CV dye exhibits distinctive peaks corresponding to the properties of CV, which are observed in conjunction with those of SPGMA. The chart for CV-SPGMA exhibited distinct absorption peaks that are indicative of disubstituted benzene rings. The absorption peak seen at 2921 cm-1 corresponds to the stretching vibration of hydrocarbon (-C-H) in methyl groups. The spectrum displayed an absorption peak at 1553 cm−1, which can be attributed to the stretching vibration of (C = C) groups present in the benzene ring. Additionally, another absorption peak at 1479 cm−1 was observed, corresponding to the methyl group of the quaternized amine. Furthermore, the absorption peak at 1364 cm−1 indicated the C-H deformation in the methyl groups of the aromatic tertiary amine. Furthermore, it is noteworthy that two distinct absorption peaks were seen at wave numbers 1173 cm−1 and 1117 cm−1, which can be attributed to the C-H bending in benzene rings and the C-N stretching vibration, respectively [71,72,73,74].

Fig. 7
figure 7

FTIR analyses of SPGMA and CV-SPGMA matrices

3.9.2 SEM and EDAX analyses

The surface morphology of SPGMA was investigated by SEM and presented in Fig. 8. The SEM images showed an irregular particles structure of SPGMA with aggregation. Such aggregation of the SPGMA particles is controlled by its functional groups (sulphonic groups) which are hydrophilic ones absorbed moisture from surrounding environment. The adsorptions of CV dye showing a kind of SPGMA particles surface coating with an increase of the surface smoothing as a result and developing of the aggregates size. That observation is confirming the role of adsorbed CV dye molecules in filling the spaces between the aggregated SPGMA particles and its role as a kind of binder. The sulphonation of PGMA has been verified through EDAX analysis, Fig. 9 and Table 3, where the C, N, and O content of the CV-SPGMA adsorbent has been increased in benefits of Na and S content of the SPGMA adsorbent which proves the adsorption process of the CV. The appearance of the N weight % in the SPGMA adsorbent (9.178%) may be referred to the residues of the DMF used as solvent mixture in the sulphonation step of the PGMA nanoparticles. After CV adsorption, the N weight % in the CV-SPGMA increased to 13.620% due to the N content of the CV adsorbed dye. On the other hand, the both Na and S weight % reduced from 8.793% and 6.438% of the SPGMA adsorbent before adsorption to 1.237% and 2.257% after CV adsorption of the CV-SPGMA adsorbent. The C weight % increased from 31.428% of the SPGMA adsorbent before adsorption to 36.832% of the CV-SPGMA adsorbent.

Fig. 8
figure 8

SEM photographs of SPGMA adsorbent (before adsorption) and CV-SPGMA (after adsorption)

Fig. 9
figure 9

EDAX analysis of SPGMA adsorbent (before adsorption) and CV-SPGMA (after adsorption)

Table 3 EDAX analysis of adsorbent before adsorption (SPGMA) and after adsorption (CV-SPGMA)

3.10 Dichromate and permanganate metal ions removal

Selected CV-SPGMA composite adsorbent with a CV composition 175 mg/g has been used for the first time in treating synthetic contaminated water with 100 mg/L dichromate solution Cr (VI) and 20 mg/L permanganate solution Mn (VII) ions under batch conditions; Fig. 10. The Figure shows a similar adsorption behavior for both metal ions which a linear increment of the removal percentage was recognized. The CV-SPGMA composite adsorbent shows higher affinity towards the Cr (VI) ions compared with Mn (VII) ions where removed 45% of the first only after 5 min comparing to 45 min of the later one. In spite of the Cr (VI) ions concentration is five folds of the Mn (VII) ions, the adsorption capacity of the Cr (VI) ions is 84.6 mg/g which is seven folds of the adsorption capacity of the Mn (VII) ions; 11.66 mg/g. These results are compared with our previous study where selected MB-SPGMA composite adsorbent with a composition 27.32 mg/g has been used for the first time in treating synthetic contaminated water with dichromate Cr (VI) and permanganate Mn (VII) ions under batch conditions. Synthetic contaminated water with various metal ions concentrations, 2–8 mg/L, has been used in the study; Mohy Eldin and co-workers [55]. In general, the adsorption capacity of the MB-SPGMA composite adsorbent increased exponentially with an increase in the metal ions concentration. The capacity and rate of removal in the case of permanganate ions is higher than the dichromate counter ions. The adsorption capacity of MB-SPGMA composite adsorbent reached to 0.57 mg/g with 8 mg/L dichromate ions concentration. The curve shows two stages. The first stage is an almost linear increase of the adsorption capacity with an increase of the dichromate ions concentration up to 6 mg/L. The second stage is an exponential increase of the adsorption capacity with an increase of the dichromate ions concentration from 6 mg/L to 8 mg/L. In a previous study [59], it was found that the adsorption capacity of 0.2 g commercial Amberlite IRA 420 anion exchanger treating 50 mL Dichromate solution for 30 min in RT at pH 5.6 with a stirring rate 200 rpm reached 1.73 mg/g. The superiority of the commercial Amberlite IRA 420 anion exchanger may be referred to as the pH of the dichromate solution, which is lower than that used in this study; pH 7.4. On the other hand, the adsorption capacity of MB-SPGMA composite adsorbent reached to 0.88 mg/g with an increase of the permanganate ions concentration from 2 mg/L to 8 mg/L. The curve shows two stages. The first stage is a linear increase of the adsorption capacity with an increase of the permanganate ions concentration up to 4 mg/L. The second stage is an exponential increase of the adsorption capacity with an increase of the permanganate ions concentration from 4 mg/L to 8 mg/L, where the adsorption capacity increased by about ten folds to reach 0.88 mg/g. The same adsorption capacity (0.93 mg/g) obtained using 0.1 g of wet Amberlite IRA 420 with 10 mL of 100 mg/L permanganate [60].The mixture was agitated at R·T using a magnetic stirrer for 30 min. The MB-SPGMA composite adsorbent shows superiority to the commercial Amberlite IRA 420 anion exchanger, which has the same adsorption capacity with treating 8 mg/L permanganate solution compared with 100 mg/L permanganate solution used in the case of using commercial Amberlite IRA 420 anion exchanger. The adsorption rate and capacity of the dichromate metal ions are higher than the permanganate metal ions. This superiority could be referred to as the metal ion radius difference, which directly affects the affinity of CV-SPGMA composite adsorbent towards the metal ions. The pH of the metal ions solution ranged between 7.0 and 8.0, which affects the charge of the CV-SPGMA composite adsorbent mainly by the deprotonation process of the nitrogen atom in the CV immobilized molecules, and finally, the hydrophilicity and porosity of the CV-SPGMA composite adsorbent.

Fig. 10
figure 10

Effect of the adsorption time on the removal percentage of Cr (VI) an Mn (VII) ions from dichromate solution and permanganate solution under batch conditions

In the other hand, the adsorption process of Cr (VI), and Mn (VII) metals ions has been verified through EDAX analysis, Fig. 11 and Table 4. The Cr, and Mn show up in the EDAX analyses of the Cr-CV-SPGMA, and Mn-CV-SPGMA matrices as 0.252 and 0.192 weight %, while show 0.050 and 0.066 atom% in comparison with the CV-SPGMA composite adsorbent before the adsorption process of both Cr (VI), and Mn (VII) metals ions from Dichromate and permanganate contaminated water synthetic solutions.

Fig. 11
figure 11

EDAX analysis of Mn-CV-SPGMA and Cr-CV-SPGMA matrices

Table 4 EDAX analysis of CV-SPGMA, Mn-CV-SPGMA, and Cr-CV-SPGMA matrices

4 Conclusion

A novel adsorbent, the CV-SPGMA composite, has been created for the first time to treat Dichromate and Permanganate Contaminated Waste Water. This composite is made of nano-Sulphonated Poly(glycidyl methacrylate) and Hexamethyl Pararosaniline Chloride (Crystal Violet; CV). The nano-Sulphonated Poly (glycidyl methacrylate) (SPGMA) particles have been used to build a novel adsorbent for removing CV dye from wastewater through adsorption. The study examined the influence of different adsorption factors. The concentration of CV was found to have a linearly increasing effect on the CV content, reaching a maximum value of 174.6 mg/g at a concentration of 200 mg/L. The equilibrium was nearly achieved after duration of 90 min. The CV adsorption process has been observed to be endothermic, with a CV content of 178 mg/g achieved at a temperature of 80 oC. The concentration of CV reduced from 240 mg/g to 46 mg/g when the dose of SPGMA adsorbent increased from 5 to 40 mg. The pH of adsorption had the greatest influence, resulting in the maximum CV content at a pH of 10.0, which corresponded to 190.4 mg/g. The reusability of the CV-SPGMA adsorbent was evaluated by conducting sequential adsorption–desorption cycles. The results showed that after 10 cycles, there was only a 13% decrease in the original adsorption effectiveness of the adsorbent. The newly developed CV-SPGMA composite adsorbent was tested for the removal of Cr (VI) and Mn (VII) metal ions from water contaminated with dichromate and permanganate. The adsorbent demonstrated a seven-fold higher affinity for removing Cr (VI) at a rate of 84.6 mg/g compared to Mn (VII) at a rate of 11.66 mg/g. These tests were conducted under mild adsorption conditions. Furthermore, the adsorption process was confirmed by examining alterations in the chemical structure, morphology, and elemental composition using FTIR, SEM, and EDAX analysis, respectively, of the SPGMA adsorbent prior to adsorption and the CV-SPGMA adsorbent subsequent to adsorption. The FTIR spectrum of CV-SPGMA displayed prominent absorption peaks characteristic of disubstituted benzene rings found in the structure of CV. The observed absorption peak at 2921 cm-1 corresponds to the stretching vibration of hydrocarbon (-C-H) in methyl groups. The spectrum exhibited a prominent absorption peak at 1553 cm-1, which can be ascribed to the stretching vibration of (C = C) groups that are present in the benzene ring. Furthermore, an additional peak of absorption was detected at a wavenumber of 1479 cm-1, which corresponds to the methyl group of the quaternized amine. The scanning electron microscope (SEM) images of the CV-SPGMA adsorbent reveal that the adsorption of CV dye caused a formation of a surface coating consisting of SPGMA particles. This led to an increase in surface smoothness and the growth of aggregate size. The EDAX tests of the CV-SPGMA after CV adsorption indicate that the nitrogen weight percentage has increased to 13.620% as a result of the nitrogen content of the dye adsorbed onto the CV. However, the weight percentages of both Na and S decreased from 8.793% and 6.438% respectively in the SPGMA adsorbent before adsorption, to 1.237% and 2.257% respectively following adsorption of CV on the CV-SPGMA adsorbent. The carbon weight percentage increased from 31.428% in the SPGMA adsorbent prior to adsorption to 36.832% in the CV-SPGMA adsorbent. The newly developed CV-SPGMA composite adsorbent was tested for the removal of Cr (VI) and Mn (VII) metal ions from dichromate and permanganate contaminated waters. The adsorption conditions were mild, and the results showed that the adsorbent had a seven-fold higher affinity for removing Cr (VI) (84.6 mg/g) compared to Mn (VII) (11.66 mg/g). The adsorption process of Cr (VI) and Mn (VII) metal ions has been confirmed through EDAX analysis. The EDAX analyses of the Cr-CV-SPGMA and Mn-CV-SPGMA matrices reveal the presence of Cr and Mn at concentrations of 0.252% and 0.192% by weight, respectively. Additionally, the CV-SPGMA composite adsorbent shows concentrations of 0.050% and 0.066% by atom for Cr (VI) and Mn (VII), respectively, before the adsorption process of both metal ions from Dichromate and permanganate contaminated water synthetic solutions.