11.11 Specifying colors with RGB values
RGB values are used to specify colors. Red, green and blue are specified with values between 0 and 255. One color is specified
with a combination of three values.
The following table lists examples of RGB value specifications:
Table 11‒16: Example RGB values
No.
|
Color
|
RGB value
(in red-value:green-value:blue-value format)
|
1
|
White
|
255:255:255
|
2
|
Yellow
|
255:255:0
|
3
|
Light gray
|
192:192:192
|
4
|
Sky blue
|
0:255:255
|
5
|
Yellow green
|
0:255:0
|
6
|
Gray
|
128:128:128
|
7
|
Dark yellow
|
128:128:0
|
8
|
Dark pink
|
255:0:255
|
9
|
Blue green
|
0:128:128
|
10
|
Red
|
255:0:0
|
11
|
Green
|
0:128:0
|
12
|
Purple
|
128:0:128
|
13
|
Brown
|
128:0:0
|
14
|
Blue
|
0:0:255
|
15
|
Dark blue
|
0:0:128
|
16
|
Black
|
0:0:0
|
The table lists only example RGB values. You can use a wide range of colors within the range that can be specified with RGB
values.
To Page Top