http://planetpixelemporium.com/tutorialpages/light.html
Occasionally the question arises as to how to reproduce the "real" color of light sources in a rendered environment. I set out to research this subject, and found a lot of very contradictory information. Some approaches try to categorize light sources by their color temperature. Some then try to come up with some meaningful way of converting that color temperature to RGB values to use in programs like Lightwave or Cinema 4D. Ultimately these approaches all fail to take into account several realities that work against trying to come up with a unified approach to light coloring and rendering.
The human visual system is very good at "white balancing" what we look at. As long as the scene we are viewing contains a continuous spectrum of colors, we interpret the light as "white". In reality, the incandescent light we light our homes with is quite orange. Daylight is very blue. Fluorescent lights vary from sickly greens to reddish purples. And yet, we see all these lighting situations as more or less neutrally colored.
In the real world, light consists of all visible colors, not just red, green, and blue wavelengths. The RGB color system that we use in computer graphics arose out of a peculiarity of human perception - we have structures in our eyes called "cones" that respond to red, green, and blue light sources. A monochromatic yellow light excites both the red and green cones in our eyes, and we see it as yellow. Such a yellow light in the real world would not allow a red object to appear red, or a green object to appear green. But in computer graphics a yellow light has both a red and green component, and so allows objects with those colors to appear fully colored. This is a limitation of many computer graphic programs at the moment.
Film cameras cannot compensate for the varying shades of light in the way that our visual sense can. Thus, we have daylight film which has heavy orange filtering to tone down the blue quality of outdoor light. We have indoor film which has a boosted blue response to even out the amber lighting. For fluorescent situations, we can use a combination of film type and filters to color balance the scene we are photographing. If we were to pick a particular color of light, say daylight, and say that it is "white" and photograph everything, indoors and out, with a film stock that renders daylight as white, all of our indoor shots would be shades of orange and amber, and outdoor shots under blue sky would be intensely blue. This would be undesirable.
Thus too it is undesirable to pick a similar approach with our 3D rendering of light. We have to be relative - and choose a light color to be "white" in our scene, with other types of light sources being colored relative to that one. In this way we can produce our synthetic "photos" to produce a pleasing result in our final renders. Of course, to understand how different types of light sources relate to each other, it is important to understand how these light sources work. To do this we are going to look at 3 basic types of light source.