RGB color coding

HTML documents use RGB (Red-Green-Blue) color coding for assigning the color to background, text, local background of table element, or local text. (See the source text of this document.) Each color available in RGB coding is assigned a unique number

COLOR = #RRGGBB

where RR, GG, BB are hexadecimal numbers such that

  • RR denotes the intensity of red color varying from 00 = off, to FF = most shining,
  • GG denotes the intensity of green color varying from 00 = off, to FF = most shining,
  • BB denotes the intensity of blue color varying from 00 = off, to FF = most shining,
  • For example, white=#FFFFFF, black=#000000, red=#FF0000. Clearly, there is 16^6 = 16 777 216 codable colors. I have picked out some 50 basic colors and arranged them into a table presenting them as both background and font colors together with their RGB code and a name. Some of the names were made up by myself, so they might not correspond to the commonly used ones. Also the grouping of colors into sections is just a matter of personal feeling.

    The way you see the colors depends on the browser you use. I don't have much experience with different browsers, but as to Netscape I'm affraid that

    you need Netscape 3+ to see the colors properly!

    This page was written for all (including myself) who want to improve their knowledge of writing html documents. Please report any bugs to rokyta@karlin.mff.cuni.cz. Also the information on how this page is seen by browsers different from Netscape will be appreciated.


    Basic RGB colors

    Name Color backgroung Color font RGB code
    B&W section
    white . Use color fonts! #FFFFFF
    gainsboro . Use color fonts! #DCDCDC
    thistle . Use color fonts! #D8BFD8
    grey . Use color fonts! #C0C0C0
    light gray . Use color fonts! #B3B3B3
    middle gray . Use color fonts! #A6A6A6
    gray gray . Use color fonts! #999999
    more grey . Use color fonts! #8C8C8C
    dark gray . Use color fonts! #595959
    almost black . Use color fonts! #0D0D0D
    black . Use color fonts! #000000
    Red section
    moccasin . Use color fonts! #FFE4B5
    salmon . Use color fonts! #FA8072
    tomato . Use color fonts! #FF6347
    coral . Use color fonts! #FF7F50
    red . Use color fonts! #FF0000
    dark red . Use color fonts! #C40026
    Green section
    light green . Use color fonts! #BBFFBB
    aquamarine . Use color fonts! #7FFFD4
    chartreuse . Use color fonts! #AFFF00
    green . Use color fonts! #00FF00
    light khaki . Use color fonts! #92C000
    dark khaki . Use color fonts! #4DA619
    dark green . Use color fonts! #008749
    Blue section
    light cyan . Use color fonts! #DCFFFF
    cyan . Use color fonts! #00FFFF
    turquoise . Use color fonts! #40E0D0
    cyan-blue . Use color fonts! #00A0DD
    turquoise-blue . Use color fonts! #0063A4
    blue . Use color fonts! #0000FF
    dark blue . Use color fonts! #003D84
    navy . Use color fonts! #000080
    purple . Use color fonts! #A020F0
    Pink/violet section
    lavender . Use color fonts! #E6E6FA
    wheat . Use color fonts! #F5DEB3
    pink . Use color fonts! #FFC0CB
    violet . Use color fonts! #EE82EE
    magenta . Use color fonts! #FF00FF
    plum . Use color fonts! #DDA0DD
    orchid . Use color fonts! #DA70D6
    middle magenta . Use color fonts! #B300B3
    dark magenta . Use color fonts! #53005D
    Yellow/orange section
    yellow khaki . Use color fonts! #F0E68C
    yellow . Use color fonts! #FFFF00
    gold . Use color fonts! #FFD700
    orange gold . Use color fonts! #EC9800
    orange . Use color fonts! #FFA500
    chocolate . Use color fonts! #D2691E
    Brown section
    tan . Use color fonts! #D2B48C
    burlywood . Use color fonts! #DEB887
    peru . Use color fonts! #CD853F
    goldenrod . Use color fonts! #DAA520
    sienna . Use color fonts! #A0522D
    brown . Use color fonts! #A52A2A
    firebrick . Use color fonts! #B22222
    maroon . Use color fonts! #B03306


    © M.Rokyta, 1997