1.2.3. Colour Codes
Since in computer graphics particularly 1 byte per primary colour is used as colour depth, the numbers 0-255 are used to encode all colours of one primary colour, whereas 0 stands for the lowest and 255 for the highest intensity. Below is listed the RGB-Code of some significant colours:
- Black: (0,0,0)
- White: (255,255,255)
- Red: (255,0,0)
- Green: (0,255,0)
- Blue: (0,0,255)
The following picture illustrates how accomplishes the codification of colours in the RGB-Colour space with the numbers 0-255. The grayscale colours are on the diagonal of the cube.
RGB Colour Space and Codification (Wikipedia)Alternatively, colours can be described using a hexadecimal notation. In this case the values range from 00 to FF, whereas 00 stands for the lowest and FF for the highest intensity.
Hexadecimal RGB-code of significant colours:
- Black: #000000
- White: #FFFFFF
- Red: #FF0000
- Green: #00FF00
- Blue: #0000FF
Experience the RGB-Colour-Coding in the following animation tool. You can change the intensity of each primary colour by dragging the sliders to an arbitrary position.