Actually it would be red, green and blue. They call it additive color mixing. With PWM you could adjust the brightness of the indivual colors and mix any color you want. And yes this could be a fun project for a science class.
BTW: Sunlight doesnīt have a single frequency. It has a wide spectrum. That is why it is so hard to imitate.
_________________________
If it isnīt broken, it doesnīt have enough features yet.