A spectrum that contains only certain colors, or wavelengths, is called a line spectrum. For every element, the emitted light contains only certain wavelentghs, giving each element a unique line spectrum.
They exist for atomic fingerprinting, which is useful in identifying elements. They are also used in sodium-vapor lmaps, which are widely used for street lighting. They are also used in "neon" lights.