A reversible CO2-responsive luminescent material was constructed by a facile hydrogen-bond self-assembly of a two-component ionic crystal. The modification of CO2 on the ionic crystal not only alternates the green afterglow, but also endows the material with inverse excitation wavelength dependence for multicolor emission.