Incorporation of flavylium-derived chalcones in the cetyltrimethylammonium bromide-templated synthesis of mesoporous silica particles with no subsequent removal of the micellar phase leads to high luminescence (0.3 < ϕf < 0.5) and strong color-contrast photochromic pigments finely tunable over a large pH range (1 < pH < 11).