Near infrared and visible luminescence from xerogels covalently grafted with lanthanide [Sm(3+), Yb(3+), Nd(3+), Er(3+), Pr(3+), Ho(3+)] β-diketonate derivatives using visible light excitation.