Web Safe Colors: Complete Guide to 216 Web Colors

Published April 2026 · 8 min read · Try Color Converter →

What Are Web Safe Colors?

Web safe colors are a palette of 216 specific colors that were guaranteed to display consistently across all computer platforms and browsers in the 1990s. The palette was created because early computer displays could only show 256 colors (8-bit color), and different operating systems (Mac and Windows) reserved 40 different system colors. The remaining 216 colors that both systems could reproduce identically became the "web safe" palette. Each web safe color has RGB values that are multiples of 51 (in decimal) or 33 (in hex): 0, 51, 102, 153, 204, and 255.

Are Web Safe Colors Still Relevant?

The short answer: not technically, but they're still useful. Modern displays support 24-bit color (16.7 million colors) or more, so dithering and color shifting are essentially non-issues. However, web safe colors remain relevant for several practical reasons: they provide a curated, well-tested palette for quick design decisions, they're guaranteed to look good on any device including e-ink readers and low-end displays, and they're an excellent starting point for beginners learning color theory.

How Web Safe Colors Work

Web safe colors use only six values per RGB channel: 0, 51, 102, 153, 204, and 255. In hexadecimal, these are: 00, 33, 66, 99, CC, and FF. This gives us 6 × 6 × 6 = 216 unique combinations. The shorthand notation uses three characters instead of six: #036 expands to #003366. Every web safe color can be written this way.

Web Safe Color Reference Table

RGB ValuesHex ShortDecimal
0, 0, 0#0000
51, 51, 51#33351
102, 102, 102#666102
153, 153, 153#999153
204, 204, 204#CCC204
255, 255, 255#FFF255

Popular Web Safe Colors by Category

Web Safe Reds

NameHexRGBPreview
Maroon#800000128, 0, 0
Red#FF0000255, 0, 0
Firebrick#B22222178, 34, 34
Crimson#DC143C220, 20, 60
Tomato#FF6347255, 99, 71
Coral#FF7F50255, 127, 80

Web Safe Blues

NameHexRGBPreview
Navy#0000800, 0, 128
Blue#0000FF0, 0, 255
Teal#0080800, 128, 128
Aqua#00FFFF0, 255, 255
Royal Blue#4169E165, 105, 225
Sky Blue#87CEEB135, 206, 235

Web Safe Greens

NameHexRGBPreview
Green#0080000, 128, 0
Lime#00FF000, 255, 0
Olive#808000128, 128, 0
Dark Green#0064000, 100, 0
Sea Green#2E8B5746, 139, 87
Spring Green#00FF7F0, 255, 127

Web Safe Color Naming Conventions

Of the 216 web safe colors, 147 have recognized CSS color names (like "coral," "tomato," "steelblue"). The remaining 69 are unnamed and can only be referenced by their hex or RGB values. This naming system dates back to the X11 color specification from the 1980s and was adopted by early web standards. Today, all 147 named colors are part of the CSS Color Module specification.

When to Use Web Safe Colors Today

Web Safe Colors vs Modern Color Standards

Modern web development has moved far beyond web safe colors. CSS now supports hsl(), hwb(), lab(), lch(), oklch(), and even color-mix() for blending. Display P3 wide gamut brings over 25% more colors than sRGB. For most projects, you should use whatever color best serves your design — the web safe constraint is no longer necessary. However, understanding the web safe palette remains valuable as a foundational concept in web design history and a practical quick-reference palette.

Frequently Asked Questions

How many web safe colors are there?

There are exactly 216 web safe colors, formed by all combinations of RGB values where each channel is one of: 0, 51, 102, 153, 204, or 255 (6 × 6 × 6 = 216).

Do I still need to use web safe colors?

No. Modern displays support millions of colors. Web safe colors are no longer a technical requirement. However, they can be a useful curated palette for quick decisions and email HTML design.

What's the difference between web safe and CSS named colors?

Web safe colors are the 216 colors in the safe palette. CSS named colors include 147 web safe colors plus additional named colors that aren't in the web safe palette, totaling 148 named colors in the CSS specification.

Can web safe colors be written in shorthand hex?

Yes. Every web safe color can be written as a 3-character hex code. For example, #036 is the same as #003366. This works because each channel uses only values from the set 00, 33, 66, 99, CC, FF.

What's the most popular web safe color?

White (#FFFFFF) and black (#000000) are by far the most used. Among colors, #336699 (a medium blue) was extremely popular in early web design, and #999999 remains a go-to gray.