LEDs work on the principle of electroluminescence, where a material emits light in response to an electric current. When electrons recombine with holes within the semiconductor material, photons are emitted. The wavelength (and hence the color) of the light depends on the energy band gap of the semiconductor. Advances in nanotechnology have enabled the tuning of these properties to achieve specific wavelengths and enhance the functionality of LEDs.