RGB color coding

In a digital raster display, each image point, pixel ( picture matrix element ), carries a color value in addition to its x and y coordinate values . The point color is composed of three basic colors: Each value determines the shade of one of the basic colors, takes on values ​​from 0 to 255 in the basic coding, and their combination creates the overall color (hence RGB coding):
 * Red - red
 * Green - green
 * Blue - blue


 * 0 is the darkest - the given color does not participate in the composition
 * 255 is the lightest - the color is applied most strongly

Sometimes the hexadecimal system is used for the possibility of writing all values ​​in two digits from 00 to #FF (=255).

By combining them, it is possible to create a total of 16,777,216 (=256 3 ) colors.

Safe Colors
Safe colors, i.e. colors that are guaranteed to display correctly on any device capable of displaying those colors, are always 51 shades from each component (in hexadecimal notation, these are the values ​​00, 33, 66, 99, CC, and FF). They were mainly used in times when some devices were not able to display all almost seventeen million colors, today their importance is not great.

Most common colors

 * black - R=0 G=0 B=0
 * white - R=255 G=255 B=255
 * green - R=0 G=255 B=0
 * blue - R=0 G=0 B=255
 * red - R=255 G=0 B=0
 * yellow - R=255 G=255 B=0
 * purple - R=255 G=0 B=255
 * cyan - R=0 G=255 B=255