In this paper, a six cavity-based metal-insulator-metal plasmonic sensor is proposed. The designed sensor can detect six primary colors in the visible wavelength. Moreover, the proposed sensor can also sense the change in the refractive index. An initial sensitivity of 648.41 nm/RIU and figure of merit of (FOM) 141.29 are found based on the transmittance profile extracted through the two-dimensional (2D) finite element method (FEM). The structural parameters are optimized to maximize the performance of the modeled device both as a color filter and a refractive index sensor. The optimized FOM, FOM* and sensitivity are recorded as 218.80, 4.771 × 10⁴, and 865.31 nm/RIU, respectively. Due to high FOM and FOM*, this sensor is expected to be utilized as a color filter in various sectors, such as medical, industrial, and forensic, where the light of a particular wavelength is mandatory.