Decimal


You can also specify rgb values in decimal notation. Using decimal notation, you have a possible value range from 0 - 255 for each primary color. Thus if you wanted to specify white in decimal, it would be written: rgb(255, 255, 255). The browser-safe amounts in decimal are:
0%=0
60%=153
80%=204
100%=255
example:
body {color: rgb(0, 0, 255);
backgroun-color: rgb(255,255,255);}

Back to Hexa01 Page