Web Safe Colors

The classic 216-color palette from the era of 256-color displays. Click any swatch to copy its hex code.

#000000
WebSafe 000000
Standard 216 8-bit web-safe color
#000033
WebSafe 000033
Standard 216 8-bit web-safe color
#000066
WebSafe 000066
Standard 216 8-bit web-safe color
#000099
WebSafe 000099
Standard 216 8-bit web-safe color
#0000CC
WebSafe 0000cc
Standard 216 8-bit web-safe color
#0000FF
WebSafe 0000ff
Standard 216 8-bit web-safe color
#003300
WebSafe 003300
Standard 216 8-bit web-safe color
#003333
WebSafe 003333
Standard 216 8-bit web-safe color
#003366
WebSafe 003366
Standard 216 8-bit web-safe color
#003399
WebSafe 003399
Standard 216 8-bit web-safe color
#0033CC
WebSafe 0033cc
Standard 216 8-bit web-safe color
#0033FF
WebSafe 0033ff
Standard 216 8-bit web-safe color
#006600
WebSafe 006600
Standard 216 8-bit web-safe color
#006633
WebSafe 006633
Standard 216 8-bit web-safe color
#006666
WebSafe 006666
Standard 216 8-bit web-safe color
#006699
WebSafe 006699
Standard 216 8-bit web-safe color
#0066CC
WebSafe 0066cc
Standard 216 8-bit web-safe color
#0066FF
WebSafe 0066ff
Standard 216 8-bit web-safe color
#009900
WebSafe 009900
Standard 216 8-bit web-safe color
#009933
WebSafe 009933
Standard 216 8-bit web-safe color
#009966
WebSafe 009966
Standard 216 8-bit web-safe color
#009999
WebSafe 009999
Standard 216 8-bit web-safe color
#0099CC
WebSafe 0099cc
Standard 216 8-bit web-safe color
#0099FF
WebSafe 0099ff
Standard 216 8-bit web-safe color
#00CC00
WebSafe 00cc00
Standard 216 8-bit web-safe color
#00CC33
WebSafe 00cc33
Standard 216 8-bit web-safe color
#00CC66
WebSafe 00cc66
Standard 216 8-bit web-safe color
#00CC99
WebSafe 00cc99
Standard 216 8-bit web-safe color
#00CCCC
WebSafe 00cccc
Standard 216 8-bit web-safe color
#00CCFF
WebSafe 00ccff
Standard 216 8-bit web-safe color
#00FF00
WebSafe 00ff00
Standard 216 8-bit web-safe color
#00FF33
WebSafe 00ff33
Standard 216 8-bit web-safe color
#00FF66
WebSafe 00ff66
Standard 216 8-bit web-safe color
#00FF99
WebSafe 00ff99
Standard 216 8-bit web-safe color
#00FFCC
WebSafe 00ffcc
Standard 216 8-bit web-safe color
#00FFFF
WebSafe 00ffff
Standard 216 8-bit web-safe color
#330000
WebSafe 330000
Standard 216 8-bit web-safe color
#330033
WebSafe 330033
Standard 216 8-bit web-safe color
#330066
WebSafe 330066
Standard 216 8-bit web-safe color
#330099
WebSafe 330099
Standard 216 8-bit web-safe color
#3300CC
WebSafe 3300cc
Standard 216 8-bit web-safe color
#3300FF
WebSafe 3300ff
Standard 216 8-bit web-safe color
#333300
WebSafe 333300
Standard 216 8-bit web-safe color
#333333
WebSafe 333333
Standard 216 8-bit web-safe color
#333366
WebSafe 333366
Standard 216 8-bit web-safe color
#333399
WebSafe 333399
Standard 216 8-bit web-safe color
#3333CC
WebSafe 3333cc
Standard 216 8-bit web-safe color
#3333FF
WebSafe 3333ff
Standard 216 8-bit web-safe color
#336600
WebSafe 336600
Standard 216 8-bit web-safe color
#336633
WebSafe 336633
Standard 216 8-bit web-safe color
#336666
WebSafe 336666
Standard 216 8-bit web-safe color
#336699
WebSafe 336699
Standard 216 8-bit web-safe color
#3366CC
WebSafe 3366cc
Standard 216 8-bit web-safe color
#3366FF
WebSafe 3366ff
Standard 216 8-bit web-safe color
#339900
WebSafe 339900
Standard 216 8-bit web-safe color
#339933
WebSafe 339933
Standard 216 8-bit web-safe color
#339966
WebSafe 339966
Standard 216 8-bit web-safe color
#339999
WebSafe 339999
Standard 216 8-bit web-safe color
#3399CC
WebSafe 3399cc
Standard 216 8-bit web-safe color
#3399FF
WebSafe 3399ff
Standard 216 8-bit web-safe color
#33CC00
WebSafe 33cc00
Standard 216 8-bit web-safe color
#33CC33
WebSafe 33cc33
Standard 216 8-bit web-safe color
#33CC66
WebSafe 33cc66
Standard 216 8-bit web-safe color
#33CC99
WebSafe 33cc99
Standard 216 8-bit web-safe color
#33CCCC
WebSafe 33cccc
Standard 216 8-bit web-safe color
#33CCFF
WebSafe 33ccff
Standard 216 8-bit web-safe color
#33FF00
WebSafe 33ff00
Standard 216 8-bit web-safe color
#33FF33
WebSafe 33ff33
Standard 216 8-bit web-safe color
#33FF66
WebSafe 33ff66
Standard 216 8-bit web-safe color
#33FF99
WebSafe 33ff99
Standard 216 8-bit web-safe color
#33FFCC
WebSafe 33ffcc
Standard 216 8-bit web-safe color
#33FFFF
WebSafe 33ffff
Standard 216 8-bit web-safe color
#660000
WebSafe 660000
Standard 216 8-bit web-safe color
#660033
WebSafe 660033
Standard 216 8-bit web-safe color
#660066
WebSafe 660066
Standard 216 8-bit web-safe color
#660099
WebSafe 660099
Standard 216 8-bit web-safe color
#6600CC
WebSafe 6600cc
Standard 216 8-bit web-safe color
#6600FF
WebSafe 6600ff
Standard 216 8-bit web-safe color
#663300
WebSafe 663300
Standard 216 8-bit web-safe color
#663333
WebSafe 663333
Standard 216 8-bit web-safe color
#663366
WebSafe 663366
Standard 216 8-bit web-safe color
#663399
WebSafe 663399
Standard 216 8-bit web-safe color
#6633CC
WebSafe 6633cc
Standard 216 8-bit web-safe color
#6633FF
WebSafe 6633ff
Standard 216 8-bit web-safe color
#666600
WebSafe 666600
Standard 216 8-bit web-safe color
#666633
WebSafe 666633
Standard 216 8-bit web-safe color
#666666
WebSafe 666666
Standard 216 8-bit web-safe color
#666699
WebSafe 666699
Standard 216 8-bit web-safe color
#6666CC
WebSafe 6666cc
Standard 216 8-bit web-safe color
#6666FF
WebSafe 6666ff
Standard 216 8-bit web-safe color
#669900
WebSafe 669900
Standard 216 8-bit web-safe color
#669933
WebSafe 669933
Standard 216 8-bit web-safe color
#669966
WebSafe 669966
Standard 216 8-bit web-safe color
#669999
WebSafe 669999
Standard 216 8-bit web-safe color
#6699CC
WebSafe 6699cc
Standard 216 8-bit web-safe color
#6699FF
WebSafe 6699ff
Standard 216 8-bit web-safe color
#66CC00
WebSafe 66cc00
Standard 216 8-bit web-safe color
#66CC33
WebSafe 66cc33
Standard 216 8-bit web-safe color
#66CC66
WebSafe 66cc66
Standard 216 8-bit web-safe color
#66CC99
WebSafe 66cc99
Standard 216 8-bit web-safe color
#66CCCC
WebSafe 66cccc
Standard 216 8-bit web-safe color
#66CCFF
WebSafe 66ccff
Standard 216 8-bit web-safe color
#66FF00
WebSafe 66ff00
Standard 216 8-bit web-safe color
#66FF33
WebSafe 66ff33
Standard 216 8-bit web-safe color
#66FF66
WebSafe 66ff66
Standard 216 8-bit web-safe color
#66FF99
WebSafe 66ff99
Standard 216 8-bit web-safe color
#66FFCC
WebSafe 66ffcc
Standard 216 8-bit web-safe color
#66FFFF
WebSafe 66ffff
Standard 216 8-bit web-safe color
#990000
WebSafe 990000
Standard 216 8-bit web-safe color
#990033
WebSafe 990033
Standard 216 8-bit web-safe color
#990066
WebSafe 990066
Standard 216 8-bit web-safe color
#990099
WebSafe 990099
Standard 216 8-bit web-safe color
#9900CC
WebSafe 9900cc
Standard 216 8-bit web-safe color
#9900FF
WebSafe 9900ff
Standard 216 8-bit web-safe color
#993300
WebSafe 993300
Standard 216 8-bit web-safe color
#993333
WebSafe 993333
Standard 216 8-bit web-safe color
#993366
WebSafe 993366
Standard 216 8-bit web-safe color
#993399
WebSafe 993399
Standard 216 8-bit web-safe color
#9933CC
WebSafe 9933cc
Standard 216 8-bit web-safe color
#9933FF
WebSafe 9933ff
Standard 216 8-bit web-safe color
#996600
WebSafe 996600
Standard 216 8-bit web-safe color
#996633
WebSafe 996633
Standard 216 8-bit web-safe color
#996666
WebSafe 996666
Standard 216 8-bit web-safe color
#996699
WebSafe 996699
Standard 216 8-bit web-safe color
#9966CC
WebSafe 9966cc
Standard 216 8-bit web-safe color
#9966FF
WebSafe 9966ff
Standard 216 8-bit web-safe color
#999900
WebSafe 999900
Standard 216 8-bit web-safe color
#999933
WebSafe 999933
Standard 216 8-bit web-safe color
#999966
WebSafe 999966
Standard 216 8-bit web-safe color
#999999
WebSafe 999999
Standard 216 8-bit web-safe color
#9999CC
WebSafe 9999cc
Standard 216 8-bit web-safe color
#9999FF
WebSafe 9999ff
Standard 216 8-bit web-safe color
#99CC00
WebSafe 99cc00
Standard 216 8-bit web-safe color
#99CC33
WebSafe 99cc33
Standard 216 8-bit web-safe color
#99CC66
WebSafe 99cc66
Standard 216 8-bit web-safe color
#99CC99
WebSafe 99cc99
Standard 216 8-bit web-safe color
#99CCCC
WebSafe 99cccc
Standard 216 8-bit web-safe color
#99CCFF
WebSafe 99ccff
Standard 216 8-bit web-safe color
#99FF00
WebSafe 99ff00
Standard 216 8-bit web-safe color
#99FF33
WebSafe 99ff33
Standard 216 8-bit web-safe color
#99FF66
WebSafe 99ff66
Standard 216 8-bit web-safe color
#99FF99
WebSafe 99ff99
Standard 216 8-bit web-safe color
#99FFCC
WebSafe 99ffcc
Standard 216 8-bit web-safe color
#99FFFF
WebSafe 99ffff
Standard 216 8-bit web-safe color
#CC0000
WebSafe cc0000
Standard 216 8-bit web-safe color
#CC0033
WebSafe cc0033
Standard 216 8-bit web-safe color
#CC0066
WebSafe cc0066
Standard 216 8-bit web-safe color
#CC0099
WebSafe cc0099
Standard 216 8-bit web-safe color
#CC00CC
WebSafe cc00cc
Standard 216 8-bit web-safe color
#CC00FF
WebSafe cc00ff
Standard 216 8-bit web-safe color
#CC3300
WebSafe cc3300
Standard 216 8-bit web-safe color
#CC3333
WebSafe cc3333
Standard 216 8-bit web-safe color
#CC3366
WebSafe cc3366
Standard 216 8-bit web-safe color
#CC3399
WebSafe cc3399
Standard 216 8-bit web-safe color
#CC33CC
WebSafe cc33cc
Standard 216 8-bit web-safe color
#CC33FF
WebSafe cc33ff
Standard 216 8-bit web-safe color
#CC6600
WebSafe cc6600
Standard 216 8-bit web-safe color
#CC6633
WebSafe cc6633
Standard 216 8-bit web-safe color
#CC6666
WebSafe cc6666
Standard 216 8-bit web-safe color
#CC6699
WebSafe cc6699
Standard 216 8-bit web-safe color
#CC66CC
WebSafe cc66cc
Standard 216 8-bit web-safe color
#CC66FF
WebSafe cc66ff
Standard 216 8-bit web-safe color
#CC9900
WebSafe cc9900
Standard 216 8-bit web-safe color
#CC9933
WebSafe cc9933
Standard 216 8-bit web-safe color
#CC9966
WebSafe cc9966
Standard 216 8-bit web-safe color
#CC9999
WebSafe cc9999
Standard 216 8-bit web-safe color
#CC99CC
WebSafe cc99cc
Standard 216 8-bit web-safe color
#CC99FF
WebSafe cc99ff
Standard 216 8-bit web-safe color
#CCCC00
WebSafe cccc00
Standard 216 8-bit web-safe color
#CCCC33
WebSafe cccc33
Standard 216 8-bit web-safe color
#CCCC66
WebSafe cccc66
Standard 216 8-bit web-safe color
#CCCC99
WebSafe cccc99
Standard 216 8-bit web-safe color
#CCCCCC
WebSafe cccccc
Standard 216 8-bit web-safe color
#CCCCFF
WebSafe ccccff
Standard 216 8-bit web-safe color
#CCFF00
WebSafe ccff00
Standard 216 8-bit web-safe color
#CCFF33
WebSafe ccff33
Standard 216 8-bit web-safe color
#CCFF66
WebSafe ccff66
Standard 216 8-bit web-safe color
#CCFF99
WebSafe ccff99
Standard 216 8-bit web-safe color
#CCFFCC
WebSafe ccffcc
Standard 216 8-bit web-safe color
#CCFFFF
WebSafe ccffff
Standard 216 8-bit web-safe color
#FF0000
WebSafe ff0000
Standard 216 8-bit web-safe color
#FF0033
WebSafe ff0033
Standard 216 8-bit web-safe color
#FF0066
WebSafe ff0066
Standard 216 8-bit web-safe color
#FF0099
WebSafe ff0099
Standard 216 8-bit web-safe color
#FF00CC
WebSafe ff00cc
Standard 216 8-bit web-safe color
#FF00FF
WebSafe ff00ff
Standard 216 8-bit web-safe color
#FF3300
WebSafe ff3300
Standard 216 8-bit web-safe color
#FF3333
WebSafe ff3333
Standard 216 8-bit web-safe color
#FF3366
WebSafe ff3366
Standard 216 8-bit web-safe color
#FF3399
WebSafe ff3399
Standard 216 8-bit web-safe color
#FF33CC
WebSafe ff33cc
Standard 216 8-bit web-safe color
#FF33FF
WebSafe ff33ff
Standard 216 8-bit web-safe color
#FF6600
WebSafe ff6600
Standard 216 8-bit web-safe color
#FF6633
WebSafe ff6633
Standard 216 8-bit web-safe color
#FF6666
WebSafe ff6666
Standard 216 8-bit web-safe color
#FF6699
WebSafe ff6699
Standard 216 8-bit web-safe color
#FF66CC
WebSafe ff66cc
Standard 216 8-bit web-safe color
#FF66FF
WebSafe ff66ff
Standard 216 8-bit web-safe color
#FF9900
WebSafe ff9900
Standard 216 8-bit web-safe color
#FF9933
WebSafe ff9933
Standard 216 8-bit web-safe color
#FF9966
WebSafe ff9966
Standard 216 8-bit web-safe color
#FF9999
WebSafe ff9999
Standard 216 8-bit web-safe color
#FF99CC
WebSafe ff99cc
Standard 216 8-bit web-safe color
#FF99FF
WebSafe ff99ff
Standard 216 8-bit web-safe color
#FFCC00
WebSafe ffcc00
Standard 216 8-bit web-safe color
#FFCC33
WebSafe ffcc33
Standard 216 8-bit web-safe color
#FFCC66
WebSafe ffcc66
Standard 216 8-bit web-safe color
#FFCC99
WebSafe ffcc99
Standard 216 8-bit web-safe color
#FFCCCC
WebSafe ffcccc
Standard 216 8-bit web-safe color
#FFCCFF
WebSafe ffccff
Standard 216 8-bit web-safe color
#FFFF00
WebSafe ffff00
Standard 216 8-bit web-safe color
#FFFF33
WebSafe ffff33
Standard 216 8-bit web-safe color
#FFFF66
WebSafe ffff66
Standard 216 8-bit web-safe color
#FFFF99
WebSafe ffff99
Standard 216 8-bit web-safe color
#FFFFCC
WebSafe ffffcc
Standard 216 8-bit web-safe color
#FFFFFF
WebSafe ffffff
Standard 216 8-bit web-safe color

