A web safe colors chart is a historical reference for 216 RGB colors built from six fixed channel levels, not a guarantee of modern compatibility, perceptual closeness, or accessible text.
Beginners should separate three questions before selecting a swatch: Is a constrained palette appropriate for the project? What exactly does the HEX matcher calculate? Which remaining checks are required before publication? The chart can answer the first two questions within its narrow scope, but the final result still depends on the intended application.
The strongest uses are reproducing an older design, teaching the structure of RGB and HEX, creating deliberately low-color artwork, studying quantized RGB cubes, or applying a transparent retro constraint. For a general modern website, brand system, or data visualization, the chart is usually more useful as a learning and comparison aid than as a mandatory palette.

What the 216-color cube actually contains
Every swatch combines three allowed values: one for red, one for green, and one for blue. Each channel can use only the following six levels.
| Allowed channel value | HEX representation | Channel role |
|---|---|---|
| 0 | 00 | Red, green, or blue |
| 51 | 33 | Red, green, or blue |
| 102 | 66 | Red, green, or blue |
| 153 | 99 | Red, green, or blue |
| 204 | CC | Red, green, or blue |
| 255 | FF | Red, green, or blue |
The three channels vary independently, and every combination is unique, producing exactly 216 entries. Each HEX digit pair represents one 8-bit channel, while the complete six-digit value represents all three channels together. The grid is generated in deterministic red-major, green-middle, blue-minor order from these source levels rather than from an opaque list.
The compact grid may display a shortened three-character hint for each swatch, but selecting an entry reveals its complete six-digit HEX value in a larger result area. Its accessible label and title contain the full value and RGB triplet. That distinction matters because a brief visual hint should never be mistaken for the code you place in CSS.
The construction is documented in the W3C’s historical Introduction to CSS on browser-safe colors, while the W3C Web Accessibility Initiative provides an independent 216-choice color picker example. Those references support the palette’s structure and history, but they do not turn membership in the palette into an accessibility certification.
Read “web safe” in its historical context
The palette comes from an era when many displays could show only 256 indexed colors at once. A shared cube reduced the chance that a browser would dither a page color into a speckled approximation. Modern computers, phones, and browsers normally support far more than 216 colors, so web-safe colors are no longer required for ordinary website compatibility.
“Web safe” is therefore a historical name rather than a blanket promise. It does not mean that every swatch is suitable for text, accessible interfaces, printing, branding, or every present-day display technology. It also does not mean the palette has been calibrated against physical ink, material samples, Pantone references, or a particular display profile.
| Term or feature | Accurate meaning | What it does not establish |
|---|---|---|
| Web safe | A shared historical RGB cube with 216 entries | Identical appearance on every current display |
| Nearest match | The entry obtained by independently rounding each channel | The color a human will always judge visually closest |
| Palette entry | A candidate screen color with a defined HEX value | Readable text or an approved foreground and background pair |
| HEX value | A digital RGB representation | Equivalence to CMYK ink, Pantone, fabric, or calibrated output |
This distinction prevents a common beginner mistake: treating a historically compatible color list as a complete design system. If a modern brand brief does not require a 216-color constraint, narrowing every interface, chart, and data visualization to these choices adds limitation without a present-day compatibility benefit.
Know what the nearest-color result can promise
The matcher accepts a valid three-digit or six-digit HEX value. A three-digit value is expanded according to normal CSS shorthand rules before matching. The tool then rounds each 8-bit channel independently to its nearest allowed level and recombines the three results. That process is predictable, transparent, and easy to audit.
For example, #3470d0 contains channel values 52, 112, and 208. Their nearest allowed levels are 51, 102, and 204, which are written as 33, 66, and CC in HEX. The matched swatch is therefore #3366cc.
“Nearest” refers to this ordinary channel-based RGB calculation, not to a perceptual model of human vision. Although the result coincides with nearest distance in the unweighted RGB cube because the axes are independent and evenly spaced, gamma-encoded sRGB values are not perceptually uniform. A visually closest swatch can therefore differ from the chart’s channel-level answer.
That limitation is intentional. The chart keeps the legacy palette’s simple construction visible rather than presenting itself as a general color-difference system. A specialist workflow that needs perceptual comparison may use Lab or OKLCH, account for an ICC profile, or optimize a palette across an entire image. Those goals require different tools and criteria; a successful cube match does not establish them.
A matched entry is also a new palette value, not a claim that the original input remained unchanged. Keep both values when documenting the decision so that later reviewers can see the source color and the constrained result separately.
Browse, match, and verify a color
- Confirm that the historical constraint fits the brief. Choose the chart when you are reproducing an older interface, teaching HEX and RGB, studying quantized color, making low-color artwork, or deliberately requesting a retro palette. For a general modern design, treat the chart as a reference instead of an automatic production palette.
- Open the Web Safe Colors Chart and browse the complete grid of 216 swatches. Select a swatch to display and copy its full six-digit HEX value. Do not rely on the shortened grid hint when writing CSS. If browser permissions block clipboard access, the full value remains visible for manual selection and copying.
- To match another color, enter a valid three-digit or six-digit HEX code and select Find match. The chart applies CSS shorthand expansion when needed, rounds the three channels independently, and presents the nearest palette entry. Use the result as a constrained candidate rather than assuming it is perceptually identical to the input.
- Review the selected result in its full form. Check the complete six-digit HEX value and the associated RGB values if you need to document the selection. Record the original input and matched swatch separately whenever the distinction matters.
- Test the real foreground and background pair separately. Open the Color Contrast Checker and test the actual colors that will appear together. Contrast also depends on font size, weight, and the applicable accessibility criterion, so palette membership alone cannot establish readability.
Match the palette’s role to the project type
The chart works best when its constraint is intentional and its limitations are visible. Before applying it, decide whether you need a production palette, a teaching aid, a historical reconstruction, or simply an occasional reference color.
| Project goal | Sensible use of the chart | Limitation to avoid |
|---|---|---|
| Retro interface or older-design recreation | Use the full cube as a deliberate fixed palette | Expecting modern browsers to require the constraint |
| Learning HEX and RGB | Inspect channel levels, shorthand expansion, and full swatch values | Treating the legacy cube as every color supported by CSS |
| Low-color artwork | Use the palette to enforce a reproducible limited color set | Assuming one channel match optimizes an entire image |
| Modern brand or data visualization | Use selected entries only when the brief calls for the constraint | Capping the whole design to 216 colors by default |
| Print or physical production | Use the HEX values as exploratory screen-color references | Equating them with ink, material, Pantone, or calibrated output |
The chart also does not assign subjective color names. A label such as “blue” would depend on context and perception, while the HEX value states the actual RGB channels. This makes the tool particularly useful for precise technical work, but it does not replace naming, art direction, or brand judgment.
Complete the final pre-flight checks
Before copying a swatch into a project, confirm that the value is complete, identify whether it came directly from the grid or through the matcher, and verify that the intended use genuinely benefits from a 216-color constraint. If a result was produced by matching, compare the matched entry with the source color before accepting the change.
For an interface, test the actual text and background colors after all theme states have been considered. For artwork, check the palette as a whole rather than assuming every selected hue works in every location. For print, keep screen HEX values separate from ink and physical calibration decisions. For a modern production site, avoid restricting the design simply because the chart makes color selection easier.
The practical rule is simple: use the chart as a transparent historical reference, a predictable channel matcher, and a copy aid while keeping its dated compatibility purpose explicit. Its 216 entries can be valuable when the project asks for that structure; they are not a universal certification of compatibility, accessibility, or visual accuracy.