Sagot :
Different colors are emitted because of dispersion or breaking of white into different colors, specifically ROYGBIV just like what is seen in rainbows
The different colors in the visible spectrum are emitted because/when light either slows diwn to a lower frequency or higher in frequency to create a different color, once the frequencies exceed its limit though the light enters a different spectrum