1001Ferramentas
🌐Generators

Cor Web-Safe Mais Próxima

Encontra a cor web-safe (216 cores, múltiplos de 51) mais próxima da informada.

Web-safe

The 216-color web-safe palette: history and modern use

The web-safe palette is a fixed set of 216 colors codified by Lynda Weinman and Bob Stein in the mid-1990s. Back then most monitors ran in 8-bit color mode — only 256 simultaneous colors on screen — and Windows and Macintosh each reserved a different subset for their UI. A palette that worked identically on both systems had to live in the intersection. The result was 216 colors guaranteed to render without dithering on any browser, on any OS, on any 256-color display.

The math: 6 × 6 × 6

The palette is built from six values per RGB channel: 0, 51, 102, 153, 204, 255 — in hex, 00, 33, 66, 99, CC, FF. Multiplying the three channels gives 6 × 6 × 6 = 216 combinations. The remaining 40 entries of a 256-color palette were left to the operating system to draw window chrome, icons and the cursor. The visual signature of a web-safe color is that every hex pair is doubled: #33CC66 is web-safe; #345678 is not. That's why the 3-character CSS hex shorthand exists: #36C expands to #3366CC, which is naturally web-safe.

Historical context

From roughly 1995 to 1999, designers literally checked every color against the web-safe chart before shipping a page — otherwise the browser would dither the missing color, producing a noisy checkerboard pattern. The constraint shaped the look of the early web: flat blocks of color, AOL homepage gradients, GeoCities patterns. The earlier VGA palette had 16 colors, the EGA 64, Macintosh System 7 shipped a 256-color system palette — web-safe was the rare cross-platform consensus.

Is it still relevant in 2025?

Strictly for color fidelity? No — modern displays are 24-bit (16.7 million colors) or 10-bit HDR (over a billion). But the palette stays useful as:

  • Retro and vaporwave aesthetics — the look-and-feel of the 1996 web is a deliberate style today.
  • Constrained art challenges — pixel-art tools like PICO-8 and Game Boy Advance homebrew lean on tiny palettes by design.
  • Low-color GIF and indexed PNG — when you need an 8-bit indexed image, a web-safe ramp is a sane starting point.
  • E-readers and e-ink — devices with reduced color reproduction benefit from snapping to a small palette.
  • Legacy systems — kiosks, ATMs and embedded UIs sometimes still run 8-bit framebuffers.

Using it in CSS today

Web-safe values map perfectly to CSS hex shorthand: color: #36C, background: #FC9. Every browser renders them identically — there is no longer any "safer" hex than another, but the shorthand is concise and reliably equivalent to its 6-digit form. The palette also remains a fast way to quantize an arbitrary brand color into a nostalgic, blocky variant: round each channel to the nearest multiple of 51 (or 0x33) and you're done.

FAQ

Do I still need to use web-safe colors today? No — practically every device displays 24-bit color, so any hex value renders correctly.

Can I use them in modern CSS? Absolutely — and the 3-char hex shorthand (#36C) is essentially a web-safe color expressed compactly.

Are 8-bit games related to this palette? They share the philosophy of constrained palettes, though specific systems (NES, GB, PICO-8) define their own subsets.

Can I make a smooth gradient from web-safe colors? Not really — 216 colors are too few for a perfectly smooth ramp; you'll see visible banding. Use it for blocky, retro designs rather than gradients.

Related Tools