HTML5 Logo

Web Safe Colours

Colour Charts with hexadecimal values

The HTML4.01 and CSS 2.1 specification defined sixteen named colours, as shown in table one. CSS 2.1 also supports orange colour (#ffa500). Table two shows the standard colour palette that showed 216 colours without dithering. The number 216 was used because it allows six equally spaced shades of red, green and blue (6x6x6), each from FF to 00. The remaining colours were typically reserved for the operating system. In fact many applications earlier did not support 216 colours, and the result was that the browsers actually dithered on such systems. Another flaw was that web safe colours were best shown in 8 bit displays. In 16 bit systems, only 22 of the 216 colours are reliably displayed without inconsistent remapping. Those 22 safest web colours are underlined in table two below.

Today web safe colours are more or less history, simply because most computers, gadgets and mobile devices supports 24-bit true colour. Anyway, the web safe colour palette can still be a useful tool. WCAG 2 demand contrast ratio of at least 4.5:1 (AA), up to at least 7:1 (AAA) between the text and the background. Instead of looking up 16 million colours (24 bit), it might be easier to use table three below with its 512 colours. All tables show hexadecimal values, but table two could be listed short-hand for the RGB value (603 instead of HEX code #660033).

Sorry, but it seems that you cannot see the web safe colours, and the tables with RGB and hexadecimal values, because you are using a text browser or don't have the proper plug-ins. Anyway, there is a possibility, in table 1.0 below, to see sixteen (16) of the web safe colours in text version.

Table of contents

  1. Table 1 - 16 Named Colours
  2. Table 2 - 216 Web Safe Colours
  3. Table 3 - 512 Colours with Hexadecimal Values
Table 1.0 - The 16 named colours
Colour Hexadecimal Color Hexadecimal
Aqua 00ffff Black 000000
Blue 0000ff Fuchsia ff00ff
Gray 808080 Green 008000
Lime 00ff00 Maroon 800000
Olive 808000
Purple 800080 Red ff0000
Silver c0c0c0 Teal 008080
White ffffff Yellow ffff00
Table 2.0 - 216 Web Safe Colours with Hexadecimal Values
Web Safe Colour Table
000000 330000 660000 990000 cc0000 ff0000
000033 330033 660033 990033 cc0033 ff0033
000066 330066 660066 990066 cc0066 ff0066
000099 330099 660099 990099 cc0099 ff0099
0000cc 3300cc 6600cc 9900cc cc00cc ff00cc
0000ff 3300ff 6600ff 9900ff cc00ff ff00ff
003300 333300 663300 993300 cc3300 ff3300
003333 333333 663333 993333 cc3333 ff3333
003366 333366 663366 993366 cc3366 ff3366
003399 333399 663399 993399 cc3399 ff3399
0033cc 3333cc 6633cc 9933cc cc33cc ff33cc
0033ff 3333ff 6633ff 9933ff cc33ff ff33ff
006600 336600 666600 996600 cc6600 ff6600
006633 336633 666633 996633 cc6633 ff6633
006666 336666 666666 996666 cc6666 ff6666
006699 336699 666699 996699 cc6699 ff6699
0066cc 3366cc 6666cc 9966cc cc66cc ff66cc
0066ff 3366ff 6666ff 9966ff cc66ff ff66ff
009900 339900 669900 999900 cc9900 ff9900
009933 339933 669933 999933 cc9933 ff9933
009966 339966 669966 999966 cc9966 ff9966
009999 339999 669999 999999 cc9999 ff9999
0099cc 3399cc 6699cc 9999cc cc99cc ff99cc
0099ff 3399ff 6699ff 9999ff cc99ff ff99ff
00cc00 33cc00 66cc00 99cc00 cccc00 ffcc00
00cc33 33cc33 66cc33 99cc33 cccc33 ffcc33
00cc66 33cc66 66cc66 99cc66 cccc66 ffcc66
00cc99 33cc99 66cc99 99cc99 cccc99 ffcc99
00cccc 33cccc 66cccc 99cccc cccccc ffcccc
00ccff 33ccff 66ccff 99ccff ccccff ffccff
00ff00 33ff00 66ff00 99ff00 ccff00 ffff00
00ff33 33ff33 66ff33 99ff33 ccff33 ffff33
00ff66 33ff66 66ff66 99ff66 ccff66 ffff66
00ff99 33ff99 66ff99 99ff99 ccff99 ffff99
00ffcc 33ffcc 66ffcc 99ffcc ccffcc ffffcc
00ffff 33ffff 66ffff 99ffff ccffff ffffff

Table 3.0 - 512 Colours with Hexadecimal Values

512 RGB Colours

Web Safe Fonts

The JavaScript Source