Forward-biased direct-bandgap pn. Recombining electrons release photons of energy Eg; the wavelength is set by the material.