Resources and tutorials for Webmasters
Resources and tutorials for Webmasters

Wednesday, June 17, 2009

Html Color Values

HTML colors are defined using a hexadecimal (hex) notation for the combination of Red, Green, and Blue color values (RGB). The lowest value that can be given to one of the light sources is 0 (hex 00). The highest value is 255 (hex FF). Hex values are written as 3 double digit numbers, starting with a # sign.

Colors may also be specified by six-character codes representing their relative red/green/blue (RGB) values, where the possible values for each color component are 00 to FF. 00 represent the least amount of the color present and FF represents the most of that color present. The first two bytes indicate the amount of red, the second two bytes represent the amount of green and the last two bytes represent the amount of blue.

No comments: