The monodisperse silica particles self-assembled colloidal crystals were used as templates to synthesize pH value and temperature responsive ordered macorporous hydrogels. The ordered structure arranged by the uniform pores and the pore-pore interconnectivity through the window channel is confirmed by SEM characterization. UV-Vis-near IR absorption experiment result reveals that the wavelength at the stop band peak is tunable within the whole visible spectrum via simply altering some parameters such as pH value and light incidence angle. This finding allows to design frequency-tunable photonic band gap materials.