The precise detection of target substances through refractive-index sensing is essential in various fields such as environmental monitoring, food assessment, and optical applications. This study demonstrates a real-time refractive index sensor based on a liquid-infiltrated metal-insulator-metal island (MIMi) structure in a lithography-free manner. In the MIMi structure, the top layer of the metal islands is formed through solid-state dewetting, which serves as an etching mask to form nanopillars in the insulator layer. This allows for the infiltration of external substances, resulting in different structural colors depending on the refractive index. This design results in a redshift of the resonance peak as the infiltrated refractive index increases. Furthermore, by adjusting the area fraction of the metal-island layer and etching depth of the insulator layer, the resonance-peak position can be controlled within the visible range according to the target refractive index. The advantages of our design are the use of cost-effective materials and the ability to implement scalable fabrication. Our proposed method offers a convenient method to sense the target refractive index in real time.