Photonic crystals (PC) are of great importance in technology, especially in optics and photonics. In general, the structural color of PCs responds to external stimuli primarily by changing their periodicity. Herein, the authors report on refractive index (RI) adaptive PCs. Cross-linked cholesteric films with interconnected nanopores exhibit a very low RI without light scattering. Transparent PC films with maximum reflectance in the ultravoilet(UV)region respond to various chemicals by changing the reflective color of the PC. The authors demonstrate its unique colorimetric chemical detections of hazardous organic liquids. Loading various chemicals into nanopores significantly shifts the structural color into the visible range depending on the chemical's RI. These results are unique in that the structural color of photonic films is mediated by RI changes rather than periodicity changes. In principle, nanoporous photonic crystal films can detect the RI of a chemical substance by its unique color. In contrast to volumetric changes, this sensing mechanism offers several advantages, including durability, excellent sensitivity, fast response time, and wide detection range. These results provide useful insight into stimulus-responsive PCs. The structural color of PC films can be effectively tuned by adjusting average RIs instead of changing periodicity.