Tutorials

Web Safe Colors

  • Published
  • 2 min read
  • CSS
  • UI Design
  • Web Design
What Are Web Safe Colors
In this article
  1. What Are Web Safe Colors?
  2. How the 216 Colors Are Built
  3. The Creation of Web Safe Colors
  4. The Role of Web Safe Colors
  5. Current Relevance

Corrected . Removed the claim that web safe colors look identical on every display and replaced the empty chart with a table of the six channel values used to build the 216 colors. Editorial approval is still pending.

What Are Web Safe Colors?

The web safe palette is a set of 216 colors that was designed in the 1990s for displays that could show only 256 colors at once. Each color is built from red, green and blue values taken from just six steps, so a browser on such a display could show them without dithering (mixing dots of two other colors to approximate one). It was a practical workaround for the hardware of that era, not a guarantee that a color looks identical on every screen. Even today, the same hex value can look different on different displays, because of screen type, brightness, color profile and viewing conditions.

How the 216 Colors Are Built

Every web safe color uses one of six values for each of the red, green and blue channels. Six red values multiplied by six green values multiplied by six blue values gives 216 combinations. In hex colors, each channel is one of the following pairs.

The six channel values used by the web safe palette
Hex pairDecimal (0 to 255)Share of full intensity
0000%
335120%
6610240%
9915360%
CC20480%
FF255100%

Combine one pair for each channel to get a web safe color. For example, #000000 is black, #FFFFFF is white, #FF0000 is pure red, #003366 is a dark blue and #99CC33 is a yellow-green. Short CSS notation works too: #036 expands to #003366.

The Creation of Web Safe Colors

Many computers in the 1990s could display only 256 colors at once, and operating systems reserved some of those for their own interface. Choosing 216 evenly spaced colors left room for those system colors, so designers had a set that was unlikely to be dithered on 256-color screens. This mattered in the early days of web design, when many visitors used such displays.

The Role of Web Safe Colors

These colors were useful in early web design for logos, backgrounds and text that had to avoid visible dithering on limited displays. They also gave designers a shared, easy-to-remember palette, which made them an early part of web color practice.

Current Relevance

Almost all current screens show millions of colors, so you do not need to restrict a design to the web safe palette. Today, colors are chosen for brand fit, contrast and readability rather than for the 216-color limit. Check text and background combinations against the WCAG contrast guidance, and remember that appearance still varies between displays. The web safe palette remains a useful piece of web history and a simple way to see how hex color values work.

Share this article

Written by

Webzstore Team

Webzstore has helped businesses since 2010. Today, we bring websites, digital marketing and enquiry follow-up into practical plans built around the work each business needs.

Related services

Talk about your website or marketing

Book a Free 30-Minute Call

More tutorials

All tutorials

Privacy choices

Choose what this website may load. Your choice is saved on this device for up to 180 days. Privacy Policy

Turning a choice off stops further use of that optional service on this site. It does not take back information already sent, and we cannot delete cookies that other services set in your browser.