How can LEDs produce colored light?
The light color produced by an LED depends on the material used in the P-type and N-type semiconductor chip. Different materials in the chip release different amounts of energy when the LED is connected to a power supply. The amount of energy released determines the color of the light produced. Red is a low energy light, green is medium energy, and blue is high energy.