Using a web safe colors chart correctly means treating its 216 colors as a constrained historical RGB palette, copying the exact HEX value, and checking every real foreground-and-background pair for contrast separately.
The word “web-safe” describes a specific, dated palette rather than a universal guarantee about readability, printing, branding, or modern display compatibility. The chart is most useful when a project deliberately calls for a limited color set. Otherwise, start with the full range available to current browsers and displays.

Understand the 216-color structure
Every color in the historical palette is generated from red, green, and blue channels. Each channel can take one of six evenly spaced levels, and the three channels combine independently.
| RGB channel | Allowed 8-bit levels | HEX forms |
|---|---|---|
| Red | 0, 51, 102, 153, 204, 255 | 00, 33, 66, 99, CC, FF |
| Green | 0, 51, 102, 153, 204, 255 | 00, 33, 66, 99, CC, FF |
| Blue | 0, 51, 102, 153, 204, 255 | 00, 33, 66, 99, CC, FF |
| Complete palette | Six choices per channel | 216 unique six-digit HEX colors |
The palette size follows from the construction: 6 × 6 × 6 = 216. The grid is generated deterministically in red-major, green-middle, blue-minor order rather than from an unexplained list. It is also checked for exactly 216 entries, unique HEX values, and membership in the six permitted channel levels.
Each tile includes a shortened three-character hint so the complete grid remains compact. That hint is not necessarily the value you should place in CSS. Selecting a swatch reveals the complete six-digit HEX value in a larger result area, while its accessible label and title also contain the full value and RGB triplet.
This palette originated 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. The W3C’s historical Introduction to CSS browser-safe colors reference documents the six channel levels, while a W3C Web Accessibility Initiative 216-choice color picker example demonstrates the palette’s structure. Modern displays and browsers normally support far more than 216 colors, so the chart is no longer an ordinary compatibility requirement.
Know what a nearest-match result means
The matcher accepts a valid three-digit or six-digit HEX code. For three-digit input, the value expands according to normal CSS shorthand rules before matching. The tool then rounds each 8-bit red, green, and blue channel independently to its nearest multiple of 51 and reassembles the three results into a six-digit HEX color.
Because the axes are independent and evenly spaced, this method is equivalent to finding the nearest color in an ordinary unweighted RGB cube. It is predictable and easy to audit, but it is not a perceptual color-difference calculation. Human vision does not weigh every RGB channel equally, and gamma-encoded sRGB values are not perceptually uniform. As a result, the most visually similar swatch can sometimes differ from the result produced by unweighted RGB distance.
For specialist color comparison, consider a separate comparison workflow. More specialized work may require Lab or OKLCH comparison, an ICC profile, or optimization across an entire image; the web-safe chart intentionally keeps its legacy RGB construction simple.
| Task | Chart output | Correct interpretation |
|---|---|---|
| Browse and select a swatch | Complete six-digit HEX value | An exact entry in the 216-color palette |
| Match a valid three- or six-digit HEX color | Nearest channel-level palette entry | A predictable RGB cube match, not a perceptual guarantee |
| Choose colors for text or interface elements | A palette candidate | Not an automatic readability or accessibility result |
Use the chart from palette choice to final check
Follow the workflow in this order so that palette selection, color matching, and final usability checks remain separate decisions.
- Confirm that the color limit fits the brief. Use a 216-color palette for an intentional retro style, a historical reconstruction, low-color artwork, or an exercise in RGB quantization. Do not restrict an ordinary modern brand or data visualization unless that constraint is part of the project.
- Browse the grid and select a swatch. Open the Web Safe Colors Chart and inspect all 216 entries. Select the color you want, then check the larger result area for its full six-digit HEX code.
- Copy the complete value. Copy the displayed six-digit HEX value rather than the compact three-character tile hint. If browser permissions prevent clipboard access, manually select the visible code instead.
- Match an existing color when needed. Enter a valid three-digit or six-digit HEX code and select Find match. Record both the original input and the returned palette value so the transformation remains clear.
- Interpret the match in the right context. Treat the returned color as the nearest entry under the chart’s independent RGB-channel rule. Do not describe it as the closest color a person will perceive unless you have made a separate perceptual comparison.
- Apply the candidate to the real design. Place the selected color in its intended position, whether that is a background, border, icon, label, or body text. The role of the color matters more than its membership in the historical palette.
- Test the actual foreground and background pair. Use the Color Contrast Checker to evaluate the actual pair. Take the font size, weight, and intended accessibility criterion into account.
- Use and record the final decision. Apply the exact six-digit HEX value in the stylesheet or design file, and note whether it came directly from the grid, from a nearest-match operation, or from a separate contrast-tested pair.
Keep palette membership separate from readability
A color can belong to the web-safe palette and still be unsuitable for text. Readability is relational: the result depends on the foreground and background together, along with text characteristics such as size and weight. A foreground that works on one background may not work on another, so evaluating a swatch in isolation does not answer the accessibility question.
The chart does not validate a text pair or issue a contrast pass or fail. After choosing candidate colors, test the actual combination used in the design. A contrast result also does not certify every possible use of the colors, because changing the text size, weight, or surrounding content can alter the applicable requirement.
This distinction prevents two opposite errors: assuming that every historical palette color is automatically accessible, or assuming that a color outside the palette is automatically better. Palette membership and contrast are separate checks, and each needs its own evidence.
Apply the chart only when a limited palette helps
The 216-color cube remains valuable for studying quantized RGB colors, teaching hexadecimal channels, producing deliberately retro artwork, or reproducing an older design. It can also serve as a transparent reference when a project needs a small, controlled palette rather than unrestricted color selection.
Do not treat “web-safe” as a claim that a swatch is safe for printing, equivalent to a Pantone or CMYK ink, matched to a physical material, or calibrated for every display. The chart represents screen RGB values and makes no claim about device-calibrated output. Modern brands, charts, and data visualizations should not be limited to these 216 choices unless the creative brief explicitly calls for that constraint.
Record exact values and decisions
A reliable record identifies the exact six-digit HEX value, its role in the design, and how it was selected. If a color was produced by matching another value, keep the original input alongside the result. If a color was used for text or a meaningful interface element, document the separate contrast check as well.
Recording these distinctions makes later review much easier. It prevents a reviewer from assuming that a historical palette reference was also an accessibility test or that the nearest RGB match was approved as the perceptually closest color. A practical checklist for documenting steps using a web safe colors chart can help keep those decisions consistent across a project.
Related reading: Web Safe Colors Chart Audit: HEX and Contrast Checks.