54+ Local Tools Available
100% Browser Execution (No Uploads)
Zero Latency Instant Output
100% Private & Secure
Design & Colors Client Local

Web Safe Colors

A curated collection of the classic 216 Web Safe Color Palette originally designed to ensure dithering-free, identical color rendering across 8-bit (256-color) displays on Windows and Mac OS. Supports Hue, Luminance, and RGB sorting, live search filtering, real-time Euclidean nearest-color quantization, and one-click CSS/JSON export.

Copy Format:
Showing 216 colors
#FFFFFF
#CCCCCC
#999999
#666666
#333333
#000000
#FFCCCC
#FF9999
#CC9999
#FF6666
#CC6666
#996666
#FF3333
#CC3333
#993333
#663333
#FF0000
#CC0000
#990000
#660000
#330000
#FF3300
#FF6633
#CC3300
#FF9966
#CC6633
#993300
#FF6600
#FFCC99
#FF9933
#CC9966
#CC6600
#996633
#663300
#FF9900
#FFCC66
#CC9933
#996600
#FFCC33
#CC9900
#FFCC00
#FFFFCC
#FFFF99
#FFFF66
#FFFF33
#FFFF00
#CCCC99
#CCCC66
#CCCC33
#CCCC00
#999966
#999933
#999900
#666633
#666600
#333300
#CCFF00
#CCFF33
#99CC00
#CCFF66
#99CC33
#669900
#99FF00
#CCFF99
#99FF33
#99CC66
#66CC00
#669933
#336600
#66FF00
#99FF66
#66CC33
#339900
#66FF33
#33CC00
#33FF00
#CCFFCC
#99FF99
#66FF66
#33FF33
#99CC99
#00FF00
#66CC66
#33CC33
#00CC00
#669966
#339933
#009900
#336633
#006600
#003300
#00FF33
#33FF66
#00CC33
#66FF99
#33CC66
#009933
#00FF66
#99FFCC
#33FF99
#66CC99
#00CC66
#339966
#006633
#00FF99
#66FFCC
#33CC99
#009966
#33FFCC
#00CC99
#00FFCC
#CCFFFF
#99FFFF
#66FFFF
#33FFFF
#00FFFF
#99CCCC
#66CCCC
#33CCCC
#00CCCC
#669999
#339999
#009999
#336666
#006666
#003333
#00CCFF
#33CCFF
#0099CC
#66CCFF
#3399CC
#006699
#0099FF
#99CCFF
#6699CC
#3399FF
#336699
#0066CC
#003366
#0066FF
#6699FF
#3366CC
#003399
#3366FF
#0033CC
#0033FF
#CCCCFF
#9999FF
#9999CC
#6666FF
#6666CC
#666699
#3333FF
#3333CC
#333399
#333366
#0000FF
#0000CC
#000099
#000066
#000033
#3300FF
#6633FF
#3300CC
#9966FF
#6633CC
#330099
#6600FF
#CC99FF
#9966CC
#9933FF
#663399
#6600CC
#330066
#9900FF
#CC66FF
#9933CC
#660099
#CC33FF
#9900CC
#CC00FF
#FFCCFF
#FF99FF
#CC99CC
#FF66FF
#CC66CC
#996699
#FF33FF
#CC33CC
#993399
#FF00FF
#663366
#CC00CC
#990099
#660066
#330033
#FF00CC
#FF33CC
#CC0099
#FF66CC
#CC3399
#990066
#FF0099
#FF99CC
#CC6699
#FF3399
#993366
#CC0066
#660033
#FF0066
#FF6699
#CC3366
#990033
#FF3366
#CC0033
#FF0033

Color Inspector

#FF0066
#FF0066
HEX
#FF0066
RGBrgb(255, 0, 102)
HSLhsl(336, 100%, 50%)
WCAG Text Contrast Ratio
on White
3.86:1
Fail
on Black
5.44:1
AA
Live Component Preview
Badge Label

Card container and text rendering sample

Find Nearest Web Safe Color

Input any custom 24-bit color to instantly find the closest matching Web Safe Color using 3D Euclidean distance quantization.

#E35205
Original
#CC6600
Web Safe (Click)
Color Distance Error (ΔE): 30.9

Export 216 Palette (Export Palette)

Export the complete 216-color palette formatted for your frontend tech stack.

All color searches, Euclidean approximations, and code exports execute strictly within your local browser memory with zero network latency.

216 Web Safe Color Specs
Total Colors216 (6 × 6 × 6)
HEX Steps00, 33, 66, 99, CC, FF
RGB Steps0, 51, 102, 153, 204, 255
Web Color Theory & Digital Design History

The History, Mathematics, and Modern Applications of the 216 Web Safe Colors

In the mid-1990s during the early days of the World Wide Web, computer monitors were limited to 8-bit (256-color) display adapters. To prevent unsightly dithering patterns and visual noise across different operating systems (Windows, Mac OS) and browsers (Netscape Navigator, Mosaic), engineers standardized a universal palette of 216 colors.

While modern displays now render 24-bit True Color (16.7 million colors) and 10-bit HDR effortlessly, the 216 Web Safe Colors remain a cornerstone of digital colorimetry and a celebrated aesthetic palette for retro Y2K, 8-bit pixel art, cyber-brutalist, and indie web design.

This guide explores the historical origin of the 216 palette, the mathematics of the 6×6×6 RGB color cube, Euclidean distance quantization algorithms, and modern frontend implementation techniques.

Full 6×6×6 RGB Color Cube Coverage

Interactively explore all 216 mathematical coordinates spanning steps 00 to FF at intervals of 51.

Real-Time Euclidean Color Quantization

