
As Lynda Weinman explains on her web page Non-Dithering Colors in Browsers, the major web browsers will display only 216 unique colors per page without dithering, or mixing, pixels of different colors to approximate colors not on the palette. This palette of "pure" colors is determined mathematically. Each of the three colors of the RGB system (Red/Green/Blue) is represented at hex values FFFF, CCCC, 9999, 6666, 3333, and 0000, in combination with the other two colors in a similar pattern. For each color there are six values, so:
The first square in the above chart, the white one, has all three colors at FFFF. The next is R=FFFF, G=FFFF, B=CCCC. The sixth is R=FFFF, G=FFFF, B=0000. The seventh is R=FFFF, G=CCCC, B=FFFF. This continues until the 216th square, the black one, in which R=0000, G=0000, B=0000. The palette is contained in a Macintosh "clut" resource (color look-up table), which represents each of the primary colors as a 16-bit binary number. Two-to-the-sixteenth = 65536, but the numbering starts with zero, so the maximum value for each of the component colors is 65535 (hex:FFFF).
In Hex, the sequence looks like this:
thru
- FFFF FFFF FFFF
- FFFF FFFF CCCC
- FFFF FFFF 9999
- FFFF FFFF 6666
- FFFF FFFF 3333
- FFFF FFFF 0000
- FFFF CCCC FFFF
- FFFF CCCC CCCC
- FFFF CCCC 9999
- FFFF CCCC 6666
- FFFF CCCC 3333
- FFFF CCCC 0000
- 0000 3333 FFFF
- 0000 3333 CCCC
- 0000 3333 9999
- 0000 3333 6666
- 0000 3333 3333
- 0000 3333 0000
- 0000 0000 FFFF
- 0000 0000 CCCC
- 0000 0000 9999
- 0000 0000 6666
- 0000 0000 3333
- 0000 0000 0000
The advantage of creating graphics using this palette is that you can be assured that they will look pretty much the same on any browser. Lynda Weinman's page made this palette available in a form that would work with Photoshop. I've created a version that will work directly with SuperPaint and, with a little effort, with any Macintosh application that uses the "clut" resource to determine graphics palettes. This file, Browser-Safe Colors, is a SuperPaint palette file. If you are using another application that uses the "clut" resource, you can extract it from this file using ResEdit or any resource editor and embed it in the appropriate file type. To insure that you get the BinHexed file and not a screen full of text, hold down your "option" key while clicking the Browser-Safe Colors link.
This page last changed
03/03/97