Browse the palette
Scan all 216 swatches built from the six channel steps.
Browse the classic 216 web-safe colors (RGB steps 0, 51, 102, 153, 204, 255). Filter by channel, check any HEX for nearest safe color, and copy codes locally.
Loading tool…
Follow these steps for a clear answer.
Scan all 216 swatches built from the six channel steps.
Narrow by red, green, or blue step, or paste any HEX to see if it is safe and the nearest match.
Select a swatch and copy HEX, rgb(), or a CSS name when one exists.
Core relationships used by this color tool.
Common picks with formula and result.
Max red, others off
Equal mid steps
Arbitrary hex
Named + safe
Version 1.0.0
Safe iff R,G,B ∈ {0,51,102,153,204,255}; nearest = round each channel to closest stepEarly sites limited artwork and UI chrome to this cube so pages would look predictable on 256-color monitors. Today the chart is mainly a reference and teaching tool—useful when you want evenly stepped hues, retro aesthetics, or to understand older design constraints.
For unrestricted colors use the HTML color picker or RGB color chart. For CSS keywords see HTML color codes; for basic names and #RGB shorthand see web color codes.
/* Web-safe examples */
.banner {
background-color: #336699;
color: #ffffff;
}
.accent {
color: #ff6600; /* also web-safe */
}
| Decimal | Hex | Fraction of 255 |
|---|---|---|
| 0 | 00 | 0% |
| 51 | 33 | 20% |
| 102 | 66 | 40% |
| 153 | 99 | 60% |
| 204 | CC | 80% |
| 255 | FF | 100% |
Key distinctions behind the tool.
The 216 colors formed when red, green, and blue each use only 0, 51, 102, 153, 204, or 255. They were designed for early 8-bit (256-color) displays so pages looked similar without heavy dithering.
No. Modern screens and browsers handle millions of colors. Prefer any HEX, rgb(), or CSS named color that fits your design and contrast needs.
Each pair of hex digits must be 00, 33, 66, 99, CC, or FF. Use the Check HEX field above to test a value and jump to the nearest safe color.
255 ÷ 5 = 51, so six evenly spaced steps from 0 to 255 are 0, 51, 102, 153, 204, and 255.
No. Only those whose channels fall on the six steps (for example lime #00FF00 or aqua #00FFFF). Many names like navy #000080 are not web-safe.