Skip to content

Web Safe Colors: The 216-Color Palette

The 216 web-safe colors with HEX codes, grouped by red value, plus a tool that finds the nearest web-safe color for any color.

Each channel is rounded to the nearest of 00, 33, 66, 99, CC and FF.

Red 00

Red 33

Red 66

Red 99

Red CC

Red FF

Click a color to copy its HEX code. Short form: every web-safe color can also be written with three digits, e.g. #369 for #336699.

What are web-safe colors?

In the 1990s many computer screens could show only 256 colors. Browsers reserved a fixed set of 216 colors that looked the same on every system, and designers stuck to them to avoid dithering. In this set each red, green and blue channel is one of six values: 00, 33, 66, 99, CC or FF. That gives 6 × 6 × 6 = 216 colors.

Do I still need them?

No. Modern screens show millions of colors, so you can use any HEX code. The web-safe palette is still useful as a small, evenly spaced reference set, for retro and pixel-art styles, for email and legacy systems with limited color support, and for the short three-digit form of HEX: every web-safe color can be written as #369 instead of #336699.

Nearest web-safe color

Type or pick any color in the finder at the top. Each channel is rounded to the nearest of the six levels, which gives the closest web-safe color. Click the result to copy it. The grid below shows all 216 colors in six blocks, one per red value. Click any color to copy its HEX code.

More color tools