How to use the web-safe color chart

  1. Scan the grid of all 216 colors. Every value is built only from the channel values 00, 33, 66, 99, CC and FF.
  2. Click any swatch to put its code on your clipboard.
  3. Paste it into CSS, a pixel-art editor or a palette file.
  4. To see the same set next to other curated collections, open the color library, where the Web-safe 216 is one of the palettes.

Where the 216 colors came from

In the mid-1990s, many computers ran 8-bit displays that could show only 256 colors at once. When a page asked for a color outside the browser's fixed palette, the browser dithered it into a pattern of dots. A 216-color set fit inside those 256 slots with room to spare for system colors, and rendered as solid color across the common browsers and platforms of the time.

Why 216? It is 6 × 6 × 6, the largest cube with an equal number of levels per channel that fits in 256. Seven levels would need 343 slots.

The 6×6×6 color cube

Each channel takes one of six evenly spaced values: 0, 51, 102, 153, 204 and 255, written in hex as 00, 33, 66, 99, CC and FF. The steps are 20% apart, so #FF6600, or rgb(255, 102, 0), is 100% red, 40% green and 0% blue.

Because each channel repeats a single digit, every web-safe color has a 3-digit shorthand: #FF6600 is #F60 and #336699 is #369. That also gives you a quick test: if any pair in a six-digit code is not 00, 33, 66, 99, CC or FF, the color is not web-safe.

