In optics, a diffraction grating is an optical component with a periodic structure that splits and diffracts light into several beams travelling in different directions. The emerging coloration is a form of structural coloration. ... Because of this, gratings are commonly used in monochromators and spectrometers.