Web color

Web colors are colors used in designing webpages, and the ways for describing and listing those colors.

There are several ways to choose colors for parts of webpages. Colors may be listed as an RGB triplet (a set of three numbers, red, green, and blue) in hexadecimal format (a hex triplet, rr, gg, bb). An RGB triplet can make 16,777,216 different colors. Standard colors can also be chosen by their common English names. Often a color tool or other graphics software is used to create color values.

The first versions of Mosaic and Netscape Navigator used the X11 color names as the base for their color lists. This was because they both started as X Window System applications.

Each web color has its own definition, sRGB. This relates to the chromaticities of a single phosphor set, a given transfer curve, adaptive whitepoint, and viewing conditions. These have been chosen to be similar to many real-world monitors and viewing conditions. Even without color management, the colors created are fairly close to the given values. However, user agents can be different in the fidelity with which they show the colors. Better user agents use color management to create better color fidelity. This is important for Web-to-print applications.

Hex triplet
A hex triplet is a six-digit, three-byte number used in HTML, CSS, PHP, JS, SVG, and other computer programs, to represent colors. The bytes represent the red, green and blue parts of the color. One byte represents a number from 00 to FF or 0 to 255 in decimal notation. This represents the least (0) to the most (255) intensity of each color component. The hex triplet is formed by concatenating three bytes in hexadecimal notation, in the following order: 
Byte 1: red value (color type red)
Byte 2: green value (color type green)
Byte 3: blue value (color type blue)
For example, consider the color where the red/green/blue values are decimal numbers: red=36, green=104, blue=160 (a grayish-blue color). The decimal numbers 36, 104 and 160 are similar to the numbers 24, 68 and A0 respectively. The hex triplet is obtained by combining the 6 hexadecimal digits together, 2468A0 in this example.

HTML web colors
Formulated in 1997, there were originally 16 colors. Orange was added later to make a total of 17. The original 16 were part of something called the "Windows VGA template", meaning that they are the colors that can be used for actions like highlighting.

ColorHTML 4.01 Specification section 6.5 "Colors"HexadecimalColorHexadecimalColorHexadecimalColorHexadecimalaqua#00FFFFgray#808080navy#000080silver#C0C0C0black#000000green#008000olive#808000teal#008080blue#0000FFlime#00FF00purple#800080white#FFFFFFfuchsia#FF00FFmaroon#800000red#FF0000yellow#FFFF00

List of HTML Color Names 
The table below contains all 140 of the HTML colors. All modern browsers support them. 

