Helen's images

Hexadecimal color values

Black and White Color Values - Blue Color Values - Green Color Values - Red Color Values - Red and Blue Combinations - Green and Blue Combinations - Red and Green Combinations

This is a test page to show you the hexadecimal values of colors, the way they should be written in HTML. To use them you must add the symbol # in the beginning. Also note that combinations of colors with numbers consisting of 0, 3 , 6, 9, c, and f are considered "browser safe colors" (216 colors in all).
If you want more information on the subject, look at the bottom of this page.

All numbers are used in pairs. The first pair is the value of red, the second of green and the third of blue. 0 means no color, the lowest number is 01 and the highest is ff.
* If you use a color other than the ones below, like #6a8b52, (which is an olive green hue similar to #669966 below), I suppose you risk having your text difficult to read, because of dithering on some of your viewers screens.
* Dithering is something I remember quite well in the first days of VGA and 16 colors. It shows up, especially in a small screen resolution, as multicolored dots and can be quite unpleasant.
* I have tried the non-safe colors (d4 etc) and with 16 colors they dither or become gray (this happens on most of the safe colors as well) - with 256 colors they don't dither, but the hue is slightly different. On the contrary, most of my images dither a little even in 256 colors.

You can save this file for future reference (save page as .. - no need to save images, these are for the backgrounds only).

Black and White

  #000000   #333333   #666666   #999999   #cccccc   #ffffff

Blue

  #000033   #000066   #000099   #0000cc   #0000ff
      #333366   #333399   #3333cc   #3333ff
          #666699   #6666cc   #6666ff
              #9999cc   #9999ff
                  #ccccff

Green

  #003300   #006600   #009900   #00cc00   #00ff00
      #336633   #339933   #33cc33   #33ff33
          #669966   #66cc66   #66ff66
              #99cc99   #99ff99
                  #ccffcc

Red

  #330000   #660000   #990000   #cc0000   #ff0000
      #663333   #993333   #cc3333   #ff3333
          #996666   #cc6666   #ff6666
              #cc9999   #ff9999
                  #ffcccc

Red/Blue Combinations

  #330033   #330066   #330099   #3300cc   #3300ff
  #660033   #660066   #660099   #6600cc   #6600ff
  #990033   #990066   #990099   #9900cc   #9900ff
  #cc0033   #cc0066   #cc0099   #cc00cc   #cc00ff
  #ff0033   #ff0066   #ff0099   #ff00cc   #ff00ff
      #663366   #663399   #6633cc   #6633ff
      #993366   #993399   #9933cc   #9933ff
      #cc3366   #cc3399   #cc33cc   #cc33ff
      #ff3366   #ff3399   #ff33cc   #ff33ff
          #996699   #9966cc   #9966ff
          #cc6699   #cc66cc   #cc66ff
          #ff6699   #ff66cc   #ff66ff
              #cc99cc   #cc99ff
              #ff99cc   #ff99ff
                  #ffccff

Green/Blue Combinations

  #003333   #003366   #003399   #0033cc   #0033ff
  #006633   #006666   #006699   #0066cc   #0066ff
  #009933   #009966   #009999   #0099cc   #0099ff
  #00cc33   #00cc66   #00cc99   #00cccc   #00ccff
  #00ff33   #00ff66   #00ff99   #00ffcc   #00ffff
      #336666   #336699   #3366cc   #3366ff
      #339966   #339999   #3399cc   #3399ff
      #33cc66   #33cc99   #33cccc   #33ccff
      #33ff66   #33ff99   #33ffcc   #33ffff
          #669999   #6699cc   #6699ff
          #66cc99   #66cccc   #66ccff
          #66ff99   #66ffcc   #66ffff
              #99cccc   #99ccff
              #99ffcc   #99ffff
                  #ccffff

Red/Green Combinations

  #333300   #336600   #339900   #33cc00   #33ff00
  #663300   #666600   #669900   #66cc00   #66ff00
  #993300   #996600   #999900   #99cc00   #99ff00
  #cc3300   #cc6600   #cc9900   #cccc00   #ccff00
  #ff3300   #ff6600   #ff9900   #ffcc00   #ffff00
      #666633   #669933   #66cc33   #66ff33
      #996633   #999933   #99cc33   #99ff33
      #cc6633   #cc9933   #cccc33   #ccff33
      #ff6633   #ff9933   #ffcc33   #ffff33
          #999966   #99cc66   #99ff66
          #cc9966   #cccc66   #ccff66
          #ff9966   #ffcc66   #ffff66
              #cccc99   #ccff99
              #ffcc99   #ffff99
                  #ffffcc

More Information

There are two ways to think of colors with computers:
The RGB model and the CMYK model
The RGB model
Means Red , Green and Blue and speaks of Light (emission)
The CMYK model
Means Cyan , Magenta , Yellow and Black and speaks about Blocking Light (transmission) as in inks

So the CMYK model is used in printing and the RGB model in display .
It is obvious that, for web pages, we are concerned with the RGB model only.

There are many ways to write the value of a color in RGB. The most usual ones are:

  1. Percentage (red 80 %, green 20 %, blue 5 % or: 80-20-05)
    A variation of this (percentages divided by 100) is used by some programs, such as POV Ray or GTK, e.g. the previous example would be: red 0.8, green 0.2, blue 0.05.
  2. Values from 0 to 255 (red 100, green 230, blue 15)
  3. Hexadecimal values (see below)

The hexadecimal values are actually the same as the ones in #2 above, just expressed in a different way.

The #1 above would be in hex #cc330c (almost the same to #cc3300 in the red green combinations) and #2 would be #64e60f (similar to #66ff00 in red green combinations - slightly darker).

Humans are used to count from one to ten, but computers from one to sixteen (or one to two in other cases). The numbers used in the hexadecimal system are: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a (for 10), b (for 11), c (for 12), d (for 13), e (for 14), f (for 15), 10 (for 16) and so on.
So the number bb would mean 11 times 16 plus 11 and would be equal to 187. From 00 to ff, there are the numbers 0 to 255, a total of 256, if we include 0.

So, in HTML, we can specify the color of a font or background, by writing the symbol # and three pairs of hexadecimal digits, the first for red, the second two for green and the last two for blue.
The color #0099ff means there is no red, green has a value of 153 /255ths (9X16+9) and blue has a value of 255/255ths. So, we would expect this color to look like a blue with a greenish tinge. You can find this color in the chart above and it looks rather like a sky blue in a bright day.

The values we outlined above, can define a total of over 16 million colors (256 X 256 X 256 =16777216), which is more than enough.

So, theoretically at least, we can use all of the above colors for our web pages. But, the web must be accessible to everyone, including those with older monitors that support less than 16 million colors (true color). There are many monitor color configurations: 16 bit (65536 colors), 8 bit (256 colors), 4 bit (16 colors) and black and white. For some reason, the standard was set some years ago at 256 colors. Of these, about 40 are reserved by the various operating systems or are not rendered by browsers and that leaves 216 colors.
These 216 colors constitute the browser safe palette and are what you saw above.


| Home | HTML |

Last Updated: