Structural color materials based on colloidal photonic crystals (CPCs) have been extensively investigated since they can be prepared efficiently. Commonly, photonic hydrogels are prepared by a polymerizing pre-gel solution, in which colloids are self-assembled by passive methods. Except for magnetic colloids, the process of forming colloidal photonic crystals in a pre-gel solution requires hours to days, and it is almost impossible to assemble the colloids directly in hydrogels. Here, we present a mild strategy to prepare hydrogels with surface structural color, ordered colloidal arrays are formed at the air-hydrogel interface actively during the polymerization process, and bright structural color forms in minutes on a large scale. Polymer exclusion is the key driving force for the assembly of the colloids, other factors, such as evaporation flux, can also promote the colloids to assemble. Significantly, heterogeneous structural color patterns can be produced easily by exposing the hydrogel surface to air sequentially using a mask during the polymerization process. The simple and fast method provides a general route for preparing structural colored surfaces, which may be suitable for various applications.