Ah, color theory, one of my favorite topics.
RGB: Computers display color on monitors, at least, by combining red, green and blue monochromatic light. This is because the human eye (usually!) has three sets of color-sensitive receptors; these receptors have their peak stimulation in the red, green, and blue regions of the spectrum, respectively. Computers (and televisions) take advantage of this and generate trichomatic light that will be perceived the same as a monochromatic (or polychromatic, in some cases) light source of the same color. Because of the way human vision works, there is a certain mixture of monochromatic red light and monochromatic green light that will look exactly the same to you (unless you’re colorblind or a tetrachromat) as a monochromatic yellow light source.
There are color of light that humans can see that cannot be represented by the computer’s RGB color space. Generally, this is because those colors have more red, blue, or green in them than your monitor can put out. This problem is most noticable in the blues and violets because the blue intensity of a standard monitor is not capable of going very high, relative to the green or red. There are also colors that cannot be well-represented because they have fundamental wavelengths shorter than that of television blue or longer than that of television red. Some of them can be approximated, but most of them are impossible because it’s not possible to emit a negative amount of monochromatic light. (I’ll explain this in a subsequent post or in my LiveJournal if requested.)
HSV (or HSL): The hue, saturation, value color space is just another way of representing the same three values for each color as the RGB space is. HSV is a modified cylindrical mapping of RGB space. Basically, first we squish the “color cube” of RGB space onto an upside-down cone (with black at the point, white at the middle of the base at the top, and the primary colors red, green, and blue 120 degrees apart on the circumference of the base). We then define “value” as the height of the color, saturation as how far the color is away from the center of the cone, and hue as how far along the circumference from red that color is. HSV is not a very useful colorspace, however, because of the lack of “perceptual uniformity”: small changes in one coordinate do not always make consistently small changes in perceived color.
Luminance is a variation on value that weights green more than red and red more than blue, according to an empirical formula developed by the NTSC when they were developing the standard for color television. This weighting reduces, but does not eliminate, perceptual disuniformity.
There are other colorspaces, such as CIE XYZ, CIE Luv, and CIE Lab that seek to remedy either the “gamut” problem (colors that cannot be represented) or the perceptual nonuniformity problem (small changes in numbers not leading to similarily small changes in perception). Lab is currently the best approximation we have. The formula for computing Lab is complex and also depends on your choice of “white point”, a separate issue that I will not get into right now.
Frequency and wavelength: Visible light has wavelengths ranging from about 380 nanometers (violet) to about 720 nanometers (red). The color of a monochromatic (single color) light source is determined by its wavelength. Each wavelength in this range will stimulate the three color receptors in the eye in different ways, which is how we perceive different colors. Monochromatic colors often look very strange to us (usually, “harsh” is the word used) because most light sources in nature are polychromatic. Since light consists of vibrating photons, frequency and wavelength are tied together by the physics of a vibrating object. Frequency is just the speed of light divided by the wavelength. It is more normal to talk of wavelength when discussing visible light.
Color temperature: Color temperature is related to wavelength through what is called “blackbody radiation”. When you heat an object up, it emits radiation in a spread of frequencies that depends on the temperature. The hotter the object, the higher the frequencies it emits at. At about 2000 kelvins or so (that’s about 3100 degrees Fahrenheit) blackbody radiation will appear dimly red. As the temperature gets hotter, the perceived color goes through red, orange, yellow, yellow-white, white, and then blue-white at around 10,000 kelvins. Above 10,000 kelvins the the peak of the blackbody emission spectrum moves into the ultraviolet and the perceived color becomes more bluish as the lower red and green colors begin to taper out.
I’ll add links and further comments if people want them. I have to run just now.