Web Safe Colors
Overview
The web safe palette is a fixed set of 216 colors that early
browsers could all show the same way. Every one is built from just
six values per channel, 00, 33,
66, 99, CC and
FF, so its hex codes follow a simple, readable pattern.
Screens no longer need it, but it is still the clearest way to see
how hex codes describe a color.
Why It Matters
In the 1990s many computers could show only 256 colors at once, and the operating system kept some of those for itself. A color outside the shared set was faked with a dot pattern of nearby colors, called dithering, which made flat areas look grainy and text look fuzzy. Designers who stayed inside the 216 colors got the same result on every machine. Today almost every screen shows millions of colors, so the limit is gone. What remains useful is the structure: once you can read a web safe code, you can read any hex code, and the chart is a quick map of how red, green and blue mix.
Core Principles
- Six steps per channel, 6 × 6 × 6 = 216. Each of red, green and blue takes one of six evenly spaced levels: 0, 51, 102, 153, 204 or 255 in decimal. Every combination is one color, and nothing between the steps is included.
- A hex code is three pairs.
#CC3300reads as redCC, green33, blue00: a lot of red, a little green, no blue, which is a burnt orange. Because each pair in the palette is a doubled digit, every web safe color also has a three digit shorthand,#C30. - Equal channels make grays. When red, green and
blue match, the color has no hue:
#000000,#333333and so on up to#FFFFFFgive six grays, the diagonal of the chart. - A safe color is not an accessible color. Being in the palette says nothing about contrast. Of the 216, only 77 reach the WCAG AA 4.5:1 ratio as text on white, and 136 on this site's dark background. Check every pair you use.
Interactive Demo
Six panels, one per red level. In each panel, green rises from top to bottom and blue rises from left to right. Select a swatch to see its codes and contrast; use the arrow keys to move, Page Up and Page Down to change panel.
00
33
66
99
CC
FF
- Hex
#CC3300- Short
#C30- RGB
rgb(204, 51, 0)- On white
- 5.6:1
- On dark
- 3.6:1
#2F81F7
#3399FF
Nearest web safe color: each channel rounded to the closest of the six steps.
Common Mistakes
- Limiting a modern design to the 216 colors. Current screens show any hex code accurately; the palette is a learning aid, not a rule, and its steps are too coarse for subtle surfaces and borders.
- Assuming a palette color is readable because it is
“safe”. Bright pairs such as
#FF0000on#0000FFare both in the palette and fail every contrast check. - Reading a hex code as one number.
#00FF00is not “more” than#FF0000; the pairs are separate channels, and the eye sees green as far brighter than red or blue at the same value.
Related Concepts
- Color and Contrast: how to give colors roles and check the contrast between them.
- Accessibility and WCAG Basics: where the 4.5:1 and 3:1 thresholds come from.
- Typography: text color and size together decide whether type is readable.
- Template Interface Color Standard: the modern answer to the same problem: a palette and roles that are readable everywhere, not just displayable.
Used In Templates
No template is limited to the palette, since none needs to be. The templates pick exact colors for each brand and check their contrast instead, which is the modern version of the same goal: colors that look the way you meant them to for everyone.
Summary
The web safe palette is 216 colors made from six steps per channel, a fix for screens that could show only 256 colors. That problem is gone, but the palette remains a clear lesson in how hex codes work, and a reminder that a color being safe to display is not the same as it being readable.