Photocontrollable luminescent molecular switches capable of changing emitting color have been regarded as the ideal integration between intelligent and luminescent materials. A remaining challenge is to combine good luminescence properties with wide range of wavelength transformation, especially when confined in a single molecular system that forms well-defined nanostructures. Here, we report a π-expanded photochromic molecular photoswitch, which allows for the comprehensive achievements including wide emission wavelength variation (240 nm wide, 400–640 nm), high photoisomerization extent (95%), and pure emission color (<100 nm of full width at half maximum). We take the advantageous mechanism of modulating self-assembly and intramolecular charge transfer in the synthesis and construction, and further realize the full color emission by simple photocontrol. Based on this, both photoactivated anti-counterfeiting function and self-erasing photowriting films are achieved of fluorescence. This work will provide insight into the design of intelligent optical materials.