(A) TEM images of polymer nanoparticles (PNPs) (∼56 nm) containing active perylene diimide dye and spiropyran dye. (B) 50-nm polymer nanoparticles (7.0 nM) fluoresce intense red while exciting at 420 nm; red-fluorescence gradually diminishes with concomitant increase in green fluorescence upon exposure to visible light (λ > 515 nm) at 8-10 × 10-9 Einstein. (C) Plot of a single cycle, in which the particle fluorescence switches from green to red in ∼30 sec under UV light 2.8 × 10-9 Einstein. (D) Plot of a single reverse cycle, in which the particle fluorescence switches from red to green. Particle size and concentration is same as (B). (E) Fluorescence switching between red color and green color was achieved while alternating UV and visible light illumination followed by fluorescence measurements at 420 nm, respectively. The UV light illumination period is 2 min and visible light illumination period is 20 min while all other parameters are same as B, C, and D.