Web Safe Colors
Color Charts with hexadecimal values
The HTML4.01 and CSS 2.1 specification defined sixteen named colors, as shown in table one. CSS 2.1 also supports orange color (#ffa500). Table two shows the standard color palette that showed 216 colors 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 colors were typically reserved for the operating system. In fact many applications earlier did not support 216 colors, and the result was that the browsers actually dithered on such systems. Another flaw was that web safe colors were best shown in 8 bit displays. In 16 bit systems, only 22 of the 216 colors are reliably displayed without inconsistent remapping. Those 22 safest web colors are underlined in table two below.
Today web safe colors are more or less history, simply because most computers, gadgets and mobile devices supports 24-bit true color. Anyway, the web safe color 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 colors (24 bit), it might be easier to use table two below with its 216 colors. All tables show hexadecimal values, but table two could be listed short-hand for the RGB value (#603 instead of HEX code #660033). Please use the Color Converter if you want RGB values instead of hexadecimal values.
Table of contents
Color | Hexadecimal | Color | Hexadecimal |
---|---|---|---|
Aqua | 00ffff | Black | 000000 |
Blue | 0000ff | Fuchsia | ff00ff |
Gray | 808080 | Green | 008000 |
Lime | 00ff00 | Maroon | 800000 |
Navy | 000080 | Olive | 808000 |
Purple | 800080 | Red | ff0000 |
Silver | c0c0c0 | Teal | 008080 |
White | ffffff | Yellow | ffff00 |
Top of table 1 ↑ |
Safe Web Colors | |||||
---|---|---|---|---|---|
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 |
Top of table 2 ↑ |