Visible light absorbed by Fe cations in a Prussian blue analogue induces charge transfer, and reduces lattice misfit and magnetic moments.