Do web-safe colors still matter?

No. Current displays show at least 24-bit color, or 16,777,216 values, so any hex code renders as intended and a 216-color limit buys no compatibility. The coarse 20% steps also leave few usable mid-tones for interface work. Among the web-safe grays, #666666 on white is 5.74:1 and passes WCAG AA for text, but the next step, #999999, is 2.84:1 and fails. Check any pairing you plan to use in the contrast checker.

Good reasons to use them today

  • Retro and pixel-art styling that nods to 1990s web pages and early PC graphics.
  • A fixed, limited palette for game jams, generative art or teaching, where 216 set choices make decisions faster and keep work consistent.
  • Memorable shorthand in prototypes, since codes like #F60 and #369 are quick to type and easy to recall.

Frequently asked questions

How many web-safe colors are there?

There are 216. Each of red, green and blue uses one of six values, 00, 33, 66, 99, CC or FF, and 6 × 6 × 6 is 216.

Are web-safe colors still necessary?

No. They were designed for the 256-color displays of the 1990s. Modern screens show millions of colors, so any hex code displays correctly.

How can I tell if a hex color is web-safe?

Check that every pair is 00, 33, 66, 99, CC or FF. #336699 is web-safe; #336698 is not, because 98 is not one of the six levels.

Why are there 216 web-safe colors and not 256?

With six levels per channel, 6 × 6 × 6 is 216, the largest even cube that fits in a 256-color palette; seven levels would need 343. The leftover slots stayed available for system colors.

Can I use web-safe colors for pixel art?

Yes. The fixed 216-color cube gives a consistent, slightly retro palette, and every color can be written as 3-digit hex such as #F60 or #369.

Related tools