Skip Navigation

Web Safe Colors

Web-safe colors are the 216 colors that display consistently across all browsers and operating systems. Each channel (red, green, blue) uses only the values 0, 51, 102, 153, 204 or 255 (multiples of 51, i.e. 00, 33, 66, 99, CC, FF in hex), giving 6 × 6 × 6 = 216 combinations.

Hover over a color to preview it · Click to copy the hex code:

                  
                  
                  
                  
                  
                  
                  
                  
                  
                  
                  
                  

About web safe colors

In the early days of the web, many monitors could only display 256 colors. The 216 web-safe colors were the subset guaranteed to render identically on both Windows and Mac systems using the Netscape palette. Modern displays can show millions of colors, so web-safe colors are no longer a technical requirement — but they remain useful as a well-known reference palette.

Channel values: 00 · 33 · 66 · 99 · CC · FF (hex) = 0 · 51 · 102 · 153 · 204 · 255 (decimal)



See also