Skip to content
UniKit

Web safe colors

The full 216-colour web safe palette (00/33/66/99/CC/FF per channel): browse the grid, copy HEX or RGB, and find the closest web safe colour with the CIE76 ΔE*ab formula in CIELAB.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Mode
Search / match

Palette mode filters by HEX substring (the # is optional); nearest-colour mode treats the input as a colour and finds the closest web safe colour with CIE76 ΔE*ab in CIELAB space.

Palette

Web safe colours come from 1990s 8-bit displays (a 6×6×6 colour cube plus 40 greys); pages used to be restricted to these 216 values to avoid dithering. Modern displays handle 24-bit colour, so the palette is no longer necessary — it is kept here for cross-checking, teaching and maintaining old artwork.

Total 216 web safe colours · showing 216

Click a swatch to copy its HEX.

What this tool does

  • Snap an arbitrary design colour to the web safe palette: enter HEX or RGB and get the closest safe colour plus its CIE76 ΔE, which tells you whether an old artwork can be reproduced within an acceptable drift.
  • Look colours up: the 216 swatches are laid out as a 6×6×6 cube and can be filtered by HEX fragment (say CC) or by a single channel value (say FF). Clicking a swatch copies its HEX or rgb() form.
  • Maintain late-1990s and early-2000s pages and email templates: their slices, GIF palettes and background colours are almost always these 216 values, so you can match the original numbers directly.
  • Explain what "web safe" actually meant: it was a compromise of the 8-bit display era, which is why old references are full of #336699 and #CCCCCC — and why you no longer need them.

Example

Input

#3355AA

Output

INPUT    #3355AA  rgb(51, 85, 170)
NEAREST  #3366CC  rgb(51, 102, 204)
DELTA-E  11.18

In palette mode an empty input lists all 216 colours; switch to nearest-colour mode and the input is parsed as a colour, with the distance computed as CIE76 in CIELAB (D65).

Frequently asked questions

How many web safe colours are there and what are the values?

There are 216 — exactly 6×6×6. Each of the red, green and blue channels takes 00, 33, 66, 99, CC or FF (0, 51, 102, 153, 204, 255), giving every combination from #000000 to #FFFFFF. Together with 40 greys, these are the 256 colours an 8-bit display could show without dithering.

Do I still need web safe colours today?

No. The convention comes from the 1990s, when graphics cards and browsers could only render 256 colours reliably and anything else was approximated with dithering, so pages were restricted to these 216 values. Modern displays are 24-bit and browsers no longer dither colours, which leaves the palette useful for cross-checking, teaching and maintaining old artwork.

Which colour-difference formula does "nearest" use?

CIE76, the Euclidean distance in CIELAB (D65): ΔE = √(ΔL² + Δa² + Δb²). sRGB channels are linearised first, then converted through the D65 matrix to XYZ and on to Lab. CIE76 is the oldest of the three common formulas and applies no chroma weighting like CIE94 or CIEDE2000, so its numbers run larger (pure red versus pure green is about ΔE 170) — but the ranking of which colour is closer is the same.

Why does a web safe colour report a ΔE of 0.00?

Because it matched itself: when the input equals a palette entry the distance is exactly zero and the page also shows an "exact match" note. An off-palette input such as #3355AA instead yields an approximation like #3366CC with ΔE 11.18.

Are the swatches or my clicks sent anywhere?

No. The palette is generated in the page, and both the filtering and the colour-difference maths run locally in your browser. No network requests are made and no clicked colours are recorded.

Keywords:web safe colorscolor_webCIE76HEX

Related tools