The environment is not limited to shadows and rainbow colors; the electromagnetic spectrum also contains ultraviolet light and infrared heat radiation.
Understanding diffraction and dispersion is key to optical science, influencing technologies like spectroscopy, fiber optics, ...