Quantize any modern 24-bit color into its nearest web safe equivalent via 3D RGB distance algorithms.

3 Interactive View Modes & Granular Sorting

Toggle between Grid, List, and Grouped layouts sorted by Hue, Luminance, or RGB channel intensities.

4-Format Export: JSON, CSS, SCSS & Tailwind

Export all 216 color definitions directly into your frontend build pipeline with one click.

1. The Historical Origin (Why 216 Out of 256 Colors?)

Technical Limitations of 8-Bit Displays:
- Early desktop computers could display a maximum of 256 simultaneous colors (28=2562^8 = 256) due to video RAM constraints.
- When a webpage requested an unmapped color, the browser performed dithering (scattering colored pixel dots), creating muddy mosaic artifacts that degraded legibility.
Operating System Reserved Colors & the 216 Remainder:
- Microsoft Windows reserved 16 to 20 system colors for window titlebars, scrollbars, and buttons.
- Apple Mac OS similarly reserved 20 unique system colors.
- Netscape engineers calculated the safe intersection of non-reserved palette entries, establishing 25640=216256 - 40 = 216 common shared colors as the "Netscape Web Safe Palette".

2. Mathematical Principles of the 6×6×6 RGB Color Cube

Uniform Step Geometry of 51:
- In the 24-bit RGB model, each color channel (Red, Green, Blue) ranges from 00 to 255255.
- 216 colors form a perfect 3-dimensional cube: 6×6×6=63=2166 \times 6 \times 6 = 6^3 = 216.
- Dividing the 0-255 range into 5 equal intervals (6 coordinate vertices) yields step interval 5151:
- Valuek=k×2555=k×51(k=0,1,2,3,4,5)\displaystyle \text{Value}_k = k \times \frac{255}{5} = k \times 51 \quad (k = 0, 1, 2, 3, 4, 5)
Decimal to Hexadecimal (HEX) Step Mapping:
- k=0:0    0016k=0: 0 \implies \mathbf{00_{16}}
- k=1:51    3316k=1: 51 \implies \mathbf{33_{16}}
- k=2:102    6616k=2: 102 \implies \mathbf{66_{16}}
- k=3:153    9916k=3: 153 \implies \mathbf{99_{16}}
- k=4:204    CC16k=4: 204 \implies \mathbf{CC_{16}}
- k=5:255    FF16k=5: 255 \implies \mathbf{FF_{16}}
- Every web safe HEX code is constructed exclusively from pairs of 00, 33, 66, 99, CC, FF (e.g. #336699, #FFCC00, #00FF66).

3. Nearest Web Safe Color Algorithm (Nearest Neighbor Quantization)

Per-Channel Rounding Quantization Formula:
- Given any 24-bit color (R,G,B)(R, G, B), rounding each channel to the nearest multiple of 51 yields the approximate web safe coordinate (R,G,B)(R', G', B'):
- R=Round(R51)×51\displaystyle R' = \text{Round}\left(\frac{R}{51}\right) \times 51
- G=Round(G51)×51\displaystyle G' = \text{Round}\left(\frac{G}{51}\right) \times 51
- B=Round(B51)×51\displaystyle B' = \text{Round}\left(\frac{B}{51}\right) \times 51
3D Euclidean Color Distance (\Delta E):
- The visual quantization error is measured using Pythagorean spatial distance:
- ΔE=(RR)2+(GG)2+(BB)2\displaystyle \Delta E = \sqrt{(R - R')^2 + (G - G')^2 + (B - B')^2}
- Our built-in converter computes this distance live to guarantee minimum perceptual color distortion.

4. Why Web Safe Colors Remain Relevant in Modern Digital Design

Retro, Y2K & Cyberpunk Aesthetics:
- Neo-brutalism, Vaporwave, and early-web nostalgic styling leverage the punchy, high-saturation 216 palette for authentic period identity.
8-Bit Pixel Art & Indie Game Development:
- Mathematically uniform brightness steps make the 216 palette ideal for texture shading in 2D sprite graphics.
Color E-Ink & Low-Power Embedded IoT Displays:
- Ensures clean, un-dithered rendering on color electronic paper and microcontroller displays with restricted hardware color palettes.
Creative Constraints in Minimalist Design Systems:
- Restricting choices to 216 balanced colors fosters strong discipline and consistent visual hierarchy in UI projects.

DESIGN & COLOR UTILITY FAQ

Q.Are Web Safe Colors mandatory on modern smartphones or monitors?

No. Modern displays support 24-bit True Color (16.7M colors), so dithering is no longer an issue. However, the palette remains a valuable asset for retro web aesthetics, pixel art, and specialized hardware like color E-Ink displays.

Q.How many pure grayscale tones exist among the 216 colors?

There are 6 pure grayscale tones where R=G=BR=G=B: #000000 (Black), #333333 (Dark Gray), #666666 (Medium Gray), #999999 (Light Gray), #CCCCCC (Very Light Gray), and #FFFFFF (White).

Q.Are Web Safe Colors the same as the 140 W3C Named HTML Colors?

No. W3C Named Colors (e.g. tomato, rebeccapurple) are human-readable color keywords. Only a handful (such as black, white, red, lime, blue) overlap with the 216 Web Safe palette.

Q.What does a Euclidean distance error of 0 mean?

It indicates that all RGB channels of your input color are exact multiples of 51, making it a 100% native Web Safe Color.

Q.How do I use this palette in CSS or Tailwind CSS projects?

Under [Export Palette], select CSS Variables or Tailwind Config and click [Copy All Code] to paste directly into your project stylesheet or config file.

Q.Is my color search data recorded on any remote server?

No. All sorting, distance calculations, and code exports run locally in your browser memory.