There are several ways to specify colors. The most common of these is the RGB color model. The RGB model defines a color by giving the intensity level of red, green and blue light that mix together to create a pixel on the display. With most of today's displays, the intensity of each color can vary from 0 to 255, which gives 16,777,216 different colors. (Older displays with less memory might only allow 256 colors, and really ancient displays might have only 16).
Here are some example colors and their red, green and blue intensity values:
Color | Red | Green | Blue |
---|---|---|---|
Red | 255 | 0 | 0 |
Green | 0 | 255 | 0 |
Blue | 0 | 0 | 255 |
Yellow | 255 | 255 | 0 |
Cyan | 0 | 255 | 255 |
Magenta | 255 | 0 | 255 |
White | 255 | 255 | 255 |
Black | 0 | 0 | 0 |
These are only a few of the possible colors. You can experiment with the RGB demonstration program to see these and others.
Here is another page explaining the RGB color model.
Here is a very large RGB display.
Here is a An unusual pixel image.
Here are some very high-definition images.