An OLED consists of several layers, including a substrate, an anode, organic layers, and a cathode. The organic layers typically include a electron transport layer and a hole transport layer. When a voltage is applied, electrons and holes move towards each other, recombine, and emit light. The color of the light depends on the organic materials used.