HTML nameHexDecimal codeR   G   BRed colorsCrimson       #DC143C      220  20  60Light coral (Lightcoral)       #F08080      240 128 128Indian red (Indianred)       #CD5C5C      205  92  92Fire brick (Firebrick)       #B22222      178  34  34Red       #FF0000      255   0   0 Dark red (Darkred)       #8B0000      139   0   0Maroon       #800000      128   0   0Salmon       #FA8072      250 128 114Pink & Rose colorsLight pink (Lightpink)       #FFB6C1      255 182 193Pink       #FFC0CB      253 108 158Pale violet red (Palevioletred)       #DB7093      219 112 147Hot pink (Hotpink)       #FF69B4      255 105 180Deep pink (Deeppink)       #FF1493      255  20 147Orange colorsPeach puff       #FFDAB9      255 218 185Dark salmon (Darksalmon)       #E9967A      233 150 122Light salmon (Lightsalmon)       #FFA07A      255 160 122Coral       #FF7F50      255 127  80Tomato       #FF6347      255  99  71Orange red (Orangered)       #FF4500      255  69   0Papaya whip       #FFEFD5      255 239 213Moccasin       #FFE4B5      255 228 181Dark orange (Darkorange)       #FF8C00      255 140   0Orange       #FFA500      255 165   0Yellow colorsLight goldenrod yellow (Lightgoldenrodyellow)      #FAFAD2      250 250 210Pale goldenrod (Palegoldenrod)       #EEE8AA      238 232 170Goldenrod       #DAA520      218 165  32Dark goldenrod (Darkgoldenrod)       #B8860B      184 134  11Gold       #FFD700      255 199   0Lemon chiffon (Lemonchiffon)       #FFFACD      255 250 205Light yellow (Lightyellow)       #FFFFE0      255 255 224Yellow       #FFFF00      255 255   0Olive       #808000      128 128   0Khaki       #F0E68C      240 230 140Dark khaki       #BDB76B      189 183 107Violet, Purple & Magenta colorsLavender       #E6E6FA      230 230 250Medium purple (Mediumpurple)       #9370DB      147 112 219Blue violet (Blueviolet)       #8A2BE2      138 43 226Dark violet (Darkviolet)       #9400D3      148 0 211Rebecca purple (Rebeccapurple)       #663399      102 51 153Indigo       #4B0082       75 0 130Medium orchid (Mediumorchid)       #BA55D3      186 85 211Dark orchid (Darkorchid)       #9932CC      153 &50 204Thistle       #D8BFD8      216 191 216Plum       #DDA0DD      221 160 221Violet       #EE82EE      238 130 238Orchid       #DA70D6      218 112 214Fuchsia or Magenta       #FF00FF      255 0 255Dark magenta (Darkmagenta)       #8B008B      139 0 139Purple       #800080      128 0 128Medium violet red (Mediumvioletred)       #C71585      199  21 133HTML nameHexDecimal codeR   G   BGreen colorsYellow green (Yellowgreen)       #9ACD32      154 205  50Olive drab       #6B8E23      107 142  35Dark olive green (Darkolivegreen)       #556B2F       85 107 47Green yellow (Greenyellow)       #ADFF2F      173 255 47Chartreuse       #7FFF00      127 255  0Lawn green (Lawngreen)       #7CFC00      124 252  0Lime       #00FF00        0 255  0Green       #008000        0 128  0Dark green (Darkgreen)       #006400        0 100  0Pale green (Palegreen)       #98FB98      152 251 152Light green (Lightgreen)       #90EE90      144 238 144Lime green (Limegreen)       #32CD32       50 205  50Forest green (Forestgreen)       #228B22       34 139  34Medium spring green (Mediumspringgreen)  #00FA9A    0 250 154Spring green (Springgreen)       #00FF7F        0 255 127Medium sea green (Mediumseagreen)       #3CB371       60 179 113Sea green (Seagreen)       #2E8B57       46 139  87Dark sea green (Darkseagreen)       #8FBC8F      143 188 143Cyan colorsAquamarine       #7FFFD4      127 255 212Medium aquamarine (Mediumaquamarine)       #66CDAA      102 205 170Turquoise       #40E0D0       64 224 208Medium turquoise       #48D1CC       72 209 204Dark turquoise (Darkturquoise)       #00CED1        0 206 209Pale turquoise       #AFEEEE      175 238 238Light sea green (Lightseagreen)       #20B2AA       32 178 170Light cyan (Lightcyan)       #E0FFFF      224 255 255Aqua or Cyan       #00FFFF        0 255 255Dark cyan (Darkcyan)       #008B8B        0 139 139Teal       #008080        0 128 128 Powder blue (Powderblue)       #B0E0E6      176 224 230Cadet blue (Cadetblue)       #5F9EA0       95 158 160Azure & Blue colorsLight blue (Lightblue)       #ADD8E6      173 216 230Sky blue (Skyblue)       #87CEEB      135 206 235Light sky blue (Lightskyblue)       #87CEFA      135 206 250Deep sky blue (Deepskyblue)       #00BFFF        0 191 255Dodger blue (Dodgerblue)       #1E90FF       30 144 255Light steel blue (Lightsteelblue)       #B0C4DE      176 196 222Steel blue (Steelblue)       #4682B4       70 130 180Cornflower blue (Cornflowerblue)       #6495ED      100 149 237Royal blue (Royalblue)       #4169E1       65 105 225Blue       #0000FF        0   0 255Medium blue (Mediumblue)       #0000CD        0   0 205Dark blue (Darkblue)       #00008B        0   0 139Navy       #000080        0   0 128Midnight blue (Midnightblue)       #191970       25  25 112Medium slate blue (Mediumslateblue)       #7B68EE      123 104 238Slate blue (Slateblue)       #6A5ACD      106  90 205Dark slate blue (Darkslateblue)       #483D8B       72  61 139HTML nameHexDecimal codeR   G   BBrown colorsCornsilk       #FFF8DC      255 248 220Blanched almond (Blanchedalmond)       #FFEBCD      255 235 205Bisque       #FFE4C4      255 228 196Navajo white (Navajowhite)       #FFDEAD      255 222 173Wheat       F5 DE B3      245 222 179Burlywood       DE B8 87      222 184 135Tan       D2 B4 8C      210 180 140Rosy brown (Rosybrown)       BC 8F 8F      188 143 143Sandy brown (Sandybrown)       F4 A4 60      244 164  96Peru       CD 85 3F      205 133  63Chocolate       D2 69 1E      210 105  30Saddle brown (Saddlebrown)       8B 45 13      139  69  19Sienna       A0 52 2D      160  82  45Brown       A5 2A 2A      165  42  42White colorsWhite       FF FF FF      255 255 255Snow       FF FA FA      255 250 250Honeydew       F0 FF F0      240 255 240Mint cream (Mintcream)       F5 FF FA      245 255 250Azure       F0 FF FF      240 255 255Alice blue (Aliceblue)       F0 F8 FF      240 248 255Ghost white (Ghostwhite)       F8 F8 FF      248 248 255White smoke (Whitesmoke)       F5 F5 F5      245 245 245Seashell       FF F5 EE      255 245 238Beige       F5 F5 DC      245 245 220Old lace (Oldlace)       FD F5 E6      253 245 230Floral white (Floralwhite)       FF FA F0      255 250 240Ivory       FF FF F0      255 255 240Antique white (Antiquewhite)       FA EB D7      250 235 215Linen       FA F0 E6      250 240 230Lavender blush (Lavenderblush)       FF F0 F5      255 240 245Misty rose (Mistyrose)       FF E4 E1      255 228 225Gray colorsGainsboro       DC DC DC      220 220 220Light gray (Lightgray)       D3 D3 D3      211 211 211Silver       C0 C0 C0      192 192 192Dark gray (Darkgray)       A9 A9 A9      169 169 169Gray       80 80 80      128 128 128Dim gray (Dimgray)       69 69 69      105 105 105Light slate gray (Lightslategray)       77 88 99      119 136 153Slate gray (Slategray)       70 80 90      112 128 144Dark slate gray (Darkslategray)  2F 4F 4F   47  79  79Black   00 00 00     0   0   0

