1,3-Diethylbarbituric Acid can be used as reactant/reagent in green preparation of spiropyran derivatives via three-component cyclization of indantrione with active methylene compounds and cyclic diketones in the presence of compact fluorescent lamp.