Why can't RGB or bicolour LEDs produce a decent yellow?

Most probably because of short wavelength of your green LED and not as monochromatic green as you might expect (x and y coordinates closer to the center). If you take a look at the CIE 1931 curve and plot your red and green x and y coordinates (listed in the datasheet from serious manufacturers, otherwise assume the pure wavelength on the outer rim or move it in slightly), the only colors you are able to produce are along that line. For RGB, it's the same but you are forming a triangle instead and you can only mix color within that triangle.

Yellow is tricky here because you need your green to be almost yellow to be able to mix green and red to a good yellow, at which point you have sacrificed a lot of green and cyan colors. To make things worse, the production spread in green LEDs is very high compared to other colors, so it will vary unless you calibrate each one, at least from batch to batch.

enter image description here

Pardon my paint skills here, but let me give you three examples. A "yellow-optimized" RGB LED will have high wavelength for the green LED but you are missing out a large area of light blue, cyan and blue-green:

Yellow-optimized

A cyan-optimized RGB LED has short wavelength on the green LED and will sacrifice the yellow colors to get good cyan.

Cyan-optimized

Commercial RGBA (A for amber, thanks for pointing it out Ilmari Karonen) LEDs exists for this reason, at which point you will have a trapezium (thanks Wildcard!) with four points you can draw all the colors within, at the added expense of one more LED and associated driver channel.

RGBA


It's even a little worse than winny indicates:

Green LEDs are finicky. One result is that green LEDs emit over a broader distribution of wavelengths instead of being a nearly laser-like single wavelength. And when you map that range of greens to the xy colorspace you're not on the spectral locus anymore. So even your yellow-optimized RGB LED may not get as close to the yellow as you'd hope.

From What is red? On the chromaticity of orange-red InGaN/GaN based LEDs: Achievable InGaN colors

For those who keep noting their LED monitors can show a nice yellow, your LED monitor almost certainly doesn't use three colors of LEDs. It instead is going to use white LEDs and color filters, and the white LEDs get their yellow from a phosphor instead of the bandgap of the semiconductor.

Tags:

Rgb

Led