LEDs are made of semiconductor materials where electrons and holes recombine at a p-n junction, releasing energy in the form of photons. The color of the emitted light depends on the band gap energy of the semiconductor material used.