ZDTV Me!

Color table for Ryan F

Some colors work better than others when you're setting up graphics for a WebPage. Your best bet is to stick with the NetScape 216 color palette (to avoid ugliness and dithering by the browser). An easy way to tell whether or not the color is "browser safe" is to make sure that the only digits in the #RRGGBB triplet thingy are always multiples of 51 (33 in hexadecimal). That means that the hex values will only be made up of 0, 3, 6, 9, C, and F. Stick to 00, 33, 66, 99, CC and FF (multiples of 0x33) or, in decimal, 0, 51, 102, 153, 205 and 255 (multiples of 51). If you like, you're free to use any of the 16.7 MILLION (256^3=16,777,216) colors but the 216 are usually enough for anything you might want to put out on the WWW.

This is slightly rearranged to make things load faster! There are two new tables of the 216 colors (TABLE1 and TABLE2) and then there's the old (honkin') GIF file of the colors.

Here's a small gif file (6,641 bytes) that contains the 216 colors. You can save the file and use its palette when you create graphics for the web! That's what I usually do and it works pretty well for me.


216 Color Cube

[Browser-Safe] Color Cube


Of course, you can go ahead and experiment with all of the 16.7 million different (RGB) codes and see what colors you get. Each RGB byte can take any value from 0x00=0 to 0xFF=255 (giving you 256 settings for each of the 3 bytes). I remember when a box of 64 crayolas was a major luxury and the 128 crayola box was completely out of reach so 216 colors are much more than enough for me! (hahaha).

Well, I could just go on and on all day about this (but I don't want to start sounding like Leo Laporte, now, do I?). If you have a question ... ICQ me (or ZDTV Me).

The Screen Savers-Kate & Leo Call for Help-Leo rules! Silicon Spin-Dvorak rocks! Internet Tonight-see the GeeeRoo