Introduction

Textile dyes represent a significant class of environmental pollutants, posing a severe threat to aquatic ecosystems and human health. A substantial volume of these synthetic, complex organic compounds is discharged in the effluent from textile industries, leading to the contamination of water bodies. This not only causes aesthetic pollution but also drastically reduces light penetration and dissolved oxygen, disrupting photosynthesis and aquatic life. Furthermore, many dyes and their breakdown products are toxic, mutagenic, and carcinogenic, accumulating in the food chain. Their complex aromatic molecular structures render them stable and resistant to conventional degradation processes1,2. Therefore, the development and implementation of effective treatment technologies for the complete degradation and removal of these hazardous dyes are of paramount importance to safeguard water resources, protect biodiversity, and ensure public health3,4.

Reactive Blue 21 (Fig. 1a) with is characterized by a large, planar anthraquinone backbone, which gives it its intense blue color and stability. Reactive Blue 21 exhibits highly soluble in water due to its sulfonic acid groups. Primarily used for dyeing cellulose fibers like cotton, viscose, and linen. It forms a covalent bond with the fiber in an alkaline medium. The anthraquinone structure makes it highly stable against light, washing, and oxidizing agents. This very stability is what makes it persistent in the environment. While generally considered to have low acute toxicity, its breakdown products may be harmful. Its persistence in water is a major concern. When released in wastewater, it reduces light penetration in water bodies, severely affecting photosynthesis and aquatic life. Its complex structure resists biodegradation in conventional treatment plants5.

Fig. 1
Fig. 1The alternative text for this image may have been generated using AI.
Full size image

Molecular structure of (a) Reactive Blue 21, (b) Reactive Red 1956.

The molecular structure of Reactive Red 195 (Fig. 1b) contains the characteristic azo group (-N = N) bridging aromatic rings. This group is the chromophore responsible for its red color. Like Reactive Blue 21, it is used for dyeing cellulose fibers. It reacts with the fiber through its reactive groups under alkaline conditions. Azo dyes are generally stable, but the azo bond (-N = N-) can be cleaved under certain conditions, which is a key pathway for its degradation. The primary concern with azo dyes like RR195 is that under anaerobic conditions, they can break down to produce aromatic amines, many of which are known to be carcinogenic and mutagenic. It contributes to the color pollution of water and poses a potential toxic threat to aquatic organisms and humans due to the possible formation of harmful breakdown products5.

