Is the Web Safe Palette really dead?

by Joe Gillespie — May 1, 2001

Red, Green and Blue can combine to give six colors plus black and white.


The infamous VGA palette still inflicts itself on many PCs today.

Early color-capable computers were restricted in the number of colours they could use. Before color Mac IIs came along in the mid '80s, most computers could only display 16 colors at one time. Memory chips were very expensive in those days and more colors needed more memory and faster processors to shift the extra data.

To make the most of the limited memory available, the computer makers gave us 'palettes' - sets of colors based on simple combinations of red, green and blue. By switching these three colors on and off you can additionally make, red + blue = magenta, red + green = yellow, green + blue = cyan and red + green + blue = white. When they are all off, you get black. So, you can have a palette of 8 colors by combining just the basic red, green and blue.

The next step was to add-in 50% (half brightness) of these colors so that there was dark red, dark magenta, dark blue etc, so we had a 16 color palette. If you can remember the early versions of Windows, you will appreciate that although the screen had an impression of lots of color, it was pretty crude by today's standards.

The color palette of the Mac II had an amazing 256 colors. Although the default was for the brightness values to be equally spaced, this wasn't absolutely necessary. Apart from black and white, which were fixed, any of the other 254 colors could be given whatever RGB value you wished choosing from any of 256 possible brightnesses of each color. Each 'slot' in the palette was adaptable so you could construct a palette that suited any particular requirement - a palette of blues for a seascape, a palette of reds and oranges for a sunset. Unless your image had lots of very different colors, an adaptive palette could cope. The trouble was that only one such palette could be used on the screen at any one time. If you tried to use two or more images with different adaptive palettes at once, things went haywire.

When PCs eventually caught up and offered 256 colors, Windows had to accommodate the 16-color palette from earlier VGA systems because those colors were 'reserved' for interface elements. Actually, there were four extra colors in this reserved set - 20 in total. The Windows palette had therefore only 236 adaptive colors.

When the first Web browsers appeared in the mid-'90s, the browser manufacturers had to come up with a palette that was a happy compromise between the Windows and Mac palettes. They took all the colors that were common to both - 216 of them and the Web-safe palette was born. At first, it was a fairly loose arrangement. Netscape would use the 216 Web-safe colors but also made use of the 40 left-over colors, which would be different on the two platforms, but useful nevertheless in displaying multi-colour images. Later versions of Netscape and Explorer abandoned the use of the 'spare' colors for consistency's sake.

Using colors from the Web-safe palette meant that they displayed on all computers consistently. If you used a color that was outside the palette, the browser would try its best to simulate the color using a process called 'dithering' where pixels of Web-safe colors are juxtaposed to produce the impression of intermediate colors.

Sometimes this works well, but often it makes the colors look grainy or speckled, the effect being especially objectionable where there are large areas of flat color or gradients.

Today's computers have more memory, faster processors and don't suffer from the colour palette restrictions of their predecessors. The need to use the Web-safe palette for color consistency has all but disappeared, unless you are developing Web pages specifically for that and that still have 8-bit monitors. Sure, there are some 'old and trusted' computers still out there somewhere, just as there are some black and white televisions and steam-driven radios, but the World moves on ...

So, is it finally time to kill-off the Web-safe palette? Can it safely be banished to the fast-growing junk-pile of obsolete Web technology? Many would say 'yes', but my vote is to keep it - but for an entirely different reason.

Designers in many fields have their color choices moderated by palettes of some sort.

paintsArtist's paints were originally made from naturally occurring pigments - colors like cadmium red, cobalt blue, zinc white and burnt sienna. When you mention one of these colors by name, a painter will know exactly what color you are referring to. Many of these natural pigments have now been replaced by cheaper synthesised equivalents, but their 'intentions' remain the same.

In my art and graphic design training and career, I have used palettes of one kind or another - designer's gouache, Magic Markers, Pantone Colors. These are all palettes, convenient sets of colors where each color is a definite entity with a name (or PMS number).

There are many other sets of standard colors in other trades, architectural paint colors, Munsell colors for fabric dyes and pigments for coloring plastics. The fact is, that having a small set of readily identifiable colors to work with makes life a lot easier than having to cope with a virtually infinite number of colors – many of which are redundant because they are indistinguishable from their neighbors.

It is easier to juggle with fewer balls!

visibone Bob Stein's Visibone2 palette arranges the Web-safe colors into a color wheel, by hue, and makes choosing colors much easier than a palette arbitarily arranged by RGB values. This palette is now shipped with Photoshop, Illustrator, BBEDit and several other packages.

A palette of 216 colors, especially when they are arranged sensibly as in the Visibone2 Web Palette, is much more manageable than the 17 million or so provided by a 24-bit video card. If you look at the 216 colors in the Web-safe palette, many of them are too similar to be useful and there are gaps where you wish there were intermediate colors. The Visibone palette makes this very obvious because it puts similar colors together. Remember, this palette is based upon 20% steps of red, green and blue, a progression arrived at by simple numeric steps rather than being determined by visual judgement. It is not ideal by any means, but you have to start somewhere.

#EC0109 doesn't quite have the ring to it that 'cadmium red' has and frankly, it is so imperceptibly different from #FF0000 that it make no difference. There will certainly be more variance between different brands of monitor and computer gamma settings than with these few percent. So, I would say, keep the Web-safe palette as a benchmark. Choose your basic colours from there, but if you need colors that are not in that palette, don't be afraid to mix your own. If you like a color, use it!

Extreme subtleties are a waste of time though. If 20% steps make little difference for some colours in the Web safe palette, there is little point of contemplating 5% steps.

In general, monitors that are not accurately calibrated - the vast majority - will reproduce some, if not all colours inaccurately. The worst offenders, I find, are cheap PC laptops, which are totally incapable of any kind of subtlety at the extreme light or dark ends, and even those colours change with viewing angle. Many office PCs have no colour calibration or any facility for adjustment, in other cases, people just don't know how to, or can't be bothered to set them up correctly. But two wrongs don't make a right!

As a Web designer, it is your responsibility to make sure that the colors you use are as accurate as possible. Can you imagine what would happen if record producers didn't care about the fidelity of their sound recordings? Listeners with cheap transistor radios would hear little if any difference, but people with expensive hi-fi systems would be quite justified in complaining about sub-standard recording quality. Digg Technorati Blinklist Furl reddit Design Float