For the combination of Red, Green And Blue color values, HTML colors can be defined as a hexadecimal notation.
The highest value that can be given to one light source is 255 and the lowest value is 0.
HTML Colors Code
The result of combining Red, Green and Blue light sources is shown by the table below
|Color||Color HEX||Volor RGB|
W3C Standard Color Names
16 color names have been listed by W3C that will validate with an HTML validator.
Cross-browser Color Values
A list of 216 Web Safe Colors was suggested as a Web standard, when most computers only supported 256 different colors, some years ago. The Microsoft and Mac operating system used 40 different “reserved” fixed system colors was the reason for this.
Since most computers today have the ability to display millions of different colors, we are not sure how important is this now, but the choice is left to you.
To ensure that all computers would display the colors correctly when running a 256 color palette the 216 cross-browser color palette was created.