The removal of organic dyes from wastewater is a critical environmental challenge. Two prominent and often complementary methods for this are adsorption and photocatalytic degradation. Adsorption is a physical surface process where dye molecules (adsorbate) accumulate on the surface of a solid material (adsorbent). Dye molecules are attracted and bound to the adsorbent’s surface through various forces, including: Physical Adsorption (Weak Van der Waals forces (, Chemical Adsorption (Stronger covalent or ionic bonding), and Electrostatic Interaction (Attraction between oppositely charged dye ions and the adsorbent surface)7. Adsorption is a transfer process, not a destruction process. It concentrates the pollutants onto the solid adsorbent, creating a secondary waste (spent adsorbent) that requires further treatment or disposal. On the other hand, it is not effective for high concentrations of dye. Photocatalysis is an advanced oxidation process that destroys dye molecules, converting them into harmless end products like CO₂, H₂O, and mineral acids. The process is driven by a semiconductor photocatalyst (e.g., TiO₂, ZnO, CuO) upon light irradiation. When the photocatalyst absorbs photons with energy equal to or greater than its bandgap energy, electrons (e⁻) are excited from the valence band (VB) to the conduction band (CB), creating positive holes (h⁺) in the VB. The electron-hole pairs migrate to the catalyst’s surface. The positive hole (h⁺) reacts with water (H₂O) or hydroxide ions (OH⁻) to generate highly reactive hydroxyl radicals (•OH). These powerful reactive oxygen species, especially the •OH radical, non-selectively attack and oxidize the complex organic dye molecules, breaking them down into smaller, non-toxic intermediates and ultimately mineralizing them8. The primary advantage is the complete destruction and mineralization of pollutants, eliminating the disposal problem associated with adsorption. In an ideal wastewater treatment system, adsorption and photocatalysis work synergistically9. The photocatalyst first adsorbs the dye molecules onto its large surface area. This concentrates the pollutants near the site of reaction. Upon light irradiation, the photocatalytic degradation process is initiated, destroying the adsorbed dye molecules. As the dye is degraded, the adsorption sites on the photocatalyst are regenerated, allowing the process to continue efficiently9.

Research on the photocatalytic degradation of Reactive Red 195 is indeed scarce compared to Reactive Blue 21. Most studies focus on similar dyes or other related reactive azo dyes, but direct investigations into Reactive Red 195 are limited. This scarcity may be due to the dye’s structural complexity. The paper by Rodrigues et al. presents a comprehensive study of ZnO nanoparticles as photocatalysts for degrading Reactive Blue 21 dye in aqueous solution. According to Rodrigues study, ZnO nanoparticles efficiently photodegrade Reactive Blue 21 dye through a photocatalytic process aided by optimized catalyst loading and particle size. The integrated experimental and modeling approach offers insight for scaling and optimizing photocatalytic wastewater treatment using ZnO nanoparticles10. El-Bindary et al. investigated photocatalytic degradation mechanisms of Reactive Blue 21 over Ag/ZnO nanoparticles using scavengers to identify reactive species. Based on their study, silver-doped zinc oxide (Ag-ZnO) nanoparticles have shown enhanced photocatalytic degradation performance for Reactive Blue 21 dye compared to pure ZnO nanoparticles. Ag doping improves photocatalytic efficiency mostly by reducing electron-hole recombination, which increases the generation of reactive species that degrade dye molecules. They reported degradation efficiency of Reactive Blue 21 using Ag-ZnO photocatalysts reaches above 90% within about 90 min under UV or visible light irradiation. The photocatalytic activity remains stable over multiple cycles with minimal activity loss due to catalyst recovery losses11.

Sarkar et al. employed titanate nanotubes (TNTs) for adsorption and photo-degradation of Reactive Blue 21, demonstrating effective removal under UV light. Photo-degradation experiments under UV light and adequate oxygen availability showed that TNTs efficiently catalyze the degradation of Reactive Blue 21. A proposed photo-degradation mechanism involves generation of reactive oxygen species at the TNT surface under UV excitation, which oxidizes the dye molecules12.

The study by Jouali et al. investigated the performance of TiO2-cellulose composites as robust, recyclable photocatalysts for wastewater treatment. This study showed that TiO2 particles immobilized on cellulosic fibers can effectively and sustainably degrade organic dyes like methylene blue and Reactive Blue 21 under dynamic flow, merging photocatalytic degradation with adsorption benefits while ensuring catalyst recyclability13. The study by Atrak, et al. focuses on the green synthesis of Zn0.5Ni0.5AlFeO4 magnetic nanoparticles using tragacanth gel via a sol-gel method. These nanoparticles were characterized thoroughly by FTIR, XRD, FESEM, EDX, and VSM techniques, confirming a single-phase cubic spinel structure with an average crystallite size around 10 nm and good magnetic properties (saturation magnetization 33.82 emu/g). The photocatalytic activity of these magnetic nanoparticles was investigated for the degradation of Reactive Blue 21 dye under visible light irradiation. The study examined effects of photocatalyst dosage, initial dye concentration, pH, and contact time on the degradation efficiency. The Zn0.5Ni0.5AlFeO4 nanoparticles exhibited high photocatalytic activity, achieving up to 94% degradation of Reactive Blue 2114.

In most photocatalytic works, semiconductor nanostructures such as titanium oxide (TiO2), zinc oxide (ZnO), and copper oxide (CuO) are commonly synthesized using physicochemical methods like co-precipitation, sol-gel, and hydrothermal techniques. These methods are popular due to their ability to produce nanoparticles with controlled size, morphology, and crystallinity, which enhances photocatalytic activity. Modifications such as doping, heterojunction formation, and surface functionalization are often combined with these synthesis methods to enhance visible-light absorption and reduce charge recombination15. These synthesis methods are usually associated with high energy consumption, and the employment of toxic reducing and stabilizing agents. These conditions not only increase environmental costs but can also have significant negative effects on the health of living organisms16.

In green or bio synthesis of metal and metal oxide nanoparticles, various biological systems such as bacteria, fungi, algae, and different parts of plants including flowers, roots, leaves, and fruits are used. Among these options, plant extracts have attracted the most attention due to their abundance, low cost, biocompatibility, and the simplicity of the process, especially for large-scale nanoparticle synthesis. This method is often slow but highly efficient and environmentally friendly. Plant extracts contain various compounds like ketones, aldehydes, flavonoids, amides, terpenoids, carboxylic acids, phenols, and ascorbic acid. These compounds can act as reducing and stabilizing agents, converting metal ions into stable nanoparticles. The green synthesis process depends on several factors such as the type of precursor, solvent conditions, temperature, pressure, and pH. The biodiversity of plants, their availability, and richness in bioactive compounds make them a suitable source for reducing metal salts and producing nanoparticles17,18,19,20.

Recent literature reviews confirm a marked surge in research on the biosynthesis (green synthesis) of CuO nanoparticles. For example, CuO nanoparticles were synthesized using Euphorbia heterophylla leaf extract21, Hagenia abyssinica extract22, Juglans regia23, Cocculus hirsutus24, Catha edulis extract25, Eichhornia crassipes26, Justicia gendarussa27, Psidium guajava28, Citrofortunella microcarpa29, Portulaca oleracea30, Falcaria vulgaris31, Solanum melongena32. Black barberry (Berberis integerrima)33, Cistus creticus34, Laurus nobilis35, Eucalyptus globulus36, Stachys lavandulifolia37, Solanum nigrum38, Solanum lycopersicum39, Crocus sativus (saffron)40, Moringa oleifera41.

The pistachio hull is the soft, fleshy, and often reddish outer covering that surrounds the hard, beige shell of the pistachio nut. During the processing and dehulling of pistachios, this outer layer is removed as a primary by-product. Rafsanjan, located in Kerman Province, is the heart of pistachio production in Iran. Iran is one of the world’s largest producers and exporters of pistachios, making Rafsanjan a globally significant region for this crop. It is estimated that for every ton of fresh pistachio nuts harvested, approximately a few hundred kilograms of wet hulls are produced. Given the massive scale of pistachio cultivation in the Rafsanjan area, this results in the generation of a very large and abundant agricultural waste stream each year. The concentration of the harvest and processing season means that a huge quantity of hulls is generated in a short period. This creates a significant waste management challenge for local farmers and processing units, as the fresh hulls are prone to rapid decomposition and can cause environmental issues if not managed properly. Pistachio hulls are not just waste; they are a source of valuable plant compounds which candidate it for green synthesis of metal and metal oxide nanoparticles. While pistachio hull composition may vary seasonally, the Akbari variety used here is cultivated under standardized agronomic practices in Rafsanjan Large-scale extract standardization (e.g., total phenolic content) would be implemented industrially to ensure reproducibility.

The principal aim of this study is to synthesize copper oxide nanoparticles through an environmentally benign, bio synthesis route utilizing an aqueous extract of pistachio hulls as a reducing and stabilizing agent. The biosynthesized CuO-NPs were comprehensively characterized and subsequently applied as a heterogeneous photocatalyst for the degradation of two model organic pollutants: Reactive Blue 21 and Reactive Red 195. The photocatalytic performance was systematically evaluated first for individual dye solutions and then for a binary dye mixture to investigate the competitive kinetics and interaction effects between the two dyes under simulated light irradiation. This work highlights a sustainable approach for both nanomaterial synthesis and wastewater treatment, addressing the challenge of complex dye effluents.

Experimental

Materials

The materials for the extraction and the synthesis of CuO-NPs, as well as for the investigation of dye degradation are listed in Table 1.

Table 1 The list of various chemicals, precursor and solvent used in this study.

Methods

Extraction

First, fresh pistachio hulls (Akbari variety) were collected from orchards in the vicinity of Rafsanjan. The hulls were washed with distilled water to remove dust and contaminants. Then, they placed in the shade and exposed to fresh air for two weeks to dry slowly. After complete drying, the dried-hulls were finely ground with an electric mill to prepare them for extraction. 5 gr of ground pistachio hull were added to 100 mL of distilled water. The mixture was then placed on a shaker at 40 °C and stirred for 24 h. After this period, the extract suspension was first passed through a clean filter to remove the coarse particles. The solution was then centrifuged 20 min at 3000 rpm to separate the fine solid particles. After centrifugation, the solution was transferred to a refrigerator at 4 °C for subsequent steps (Fig. 2).

Fig. 2
Fig. 2The alternative text for this image may have been generated using AI.
Full size image

Fresh (a), and air-dried pistachio hulls (b).

Biosynthesis of CuO-NPs

Initially, the copper sulfate solution (0.01 M) was placed on a hotplate stirrer and heated to approximately 70 °C. The pistachio hull extract (30 mL) was then added slowly and dropwise to the solution over 180 min under continuous stirring. The initial pH of the reaction mixture was acidic, measured at around 4, and no external adjustment was applied during synthesis. During this process, the color of the solution gradually changed from blue to dark green and finally to dark brown, which is a well-established visual indicator of CuO nanoparticle formation. This progressive color transition reflects the reduction of Cu²⁺ ions and the nucleation of CuO nanoparticles, confirming successful biosynthesis under controlled acidic conditions (Fig. 3).

Fig. 3
Fig. 3The alternative text for this image may have been generated using AI.
Full size image

Biosynthesis of copper oxide nanoparticles: (A) copper sulfate solution (B) pistachio hull extract (C) copper sulfate solution during addition of extract (D) formation of CuO nanoparticles.

Phenolic compounds in pistachio hull extract, such as gallic acid and rutin, are known to have antioxidant properties and can act as both reducing and stabilizing agents in nanoparticle synthesis. These phenols can complex with copper ions (Cu2+), binding to them through their functional groups (mechanism described in Fig. 4). Through this complexation, the phenols facilitate the reduction of Cu2+ ions to copper (Cu0) or copper oxide nanoparticles (CuO), effectively serving as natural reducing agents37. This process also stabilizes the nanoparticles formed, preventing agglomeration. The antioxidant properties of these phenolic compounds are key to this green synthesis, enabling a simple, eco-friendly method to produce Cu or CuO nanoparticles using pistachio hull extract without toxic chemicals42. The reduction of Cu²⁺ ions in the presence of pistachio hull extract can be attributed to the electron-donating ability of phenolic acids and flavonoids. Hydroxyl (-OH) and carbonyl (C = O) groups in these compounds chelate copper ions, forming intermediate complexes that undergo reduction to CuO nuclei under mild heating. Simultaneously, these phytochemicals adsorb onto the nanoparticle surface, acting as stabilizers and preventing particle aggregation.

Fig. 4
Fig. 4The alternative text for this image may have been generated using AI.
Full size image

Schematic representation of biosynthesis mechanism of CuO-NPs.

After cooling, the final solution was centrifuged at 7000 rpm about 3 min. Subsequently, the obtained solid was washed with ethanol and centrifuged three times and finally transferred to an oven for drying (80 °C,12 h). Then, the dried solid was moved to a furnace for calcination at 300 °C for 5 h. This obtained solid was used for characterization and photocatalytic applications. To identify and characterize biosynthesized CuO-NPs, ultraviolet-visible spectrometer (Photonix Ar 2015), X-ray diffraction (XRD) analysis (PANalytical), filed emission scanning electron microscopy (FESEM- TESCAN MIRA), Fourier Transform Infrared (FTIR) spectroscopy (Nicolet IS10), and dynamic light scattering (DLS) analysis (VEGA III LMU) were applied.

Photocatalytic activity

First, separate solutions of Reactive Blue 21 and Reactive Red 195 with the concentration of 60 mg/L were prepared, and they were briefly named RB21, and RR195. To examine the simultaneous removal of the two dyes, 30 mg of each dye was mixed and diluted with distilled water to a final volume of 1000 mL, resulting in a 60 mg/L solution.

0.012 g of biosynthesized CuO-NPs was added to 100 mL of dye solution. The mixture was transferred to a closed wooden chamber with no light exposure and stirred under these dark conditions for sufficient time (about 1 h). The absorbance spectrum of this sample was then recorded and labeled as C₀ (initial concentration). Next, the solution was exposed to UV light emitted from a Philips UV-C lamp (75 watts, 254 nm) while it was being stirred. Air was flowing around the reactor, providing sufficient oxygenation during the photocatalytic degradation process. The reaction temperature was maintained at ambient conditions (40 ± 2 °C) using a water-circulation cooling system.

A small amount of the mixture was sampled every 30 min and was centrifuged at 7000 rpm to separate CuO-NPs, and the absorbance spectrum was recorded. This procedure continued for 180 min, and all data for each dye were collected. The schematic representation of the wooden chamber equipped with UV lamps is shown in (Fig. 5).

Fig. 5
Fig. 5The alternative text for this image may have been generated using AI.
Full size image

Schematic representation of the wooden chamber equipped with UV lamp. (1: wooden chamber, 2: UV lamp, 3: magnetic stirrer, 4: batch reactor, 5: sampling syringe).

For concentration reading by spectrophotometer, the linear calibration curve equation for each dye was required. For this purpose, absorbance spectra were recorded at various known concentrations of the dye solutions, and the peak heights were plotted. Linear regression was applied to obtain the calibration curve equation. Then, the final sample’s peak height was substituted into this equation to determine its final concentration.

The obtained final concentration was then substituted into the following formula to calculate the degradation efficiency (\(\:\eta\:)\):

$$\:\eta\:\:\left(\%\right)=\left(\frac{{C}_{0}-{C}_{t}}{{C}_{0}}\right)\times\:100$$
(1)

In this equation \(\:{C}_{0}\) is the initial concentration of the dye and \(\:{C}_{t}\) is the final concentration after a specified time.

Photocatalytic degradation kinetics

To evaluate the photocatalytic kinetics of dye degradation, the experimental data were fitted to the pseudo-first-order (PFO) model based on dye concentration. The model is expressed as:

$$\:\text{ln}(\frac{{C}_{0}}{{C}_{t}})={K}_{1}t$$
(2)

where C0 is the initial dye concentration (mg/L), Ct is the dye concentration at time t, and \(\:{K}_{1}\) is the pseudo-first-order rate constant (min⁻¹). By plotting ln (C0/Ct) versus t, the value of \(\:{K}_{1}\) was obtained from the slope of the linear fit. This approach allows direct comparison of photocatalytic performance with literature reports and provides insight into the rate of dye degradation under UV irradiation.

Results and discussion

Characterization of the biosynthesized CuO-NPs

The UV-visible spectrum of the biosynthesized NPs is shown in (Fig. 6).

Fig. 6
Fig. 6The alternative text for this image may have been generated using AI.
Full size image

UV-visible spectrum of the biosynthesized CuO-NPs.

The observation of a hump-like absorption peak with a maximum at 240 nm is indeed characteristic and well-documented for the formation of Cupric Oxide (CuO) nanoparticles43. During the synthesis of CuO-NPs, the color change from blue to dark brown is a well-established indicator of nanoparticle formation. This transformation corresponds to the excitation of surface plasmon resonance phenomena, which arise from collective oscillations of conduction electrons in response to light44,45,46.

FTIR results of the dried pistachio hulls and biosynthesized CuO-NPs are presented in (Fig. 7).

Fig. 7
Fig. 7The alternative text for this image may have been generated using AI.
Full size image

FTIR spectrum of pistachio hulls and CuO-NPs synthesized in this study.

In the spectrum corresponding to CuO nanoparticles, especially between 400 and 600 cm⁻¹, the peak at 512.68 cm⁻¹ is the main feature of CuO and is attributed to the Cu–O stretching vibrations. The weak peak at 3435 cm⁻¹ is related to the O–H stretching. In the spectrum related to the pistachio hull, the peak at 3407 cm⁻¹ corresponds to the O–H stretching (adsorbed water or hydroxyl groups). The peak at 2924 cm⁻¹ is assigned to C–H stretching (in methyl or methylene groups). The peak at 1613 cm⁻¹ is attributed to H–O–H bending (adsorbed water) or C = O stretching (in carbonyl groups). The peak at 1389 cm⁻¹ may be related to C–H bending. The peak at 1220 cm⁻¹ corresponds to C–O stretching (in ether or carboxylic acid groups). The peak at 1039 cm⁻¹ may also correspond to C–O bonds. The peak at 760 cm⁻¹ might be due to out-of-plane C–H vibrations (in aromatic compounds)6. Weak FTIR peaks (e.g., ~ 1112 cm⁻¹) suggest trace carbonaceous residues. Such residues may slightly enhance adsorption but do not dominate photocatalysis.

X-ray diffraction (XRD) results of the biosynthesized CuO-NPs are illustrated in Fig. 8.

Fig. 8
Fig. 8The alternative text for this image may have been generated using AI.
Full size image

XRD patterns of the biosynthesized CuO-NPs.

There are clearly defined peaks at 2Ө=35.80°, 39.14°, 49.21°, which related to monoclinic crystal structure of CuO phase. The results inferred from the mentioned peaks including: spacing between crystal planes (d-spacing), Miller index, full width at half maximum (FWHM), and crystal size (d) of synthesized CuO-NPs are summarized in Table 2.

Table 2 Crystal lattice parameters of the biosynthesized CuO-NPs.

These results indicate that the nanoparticles are crystalline (fine crystals, about 28 nm), not amorphous. This means the copper atoms are arranged in a regular, repeating pattern. This is crucial for applications where catalytic properties depend on the crystal structure.

EDX (Energy Dispersive X-ray) analysis is an analytical technique used to identify chemical elements in a sample and determine their percentage composition. This method is usually used in conjunction with a scanning electron microscope (SEM). As shown in Fig. 9, the analyzed sample contained copper and oxygen, indicating the successful synthesis of CuO-NPs:

Fig. 9
Fig. 9The alternative text for this image may have been generated using AI.
Full size image

EDX results for biosynthesized CuO-NPs.

The results of the field emission scanning electron microscopy (FESEM) analysis are seen in Fig. 10. The images were taken at scales of 1 μm, 500 nm, and 200 nm (in order from top to bottom). According to Fig. 8, the size of the spherical particles synthesized using pistachio hull extract is in nano-dimensions below 100 nm.

Fig. 10
Fig. 10The alternative text for this image may have been generated using AI.
Full size image

FESEM images of CuO-NPs synthesized using pistachio hulls extract.

Dynamic Light Scattering (DLS) analysis is a non-destructive physical technique used to determine the particle size distribution of nanoparticles, colloids, or macromolecules suspended in a fluid medium. It relies on measuring random light intensity fluctuations caused by particles undergoing Brownian motion in solution. The results of DLS analysis are shown in Fig. 11. The Gaussian distribution is seen for the suspended CuO particles which have a relatively uniform size spread around an average particle size of about 90 nm, which fits well within nanoscale measurement contexts. The measured size difference between XRD and FESEM/DLS is attributed to polycrystalline aggregation of primary crystallites during synthesis/drying, a common phenomenon in green-synthesized NPs.

Fig. 11
Fig. 11The alternative text for this image may have been generated using AI.
Full size image

Particle size distribution of biosynthesized CuO-NPs suspended in water.

Photocatalytic degradation

The effect of irradiation time on the degradation process was assessed by analyzing changes in the UV-vis absorption spectra. Figure 12 shows a substantial reduction in the absorbance intensity at 615 nm (primary peak for Reactive Blue 21 in visible region) corresponding to a degradation efficiency of 83%. These results confirm the exceptional photocatalytic performance of biosynthesized CuO-NPs in decomposing the organic dye.

Fig. 12
Fig. 12The alternative text for this image may have been generated using AI.
Full size image

Absorption spectrum of Reactive Blue 21 solution (60 mg/L) degraded by biosynthesized CuO-NPs with UV irradiation time of 0 to 180 min.

Absorption spectrum of Reactive Red 195 solution degraded by biosynthesized CuO-NPs with UV irradiation time of 0 to 180 min is presented in Fig. 13. It is clear that the absorbance peak intensity of Reactive Red 195 dye at 530 nm released strangely with the increase of irradiation time and degradation rate reached 75%.

Fig. 13
Fig. 13The alternative text for this image may have been generated using AI.
Full size image

Absorption spectrum of Reactive Red 195 solution (60 mg/L) degraded by biosynthesized CuO-NPs with UV irradiation time of 0 to 180 min.

The efficiency degradation dye (Reactive Blue 21 and Reactive Red 195) over irradiation time is illustrated in Fig. 14a. It can be concluded that biosynthesized CuO-NPs catalyst has higher photocatalytic activity in the degradation of Reactive Blue 21 than Reactive Red 195 in all of the irradiation time.

Fig. 14
Fig. 14The alternative text for this image may have been generated using AI.
Full size image

The degradation efficiency of dye over irradiation time (a) Reactive Blue 21 and Reactive Red 195 (separate solutions), and (b) mixed dye.

The results of degradation efficiency in the mixed solution dye are shown in Fig. 14b. A comparative analysis of the degradation efficiency revealed a fairly significant decrease in the removal rate of both Reactive Blue 21 and Reactive Red 195 within the binary mixture, as opposed to their individual degradation profiles. Specifically, after 180 min of irradiation, the degradation efficiency for Reactive Blue 21 was 69% and for Reactive Red 195 was 60% in the mixture, values relatively lower than those achieved when the dyes were processed separately. This observed suppression in efficiency is attributed to competitive effects between the two dye molecules for active sites on the photocatalyst surface and for the generated reactive oxidative species (e.g., •OH, O₂•⁻).

Absorption spectrum results of a binary dye system (Reactive Blue 21 / Reactive Red 195) are presented in Fig. 15. This result exhibits somewhat distinct and resolved absorption peaks in the visible region, with maxima at approximately 615 nm and 530 nm, respectively. This relative spectral separation allows for the independent monitoring of each dye’s degradation kinetics by tracking the decrease in absorbance at their characteristic λmax values over the course of the photocatalytic reaction. On the other hand, the absorption bands of the two dyes overlap greatly in the ultraviolet region and no information can be deduced in this range.

Fig. 15
Fig. 15The alternative text for this image may have been generated using AI.
Full size image

Absorption spectrum of mixed dye solution (Reactive Blue 21 / Reactive Red 195) (60 mg/L) degraded by biosynthesized CuO-NPs with UV irradiation time of 0 to 180 min.

Photocatalytic degradation kinetics

The graph of Ln(C0/Ct) was plotted against time (Fig. 16) and the value of K1 from Eq. 2, which was equal to the slope of the line, was obtained from curve fitting. The value of the coefficient K1 in different cases is reported in Table 3.

Table 3 Calculated K1 in different situation for RB21 and RR185.
Fig. 16
Fig. 16The alternative text for this image may have been generated using AI.
Full size image

Graphs of changes in (ln(C0/Ct)) over time for (a) RB21 in separated solution, (b) RR195 in separated solution, (c) RB21 in mix solution and (d) RR195 in mix solution.

The results indicate that the degradation of both dyes follows pseudo-first-order kinetics with good linearity. Moreover, the rate constants obtained for the individual dye solutions were higher than those for the mixed solution, suggesting competitive adsorption and reduced availability of active sites in the presence of both dyes simultaneously. This kinetic modeling not only confirms the reproducibility of the photocatalytic process but also enables direct comparison with existing literature, highlighting the efficiency of pistachio hull–derived CuO nanoparticles in dye degradation. Both dyes are anionic; RB21 likely has stronger adsorption than RR195, explaining its higher K1. According to non-overlapping visible peaks, photon competition is minimal. Radical scavenging is possible, but adsorption competition is the dominant factor, as degradation drops proportionally for both dyes.

Reaction mechanism

A schematic description of the photocatalytic mechanism of biosynthesized CuO-NPs are shown in Fig. 17. When CuO-NPs are irradiated with UV light energy equal to or greater than their band gap (~ 3.8 eV), electrons (e⁻) in the valence band (VB) are excited to the conduction band (CB), leaving behind positive holes (h⁺) in the VB. The excited electrons and holes act as reactive species. Electrons in the CB can reduce oxygen molecules adsorbed on the surface to form superoxide radicals (.O2⁻), while holes in the VB can oxidize water or hydroxyl ions to form hydroxyl radicals (.OH). These radicals attack the dye’s complex azo structure, leading to the cleavage of azo bonds (-N = N-), and breakdown of aromatic rings and sulfonic groups. Typical degradation products include: smaller aromatic amines, carboxylic acids, sulfates and sulfites from sulfonic groups, eventually mineralized products such as CO2, H2O, NH4+, and NO3− upon complete degradation. As degradation proceeds, the CuO surface sites are regenerated for ongoing photocatalytic cycles under continuous light exposure.

Fig. 17
Fig. 17The alternative text for this image may have been generated using AI.
Full size image

Schematic description of the photocatalytic mechanism of biosynthesized CuO-NPs with Reactive Red 195.

Conclusion

This study successfully demonstrated the eco-friendly synthesis of copper oxide nanoparticles (CuO-NPs) using pistachio hull extract and their effective application in degrading persistent textile dyes. CuO-NPs were biosynthesized using an aqueous extract of pistachio hulls, which acted as both reducing and stabilizing agents. Comprehensive characterization (XRD, SEM, FT-IR, DLS, UV-Vis) confirmed the formation of homogeneous, spherical, and crystalline nanoparticles with an average size of 90 nm. The FTIR spectrum of pistachio hull extract confirms the presence of hydroxyl and carbonyl groups, which are consistent with phenolic and flavonoid compounds. These functional groups not only participate in the reduction of Cu²⁺ ions but also remain adsorbed on the nanoparticle surface, providing steric hindrance against agglomeration. The resulting spherical morphology and narrow size distribution observed in FESEM images can thus be directly linked to the stabilizing role of these phytochemicals. This chemical justification highlights why pistachio hull extract is particularly effective compared to other plant-based reducing agents. The photocatalytic activity of these green-synthesized nanoparticles was evaluated against two reactive dyes, Reactive Blue 21 and Reactive Red 195, under UV light. The biosynthesized CuO-NPs exhibited high efficiency, achieving 83% degradation of RB 21 and 75% degradation of RR 195 within 180 min. The study was extended to a mixture of Reactive Blue 21 and Reactive Red 195 to simulate more complex, real-world wastewater. UV-Visible spectroscopy was used to monitor the degradation, but a key analytical challenge was noted. The dyes’ absorption peaks are somewhat distinct in the visible region, allowing for individual quantification. However, their absorption bands overlap significantly in the ultraviolet region, making that spectral range unusable for analysis. The research successfully demonstrates that pistachio hull extract can be used to synthesize effective CuO-NPs. These biosynthesized CuO-NPs are potent photocatalysts for degrading textile dyes, both individually and in a mixture, although monitoring degradation in mixtures requires careful analysis of non-overlapping spectral regions.

One of the aims of this research, to reuse pistachio hulls as agricultural waste from the Rafsanjan region of Iran, is well justified by the scale and potential of pistachio byproducts in that area. For every ton of fresh pistachio nuts, roughly 300–400 kg of wet hulls are generated as by-products during processing. Given Rafsanjan’s large-scale operations, this translates to tens of thousands of tons of pistachio hulls annually, forming a significant and renewable stream of agricultural waste.