Netpanel Home About Feedback Downloads Search
Web Site Hosting
Host your site on our high performance virtual domain and non-domain accounts.

Web Page Design
Let Netpanel design your web site the way you want it.

Search Panel
Submit your web site to 15 major search engines quickly and easily at no charge.

Free Software
Download some of our free 32-bit software programs for Windows.

Archives
Find every news story, article, and special feature ever published on Netpanel.

Survey
Take a moment to fill out our quick survey, and earn a free utility in the process.

Safety color palette
Published on 5/19/97Special Feature

The safety color palette is a set of 216 different colors that should be used in images designed for the World Wide Web. By using this set of colors, you minimize the risk of unwanted dithering in your images.

Dithering occurs when a certain color cannot be represented in a solid form. Instead, alternating pixels of similar colors are used to create a dithered form of the original color. This results in rough-looking images, often with jagged edges and fuzzy colors.

Most cases of dithering result because a high-color image is being displayed on a 256 color system, which is what often occurs on the Internet. You may design an image using 16 million colors, and then save it as a 256 color gif image, but the dithering problem will still occur.

The reason for this lies within your web browser and your operating system. You would think that a 256 color image would display properly on a 256 color system, but that is not always the case. Microsoft Windows reserves 40 of those colors for its own use, leaving only 216 empty spaces in the color palette.

By creating graphics that use only these 216 colors, you can be relatively sure that your images won't dither on other machines. That is why this set of colors is called the safety palette; by using it, your images should be safe from the effects of dithering.

By now you are probably wondering exactly which colors belong to the safety palette. The RGB value for any color in the safety palette will be composed of three numbers, all of which must be one of the following: 0, 51, 102, 153, 204, or 255. In the six-digit hex format, each two-digit segment must be one of the following: 00, 33, 66, 99, CC, or FF. For example, the color represented by the RGB value of 0,51,153 is a shade of blue that belongs to the safety palette. The same color represented in hex would be 003399. Notice how each number in the RGB format, and each two-digit segment in the hex format, is one of the specified values. Another shade of blue, 0,50,150 in RGB, or 003296 in hex, does not belong to the safety palette, because not all of the numbers are valid.

The chart below shows a sample of each safety palette color. When you move the cursor over a color, the hex code for that color will be displayed in your browser's status bar. Users of Internet Explorer will also be able to see the hex code in a tooltip, by holding the cursor over a color for a few seconds.

Safety Color Palette
#000000 #006600 #00CC00 #330000 #336600 #33CC00 #660000 #666600 #66CC00 #990000 #996600 #99CC00 #CC0000 #CC6600 #CCCC00 #FF0000 #FF6600 #FFCC00
#000033 #006633 #00CC33 #330033 #336633 #33CC33 #660033 #666633 #66CC33 #990033 #996633 #99CC33 #CC0033 #CC6633 #CCCC33 #FF0033 #FF6633 #FFCC33
#000066 #006666 #00CC66 #330066 #336666 #33CC66 #660066 #666666 #66CC66 #990066 #996666 #99CC66 #CC0066 #CC6666 #CCCC66 #FF0066 #FF6666 #FFCC66
#000099 #006699 #00CC99 #330099 #336699 #33CC99 #660099 #666699 #66CC99 #990099 #996699 #99CC99 #CC0099 #CC6699 #CCCC99 #FF0099 #FF6699 #FFCC99
#0000CC #0066CC #00CCCC #3300CC #3366CC #33CCCC #6600CC #6666CC #66CCCC #9900CC #9966CC #99CCCC #CC00CC #CC66CC #CCCCCC #FF00CC #FF66CC #FFCCCC
#0000FF #0066FF #00CCFF #3300FF #3366FF #33CCFF #6600FF #6666FF #66CCFF #9900FF #9966FF #99CCFF #CC00FF #CC66FF #CCCCFF #FF00FF #FF66FF #FFCCFF
#003300 #009900 #00FF00 #333300 #339900 #33FF00 #663300 #669900 #66FF00 #993300 #999900 #99FF00 #CC3300 #CC9900 #CCFF00 #FF3300 #FF9900 #FFFF00
#003333 #009933 #00FF33 #333333 #339933 #33FF33 #663333 #669933 #66FF33 #993333 #999933 #99FF33 #CC3333 #CC9933 #CCFF33 #FF3333 #FF9933 #FFFF33
#003366 #009966 #00FF66 #333366 #339966 #00FF66 #663366 #669966 #66FF66 #993366 #999966 #99FF66 #CC3366 #CC9966 #CCFF66 #FF3366 #FF9966 #FFFF66
#003399 #009999 #00FF99 #333399 #339999 #33FF99 #663399 #669999 #66FF99 #993399 #999999 #99FF99 #CC3399 #CC9999 #CCFF99 #FF3399 #FF9999 #FFFF99
#0033CC #0099CC #00FFCC #3333CC #3399CC #33FFCC #6633CC #6699CC #66FFCC #9933CC #9999CC #99FFCC #CC33CC #CC99CC #CCFFCC #FF33CC #FF99CC #FFFFCC
#0033FF #0099FF #00FFFF #3333FF #3399FF #33FFFF #6633FF #6699FF #66FFFF #9933FF #9999FF #99FFFF #CC33FF #CC99FF #CCFFFF #FF33FF #FF99FF #FFFFFF

Now that you have seen all of the safety palette colors, you should try to use them in your graphics. By doing so, you will protect your images from dithering on virtually any 256 color system. Even if you design your graphics using millions of colors, keep in mind that many other viewers on the Internet will not see them as you intended. If you want your images to look properly for everyone, use the safety color palette.


Get Microsoft Internet Explorer
Home | About | Feedback | Downloads | Search

Copyright © Michael Yigdall and Jonathan Strine
Any trademarks referenced or displayed
are property of their respective owners.
Last updated: 5/17/98