X11 colors (formulated in 1987)
These are called "X11 web colors" since the invention of the World Wide Web in 1991.

X11 nameHexDecimal codeR   G   BRed colorslightcoral       #F08080      240 128 128indianred       #CD5C5C      205  92  92indianred1       #FF6A6A      255  106  106indianred2       #EE6363      238  99  99indianred3       #CD5555      205  85  85indianred4       #8B3A3A      139  58  58firebrick       #B22222      178  34  34brown       #A52A2A      165  42  42red1       #FF0000      255   0   0red4       #8B0000      139   0   0salmon       #FA8072      250 128 114Pink & Rose colorspink       #FFC0CB      255 192 203lightpink       #FFB6C1      255 182 193hotpink       #FF69B4      255 105 180deeppink1       #FF1493      255  20 147palevioletred       #DB7093      219 112 147maroon       #B03060      176 48 96Orange colorspeachpuff1       #FFDAB9      255 218 185darksalmon       #E9967A      233 150 122lightsalmon1       #FFA07A      255 160 122coral       #FF7F50      255 127  80tomato1       #FF6347      255  99  71orangered1       #FF4500      255  69   0papayawhip       #FFEFD5      255 239 213moccasin       #FFE4B5      255 228 181darkorange       #FF8C00      255 140   0orange1       #FFA500      255 165   0Yellow colorslightgoldenrodyellow      #FAFAD2      250 250 210lightgoldenrod1      #FFEC8B      250 250 210lightgoldenrod2      #EEDC82      238 220 130lightgoldenrod3      #CDBE70      205 190 112lightgoldenrod4      #8B814C      139 129 76palegoldenrod       #EEE8AA      238 232 170goldenrod       #DAA520      218 165 32goldenrod1       #FFC125      255 193 37goldenrod2       #EEB422      238 180 34goldenrod3       #CD9B1D      205 155 29goldenrod4       #8B6914      139 105 20darkgoldenrod       #B8860B      184 134 11darkgoldenrod1       #FFB90F      255 184 15darkgoldenrod2       #EEAD0E      238 173 14darkgoldenrod3       #CD950C      205 149 12darkgoldenrod4       #8B6508      139 101 8gold1       #FFD700      255 215 0gold2       #EEC900      238 201 0gold3       #CDAD00      205 173 0gold4       #8B7500      139 177 0lemonchiffon1       #FFFACD      255 250 205lemonchiffon2       #EEE9BF      238 233 191lemonchiffon3       #CDC9A5      2O5 201 165lemonchiffon4       #8B8970      139 137 112lightyellow1       #FFFFE0      255 255 224lightyellow2       #EEEED1      238 238 209lightyellow3       #CDCDB4      205 205 180lightyellow4       #8B8B7A      139 139 122yellow1       #FFFF00      255 255 0yellow2       #EEEE00      238 238 0yellow3       #CDCD00      205 205 0yellow4       #8B8B00      139 139 0khaki       #F0E68C      240 230 140khaki1       #FFF68F      255 246 143khaki2       #EEE685      238 230 133khaki3       #CDC673      205 198 115khaki4       #8B864E      139 134 78darkkhaki       #BDB76B      189 183 107Violet, Purple & Magenta colorslavender       #E6E6FA      230 230 250mediumpurple       #9370DB      147 112 219blueviolet       #8A2BE2      138 43 226darkviolet       #9400D3      148 0 211purple       #A020F0      160 32 240mediumorchid       #BA55D3      186 85 211darkorchid       #9932CC      153 50 204thistle       #D8BFD8      216 191 216plum       #DDA0DD      221 160 221violet       #EE82EE      238 130 238orchid       #DA70D6      218 112 214magenta       #FF00FF      255 0 255maroon1       #FF34B3      255 52 179maroon2       #EE30A7      238 48 167maroon3       #CD2990      205 41 144maroon4       #8B1C62      139 28 98mediumvioletred       #C71585      199 21 133violetred       #D02090      208  32 144X11 nameHexDecimal codeR   G   BGreen colorsyellowgreen       #9ACD32      154 205  50olivedrab       #6B8E23      107 142  35darkolivegreen       #556B2F       85 107  47greenyellow       #ADFF2F      173 255  47chartreuse1       #7FFF00      127 255   0lawngreen       #7CFC00      124 252   0green1       #00FF00        0 255   0green4       #008B00        0 139   0darkgreen       #006400        0 100   0palegreen       #98FB98      152 251 152limegreen       #32CD32       50 205  50forestgreen       #228B22       34 139  34mediumspringgreen       #00FA9A        0 250 154springgreen1       #00FF7F        0 255 127mediumseagreen       #3CB371       60 179 113seagreen1       #54FF9F       46 139  87darkseagreen       #8FBC8F      143 188 143Cyan colorsaquamarine       #7FFFD4      127 255 212mediumaquamarine       #66CDAA      102 205 170turquoise       #40E0D0       64 224 208mediumturquoise       #48D1CC       72 209 204darkturquoise       #00CED1        0 206 209paleturquoise       #AFEEEE      175 238 238lightseagreen       #20B2AA       32 178 170lightcyan1       #E0FFFF      224 255 255cyan1       #00FFFF        0 255 255cyan2       #00EEEE        0 238 238cyan3       #00CDCD        0 205 205cyan4       #008B8B        0 139 139powderblue       #B0E0E6      176 224 230cadetblue       #5F9EA0       95 158 160Azure & Blue colorslightblue       #ADD8E6      173 216 230skyblue       #87CEEB      135 206 235lightskyblue       #87CEFA      135 206 250deepskyblue1       #00BFFF        0 191 255dodgerblue1       #1E90FF       30 144 255lightsteelblue       #B0C4DE      176 196 222steelblue       #4682B4       70 130 180cornflowerblue       #6495ED      100 149 237royalblue       #4169E1       65 105 225blue1       #0000FF        0   0 255blue2       #0000EE        0   0 238mediumblue       #0000CD        0   0 205blue4       #00008B        0   0 139navyblue       #000080        0   0 128midnightblue       #191970       25  25 112mediumslateblue       #7B68EE      123 104 238slateblue       #6A5ACD      106  90 205darkslateblue       #483D8B       72  61 139X11 nameHexDecimal codeR   G   BBrown colorscornsilk1       FF F8 DC      255 248 220blanchedalmond       FF EB CD      255 235 205bisque1       FF E4 C4      255 228 196navajowhite1       FF DE AD      255 222 173wheat       F5 DE B3      245 222 179burlywood       DE B8 87      222 184 135tan       D2 B4 8C      210 180 140rosybrown       BC 8F 8F      188 143 143sandybrown       F4 A4 60      244 164  96peru       CD 85 3F      205 133  63chocolate       D2 69 1E      210 105  30saddle brown       8B 45 13      139  69  19sienna       A0 52 2D      160  82  45White colorswhite       FF FF FF      255 255 255snow1       FF FA FA      255 250 250honeydew1       F0 FF F0      240 255 240mintcream       F5 FF FA      245 255 250azure1       F0 FF FF      240 255 255aliceblue       F0 F8 FF      240 248 255ghostwhite       F8 F8 FF      248 248 255whitesmoke       F5 F5 F5      245 245 245seashell1       FF F5 EE      255 245 238beige       F5 F5 DC      245 245 220oldlace       FD F5 E6      253 245 230floralwhite       FF FA F0      255 250 240ivory1       FF FF F0      255 255 240antiquewhite       FA EB D7      250 235 215linen       FA F0 E6      250 240 230lavenderblush1       FF F0 F5      255 240 245mistyrose1       FF E4 E1      255 228 225Gray colorsgainsboro       DC DC DC      220 220 220lightgray       D3 D3 D3      211 211 211silver       C0 C0 C0      192 192 192darkgray       A9 A9 A9      169 169 169gray       80 80 80      128 128 128dimgray       69 69 69      105 105 105lightslategray       77 88 99      119 136 153slategray       70 80 90      112 128 144darkslategray       2F 4F 4F       47  79  79black       #000000        0   0   0

Chart of selected web colors
This chart shows selected HTML and X11 colors as well as selected unofficial consensus web colors developed by web designers since 2002.  When entering code using the unofficial colors, the hex code of the color must be specified instead of writing the name of the color.  

References

Category:Color
Category:Web design