All Topics  
Web colors

 

   Email Print
   Bookmark   Link






 

Web colors



 
 
Web colors are color
Color

Color or colour is the visual perception property corresponding in humans to the categories called red, yellow, blue and others....
s used in designing web
World Wide Web

The World Wide Web is a very large set of interlinked hypertext documents accessed via the Internet. With a Web browser, one can view Web pages that may contain writing, s, videos, and other multimedia and navigate between them using hyperlinks....
 pages, and the methods for describing and specifying those colors.

Authors of web pages have a variety of options available for specifying colors for elements of web documents. Colors may be specified as an RGB triplet in hexadecimal
Hexadecimal

In mathematics and computer science, hexadecimal is a numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 09 to represent values zero to nine, and A, B, C, D, E, F to represent values ten to fifteen....
 format (a hex triplet); they may also be specified according to their common English
English language

English is a West Germanic language that originated in Anglo-Saxon England and has lingua franca status in many parts of the world as a result of the military, economic, scientific, political and cultural influence of the British Empire in the 18th, 19th and early 20th centuries and that of the United States from the mid 20th century onwa...
 names in some cases. Often a color tool
Color tool

A Color tool is an application, usually found within graphics software and online, used for the purposes of color management, creating color schemes, picking colors, and more....
 or other graphics software
Graphics software

In computer graphics, graphics software or image editing software is a computer program or collection of programs that enable a person to manipulate visual images on a computer....
 is used to generate color values.

The first versions of Mosaic
Mosaic (web browser)

Mosaic is the web browser credited with popularizing the World Wide Web. It was also a client for earlier protocols such as FTP, Usenet, and Gopher ....
 and Netscape Navigator
Netscape Navigator

Netscape Navigator and Netscape are the names for the proprietary software web browser popular in the 1990s, and the flagship product of the Netscape Communications Corporation, and the dominant web browser in terms of Usage share of web browsers....
 used the X11 color names
X11 color names

In computing, on the X Window System, X11 color names are represented in a simple text file, which maps certain strings to RGB color values. It is shipped with every "X" installation, hence the name, and is usually located in <X11root>/lib/X11/rgb.txt....
 as the basis for their color lists, as both started as X Window System
X Window System

The X Window System is a computing software system and network protocol that provides a graphical user interface for networked computers. It implements the X Window System protocols and architecture and provides windowing system on raster graphics Visual display units and manages Keyboard and pointing device control functions....
 applications.

Web colors have an unambiguous colorimetric definition, sRGB, which relates the chromaticities
Chromaticity

Chromaticity is an objective specification of the quality of a color regardless of its luminance, that is, as determined by its colorfulness and hue....
 of a particular phosphor
Phosphor

A phosphor is a substance that exhibits the optical phenomenon of phosphorescence .Phosphors are transition metal compounds or rare earth element compounds of various types....
 set, a given transfer curve, adaptive whitepoint, and viewing conditions.






Discussion
Ask a question about 'Web colors'
Start a new discussion about 'Web colors'
Answer questions from other users
Full Discussion Forum



Encyclopedia


Web colors are color
Color

Color or colour is the visual perception property corresponding in humans to the categories called red, yellow, blue and others....
s used in designing web
World Wide Web

The World Wide Web is a very large set of interlinked hypertext documents accessed via the Internet. With a Web browser, one can view Web pages that may contain writing, s, videos, and other multimedia and navigate between them using hyperlinks....
 pages, and the methods for describing and specifying those colors.

Authors of web pages have a variety of options available for specifying colors for elements of web documents. Colors may be specified as an RGB triplet in hexadecimal
Hexadecimal

In mathematics and computer science, hexadecimal is a numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 09 to represent values zero to nine, and A, B, C, D, E, F to represent values ten to fifteen....
 format (a hex triplet); they may also be specified according to their common English
English language

English is a West Germanic language that originated in Anglo-Saxon England and has lingua franca status in many parts of the world as a result of the military, economic, scientific, political and cultural influence of the British Empire in the 18th, 19th and early 20th centuries and that of the United States from the mid 20th century onwa...
 names in some cases. Often a color tool
Color tool

A Color tool is an application, usually found within graphics software and online, used for the purposes of color management, creating color schemes, picking colors, and more....
 or other graphics software
Graphics software

In computer graphics, graphics software or image editing software is a computer program or collection of programs that enable a person to manipulate visual images on a computer....
 is used to generate color values.

The first versions of Mosaic
Mosaic (web browser)

Mosaic is the web browser credited with popularizing the World Wide Web. It was also a client for earlier protocols such as FTP, Usenet, and Gopher ....
 and Netscape Navigator
Netscape Navigator

Netscape Navigator and Netscape are the names for the proprietary software web browser popular in the 1990s, and the flagship product of the Netscape Communications Corporation, and the dominant web browser in terms of Usage share of web browsers....
 used the X11 color names
X11 color names

In computing, on the X Window System, X11 color names are represented in a simple text file, which maps certain strings to RGB color values. It is shipped with every "X" installation, hence the name, and is usually located in <X11root>/lib/X11/rgb.txt....
 as the basis for their color lists, as both started as X Window System
X Window System

The X Window System is a computing software system and network protocol that provides a graphical user interface for networked computers. It implements the X Window System protocols and architecture and provides windowing system on raster graphics Visual display units and manages Keyboard and pointing device control functions....
 applications.

Web colors have an unambiguous colorimetric definition, sRGB, which relates the chromaticities
Chromaticity

Chromaticity is an objective specification of the quality of a color regardless of its luminance, that is, as determined by its colorfulness and hue....
 of a particular phosphor
Phosphor

A phosphor is a substance that exhibits the optical phenomenon of phosphorescence .Phosphors are transition metal compounds or rare earth element compounds of various types....
 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, so that even without color management
Color management

In digital imaging systems, color management is the controlled conversion between the color representations of various devices, such as s, digital cameras, monitors, TV screens, film printers, computer printers, offset presses, and corresponding media....
 rendering is fairly close to the specified values. However, user agent
User agent

A user agent is the client application used with a particular network protocol; the phrase is most commonly used in reference to those which access the World Wide Web, but other systems such as Session Initiation Protocol use the term user agent to refer to the user's phone....
s vary in the fidelity with which they represent the specified colors. More advanced user agents use color management to provide better color fidelity; this is particularly important for Web-to-print applications.

Hex triplet

A hex triplet is a six-digit, three-byte
Byte

A byte is a basic unit of measurement of Computer storage in computer science. In many computer architectures it is a Byte addressing memory address space....
 hexadecimal
Hexadecimal

In mathematics and computer science, hexadecimal is a numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 09 to represent values zero to nine, and A, B, C, D, E, F to represent values ten to fifteen....
 number used in HTML
HTML

HTML, an Acronym and initialism of HyperText Markup Language, is the predominant markup language for Web pages. It provides a means to describe the structure of text-based information in a document?by denoting certain text as links, headings, paragraphs, lists, and so on?and to supplement that text with interactive forms, embedded '...
, CSS
Cascading Style Sheets

Cascading Style Sheets is a stylesheet language used to describe the presentation of a document written in a markup language. Its most common application is to style web pages written in HTML and XHTML, but the language can be applied to any kind of XML document, including Scalable Vector Graphics and XUL....
, SVG
Scalable Vector Graphics

Scalable Vector Graphics is a family of specifications of XML-based file format for describing two-dimensional vector graphics, both static and dynamic ....
, and other computing applications, to represent color
Color

Color or colour is the visual perception property corresponding in humans to the categories called red, yellow, blue and others....
s. The bytes represent the red, green and blue components of the color. One byte represents a number in the range 00 to FF (in hexadecimal notation), or 0 to 255 in decimal notation. This represents the least (0) to the most (255) intensity of each of the color components. 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 greyish-blue color). The decimal numbers 36, 104 and 160 are equivalent to the hexadecimal numbers 24, 68 and A0 respectively. The hex triplet is obtained by concatenating the 6 hexadecimal digits together, 2468A0 in this example.

Note that if any one of the three color values is less than 16 (decimal) or 10 (hex), it must be represented with a leading zero so that the triplet always has exactly six digits. For example, the decimal triplet 4, 8, 16 would be represented by the hex digits 04, 08, 10, forming the hex triplet 040810.

The number of colors that can be represented by this system is

An abbreviated, three (hexadecimal) digit form is sometimes used. Expanding this form to the six-digit form is as simple as doubling each digit: 09C becomes 0099CC. This allows each color value to cover its full range from 00 to FF. However, the three-digit form is not interpreted correctly in some versions of Opera.

Converting RGB to hexadecimal

Converting a decimal RGB value to a hexadecimal value is fairly straightforward. RGB values are usually given in the 0-255 range; if they are in the 0-1 range, the values are multiplied by 255 before conversion. This number divided by 16 (integer division; ignoring any remainder) gives us the first hexadecimal digit (between 0 and F, where the letters A to F represent the numbers 10 to 15. See hexadecimal
Hexadecimal

In mathematics and computer science, hexadecimal is a numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 09 to represent values zero to nine, and A, B, C, D, E, F to represent values ten to fifteen....
 for more details). The remainder gives us the second hexadecimal digit. For instance the RGB value 201 divides into 12 groups of 16, thus the first digit is C. A remainder of 9 gives us the hexadecimal number C9. This process is repeated for each of the three color values. Most modern operating system
Operating system

An operating system is an interface between hardware and applications; it is responsible for the management and coordination of activities and the sharing of the limited resources of the computer....
s have a built-in calculator to perform conversions between number bases and this can also be done with some hand-held calculators. This task can also be carried out using various web resources.

HTML color names


The HTML
HTML

HTML, an Acronym and initialism of HyperText Markup Language, is the predominant markup language for Web pages. It provides a means to describe the structure of text-based information in a document?by denoting certain text as links, headings, paragraphs, lists, and so on?and to supplement that text with interactive forms, embedded '...
 4.01 specification defines sixteen named colors, as follows (names are defined in this context to be case-insensitive; the table is alphabetically ordered):

ColorHexadecimalColorHexadecimalColorHexadecimalColorHexadecimal
aqua
Aqua (color)

Aqua is a cyan color, used mostly by graphic designers and other computer-related professionals such as web designers.Aqua is identical to the color electric cyan, the color on the HSV color space precisely halfway between green and blue....
#00FFFFgray#808080navy
Navy blue

Navy blue is a very dark shade of the color blue. Navy blue got its name from the dark blue worn by officers in the Royal Navy since 1748 and subsequently adopted by other Navy around the world....
#000080silver
Silver (color)

Silver is the metallic Tints and shades resembling gray, closest to that of polished silver.The visual sensation usually associated with the metal silver is its metallic shine....
#C0C0C0
black
Black

Black is the color of objects that do not emit or reflection light in any part of the visible spectrum; they absorb all such frequencies of light....
#000000green
Green

Green is a color, the perception of which is evoked by light having a spectrum dominated by energy with a wavelength of roughly 520?570-Nanometre....
#008000olive#808000teal
Teal (color)

Teal, also called teal blue, is equal parts blue and green. The color gets its name from the fact that it surrounds the eyes of the Common Teal, a member of the duck family....
#008080
blue
Blue

Blue is a colour, the perception of which is evoked by light having a spectrum dominated by energy with a wavelength of roughly 440?490 Nanometre....
#0000FFlime
Lime (color)

Lime green is a color between yellow and green, so named because it is a representation of the color of the citrus fruit called Lime s. It is the color that is half way between the web color Chartreuse and yellow on the color wheel....
#00FF00purple
Purple

Purple is a general term for the range of shades of color occurring between red and blue. It occurs by mixing the primary colors red and blue in varying proportions, with possibly a very small quantity of the third primary color ....
#800080white
White

White is a color, the Color vision#Physiology of color perception which is evoked by light that stimulates all three types of color sensitive cone cells in the human eye in near equal amount and with high brightness compared to the surroundings....
#FFFFFF
fuchsia
Fuchsia (color)

Fuchsia is a purple color named after the flower of the fuchsia plant. Fuchsia is used as an alias for electric magenta.There is also a somewhat redder and slightly less saturated hue termed fashion fuchsia that is used in women's fashion ....
#FF00FFmaroon
Maroon (color)

Maroon is a dark brownish-red color....
#800000red
Red

Red is any of a number of similar colors evoked by light consisting predominantly of the longest wavelengths of light discernible by the human eye, in the wavelength range of roughly 625?740 Nanometer....
#FF0000yellow
Yellow

Yellow is the color evoked by light that stimulates both the L and M cone cells of the retina about equally, but does not significantly stimulate the S cone cells; that is, light with much red and green but not very much blue....
#FFFF00


These 16 were also specified as sRGB and included in the HTML 3.0 specification which noted "These colors were originally picked as being the standard 16 colors supported with the Windows VGA palette."

X11 color names

In addition, a number of colors are defined by web browser
Web browser

A Web browser is a application software which enables a user to display and interact with text, images, videos, music, games and other information typically located on a Web page at a website on the World Wide Web or a local area network....
s. A particular browser may not recognize all of these colors, but as of 2005 all modern general-use browsers support the full list. Many of these colors are from the list of X11 color names
X11 color names

In computing, on the X Window System, X11 color names are represented in a simple text file, which maps certain strings to RGB color values. It is shipped with every "X" installation, hence the name, and is usually located in <X11root>/lib/X11/rgb.txt....
 distributed with the X Window System
X Window System

The X Window System is a computing software system and network protocol that provides a graphical user interface for networked computers. It implements the X Window System protocols and architecture and provides windowing system on raster graphics Visual display units and manages Keyboard and pointing device control functions....
. These colors were standardized by SVG 1.0
Scalable Vector Graphics

Scalable Vector Graphics is a family of specifications of XML-based file format for describing two-dimensional vector graphics, both static and dynamic ....
, and are accepted by SVG Full
Scalable Vector Graphics

Scalable Vector Graphics is a family of specifications of XML-based file format for describing two-dimensional vector graphics, both static and dynamic ....
 user agents. They are not part of SVG Tiny
Scalable Vector Graphics

Scalable Vector Graphics is a family of specifications of XML-based file format for describing two-dimensional vector graphics, both static and dynamic ....
.

Almost the exact same color names are used in .NET Framework
.NET Framework

The Microsoft .NET Framework is a software framework that is available with several Microsoft Windows operating systems. It includes a large Library of coded solutions to prevent common programming problems and a virtual machine that manages the execution of programs written specifically for the Software framework....
, in the KnownColor and Color enumerations. The only color difference is DarkSeaGreen which is defined as 8F,BC,8B (instead of 8F,BC,8F).

The list of colors actually shipped with the X11 product varies between implementations, and clashes with certain of the HTML names such as green. Furthermore, X11 colors are defined as simple RGB
RGB color model

The RGB color model is an additive color in which red, green, and blue light are added together in various ways to reproduce a broad array of colors....
 (hence, no particular color space), rather than sRGB. This means that the list of colors found in X11 (e.g. in /usr/lib/X11/rgb.txt) should not directly be used to choose colors for the web.

The list of web "X11 colors" from the CSS3 specification, along with their hexadecimal and decimal equivalents, is shown below, compare the alphabetical lists in the W3C standards. Note that this includes the common synonyms: aqua (HTML4/CSS 1.0 standard name) and cyan (common sRGB name), magenta (common sRGB name) and fuchsia (HTML4/CSS 1.0 standard name), gray (HTML4/CSS 1.0 standard name) and grey.

HTML
HTML

HTML, an Acronym and initialism of HyperText Markup Language, is the predominant markup language for Web pages. It provides a means to describe the structure of text-based information in a document?by denoting certain text as links, headings, paragraphs, lists, and so on?and to supplement that text with interactive forms, embedded '...
 name
Hex
Hexadecimal

In mathematics and computer science, hexadecimal is a numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 09 to represent values zero to nine, and A, B, C, D, E, F to represent values ten to fifteen....
 code
Code

In communications, a code is a Operator for converting a piece of information into another form or representation , not necessarily of the same type....

R   G   B
RGB color model

The RGB color model is an additive color in which red, green, and blue light are added together in various ways to reproduce a broad array of colors....
Decimal code
Code

In communications, a code is a Operator for converting a piece of information into another form or representation , not necessarily of the same type....

R   G   B
RGB color model

The RGB color model is an additive color in which red, green, and blue light are added together in various ways to reproduce a broad array of colors....
Red colors
IndianRed CD 5C 5C205  92  92
LightCoral F0 80 80240 128 128
Salmon FA 80 72250 128 114
DarkSalmon E9 96 7A233 150 122
LightSalmon FF A0 7A255 160 122
Crimson DC 14 3C220  20  60
Red FF 00 00255   0   0
FireBrick B2 22 22178  34  34
DarkRed 8B 00 00139   0   0
Pink colors
PinkFF C0 CB255 192 203
LightPink FF B6 C1255 182 193
HotPink FF 69 B4255 105 180
DeepPink FF 14 93255  20 147
MediumVioletRed C7 15 85199  21 133
PaleVioletRed DB 70 93219 112 147
Orange colors
LightSalmonFF A0 7A255 160 122
Coral FF 7F 50255 127  80
Tomato FF 63 47255  99  71
OrangeRed FF 45 00255  69   0
DarkOrange FF 8C 00255 140   0
Orange FF A5 00255 165   0
Yellow colors
GoldFF D7 00255 215   0
Yellow FF FF 00255 255   0
LightYellow FF FF E0255 255 224
LemonChiffonFF FA CD255 250 205
LightGoldenrodYellowFA FA D2250 250 210
PapayaWhip FF EF D5255 239 213
Moccasin FF E4 B5255 228 181
PeachPuff FF DA B9255 218 185
PaleGoldenrod EE E8 AA238 232 170
Khaki F0 E6 8C240 230 140
DarkKhaki BD B7 6B189 183 107
Purple colors
Lavender E6 E6 FA230 230 250
Thistle D8 BF D8216 191 216
PlumDD A0 DD221 160 221
Violet EE 82 EE238 130 238
Orchid DA 70 D6218 112 214
Fuchsia FF 00 FF255   0 255
Magenta FF 00 FF255   0 255
MediumOrchidBA 55 D3186  85 211
MediumPurple93 70 DB147 112 219
Amethyst 99 66 CC153 102 204
BlueViolet 8A 2B E2138  43 226
DarkViolet 94 00 D3148   0 211
DarkOrchid 99 32 CC153  50 204
DarkMagenta 8B 00 8B139   0 139
Purple 80 00 80128   0 128
Indigo 4B 00 82 75   0 130
SlateBlue 6A 5A CD106  90 205
DarkSlateBlue 48 3D 8B 72  61 139
MediumSlateBlue 7B 68 EE123 104 238
HTML
HTML

HTML, an Acronym and initialism of HyperText Markup Language, is the predominant markup language for Web pages. It provides a means to describe the structure of text-based information in a document?by denoting certain text as links, headings, paragraphs, lists, and so on?and to supplement that text with interactive forms, embedded '...
 name
Hex
Hexadecimal

In mathematics and computer science, hexadecimal is a numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 09 to represent values zero to nine, and A, B, C, D, E, F to represent values ten to fifteen....
 code
Code

In communications, a code is a Operator for converting a piece of information into another form or representation , not necessarily of the same type....

R   G   B
RGB color model

The RGB color model is an additive color in which red, green, and blue light are added together in various ways to reproduce a broad array of colors....
Decimal code
Code

In communications, a code is a Operator for converting a piece of information into another form or representation , not necessarily of the same type....

R   G   B
RGB color model

The RGB color model is an additive color in which red, green, and blue light are added together in various ways to reproduce a broad array of colors....
Green colors
GreenYellow AD FF 2F173 255  47
Chartreuse 7F FF 00127 255   0
LawnGreen 7C FC 00124 252   0
Lime00 FF 00  0 255   0
LimeGreen 32 CD 32 50 205  50
PaleGreen 98 FB 98152 251 152
LightGreen 90 EE 90144 238 144
MediumSpringGreen 00 FA 9A  0 250 154
SpringGreen 00 FF 7F  0 255 127
MediumSeaGreen 3C B3 71 60 179 113
SeaGreen 2E 8B 57 46 139  87
ForestGreen 22 8B 22 34 139  34
Green 00 80 00  0 128   0
DarkGreen 00 64 00  0 100   0
YellowGreen 9A CD 32154 205  50
OliveDrab 6B 8E 23107 142  35
Olive 80 80 00128 128   0
DarkOliveGreen 55 6B 2F 85 107  47
MediumAquamarine 66 CD AA102 205 170
DarkSeaGreen8F BC 8F143 188 143
LightSeaGreen 20 B2 AA 32 178 170
DarkCyan 00 8B 8B  0 139 139
Teal00 80 80  0 128 128
Blue colors
Aqua00 FF FF  0 255 255
Cyan00 FF FF  0 255 255
LightCyan E0 FF FF224 255 255
PaleTurquoise AF EE EE175 238 238
Aquamarine 7F FF D4127 255 212
Turquoise 40 E0 D0 64 224 208
MediumTurquoise 48 D1 CC 72 209 204
DarkTurquoise 00 CE D1  0 206 209
CadetBlue 5F 9E A0 95 158 160
SteelBlue 46 82 B4 70 130 180
LightSteelBlue B0 C4 DE176 196 222
PowderBlue B0 E0 E6176 224 230
LightBlue AD D8 E6173 216 230
SkyBlue 87 CE EB135 206 235
LightSkyBlue87 CE FA135 206 250
DeepSkyBlue 00 BF FF  0 191 255
DodgerBlue 1E 90 FF 30 144 255
CornflowerBlue 64 95 ED100 149 237
MediumSlateBlue 7B 68 EE123 104 238
RoyalBlue 41 69 E1 65 105 225
Blue00 00 FF  0   0 255
MediumBlue 00 00 CD  0   0 205
DarkBlue 00 00 8B  0   0 139
Navy00 00 80  0   0 128
MidnightBlue19 19 70 25  25 112
HTML
HTML

HTML, an Acronym and initialism of HyperText Markup Language, is the predominant markup language for Web pages. It provides a means to describe the structure of text-based information in a document?by denoting certain text as links, headings, paragraphs, lists, and so on?and to supplement that text with interactive forms, embedded '...
 name
Hex
Hexadecimal

In mathematics and computer science, hexadecimal is a numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 09 to represent values zero to nine, and A, B, C, D, E, F to represent values ten to fifteen....
 code
Code

In communications, a code is a Operator for converting a piece of information into another form or representation , not necessarily of the same type....

R   G   B
RGB color model

The RGB color model is an additive color in which red, green, and blue light are added together in various ways to reproduce a broad array of colors....
Decimal code
Code

In communications, a code is a Operator for converting a piece of information into another form or representation , not necessarily of the same type....

R   G   B
RGB color model

The RGB color model is an additive color in which red, green, and blue light are added together in various ways to reproduce a broad array of colors....
Brown colors
Cornsilk FF F8 DC255 248 220
BlanchedAlmond FF EB CD255 235 205
Bisque FF E4 C4255 228 196
NavajoWhite FF DE AD255 222 173
Wheat F5 DE B3245 222 179
BurlyWood DE B8 87222 184 135
Tan D2 B4 8C210 180 140
RosyBrown BC 8F 8F188 143 143
SandyBrown F4 A4 60244 164  96
Goldenrod DA A5 20218 165  32
DarkGoldenrod B8 86 0B184 134  11
PeruCD 85 3F205 133  63
Chocolate D2 69 1E210 105  30
SaddleBrown 8B 45 13139  69  19
Sienna A0 52 2D160  82  45
Brown A5 2A 2A165  42  42
Maroon 80 00 00128   0   0
White colors
White FF FF FF255 255 255
SnowFF FA FA255 250 250
Honeydew F0 FF F0240 255 240
MintCream F5 FF FA245 255 250
Azure F0 FF FF240 255 255
AliceBlue F0 F8 FF240 248 255
GhostWhite F8 F8 FF248 248 255
WhiteSmoke F5 F5 F5245 245 245
Seashell FF F5 EE255 245 238
Beige F5 F5 DC245 245 220
OldLace FD F5 E6253 245 230
FloralWhite FF FA F0255 250 240
Ivory FF FF F0255 255 240
AntiqueWhiteFA EB D7250 235 215
Linen FA F0 E6250 240 230
LavenderBlush FF F0 F5255 240 245
MistyRose FF E4 E1255 228 225
Grey colors
Gainsboro DC DC DC220 220 220
LightGrey D3 D3 D3211 211 211
Silver C0 C0 C0192 192 192
DarkGray A9 A9 A9169 169 169
Gray80 80 80128 128 128
DimGray 69 69 69105 105 105
LightSlateGray 77 88 99119 136 153
SlateGray 70 80 90112 128 144
DarkSlateGray 2F 4F 4F 47  79  79
Black 00 00 00  0   0   0


Web-safe colors

Another set of 216 color values is commonly considered to be the "web-safe" color palette, developed at a time when many computer displays were only capable of displaying 256 colors. A set of colors was needed that could be shown without dithering
Dither

Dither is an intentionally applied form of noise, used to randomize quantization error, thereby preventing large-scale patterns such as contouring that are more objectionable than uncorrelated noise....
 on 256-color displays; the number 216 was chosen partly because computer operating systems customarily reserved sixteen to twenty colors for their own use; it was also selected because it allows exactly six shades each of red, green, and blue (6 × 6 × 6 = 216).

The list of colors is often presented as if it has special properties that render them immune to dithering. In fact, on 256-color displays applications can set a palette of any selection of colors that they choose, dithering the rest. These colors were chosen specifically because they matched the palettes selected by the then leading browser applications. Fortunately, there were not radically different palettes in use in different popular browsers.

"Web-safe" colors had a flaw in that, on systems such as X11
X Window System

The X Window System is a computing software system and network protocol that provides a graphical user interface for networked computers. It implements the X Window System protocols and architecture and provides windowing system on raster graphics Visual display units and manages Keyboard and pointing device control functions....
 where the palette is shared between applications, smaller color cubes (5x5x5 or 4x4x4) were often allocated by browsers — thus, the "web safe" colors would actually dither on such systems. Better results were obtained by providing an image with a larger range of colors and allowing the browser to quantize
Color quantization

In computer graphics, color quantization or color image quantization is a process that reduces the number of distinct colors used in an image, usually with the intention that the new image should be as visually similar as possible to the original image....
 the color space if needed, rather than suffer the quality loss of a double quantization.

As of 2007, personal computers typically have at least 16-bit color and usually 24-bit (TrueColor
Truecolor

Truecolor is a method of representing and storing graphical image information in an RGB color space such that a very large number of colors, shades, and hues can be displayed in an image, such as in high quality photographic images or complex graphics....
). Even mobile devices have at least 16-bit color, driven by the inclusion of cameras on cellphones. The use of "web-safe" colors has fallen into practical disuse, but persisted in culture.

The web-safe palette system persists as a convenient palette whose colors can all be differentiated by human eyes. This led to the use of web-safe colors in anti-phishing
Phishing

In the field of computer security, phishing is the criminally fraudulent process of attempting to acquire sensitive information such as usernames, passwords and credit card details by masquerading as a trustworthy entity in an electronic communication....
 systems.

The "web-safe" colors do not all have standard names, but each can be specified by an RGB triplet: each component (red, green, and blue) takes one of the six values from the following table (out of the 256 possible values availalbe for each component in full 24-bit color).

6 shades of each color
digit hexadecimal decimal
0 00 0
3 33 51
6 66 102
9 99 153
C or (12) CC 204
F or (15) FF 255


The following table shows all of the "web-safe" colors, underlining the really-safe colors. The lack of gamma correction
Gamma correction

Gamma correction, gamma nonlinearity, gamma encoding, or often simply gamma, is the name of a nonlinear operation used to code and decode luminance or tristimulus values in video or still image systems....
 means that the six desired intensities 0%, 20%, 40%, 60%, 80%, and 100% are displayed as 0%, 2%, 10%, 28%, 57%, and 100% on a Windows
Microsoft Windows

Microsoft Windows is a series of software operating systems and graphical user interfaces produced by Microsoft. Microsoft first introduced an operating environment named Windows in November 1985 as an add-on to MS-DOS in response to the growing interest in graphical user interfaces ....
 standard 2.5 gamma CRT or LCD, making most colors very dark. (One shortcoming of the web-safe palette is its poor selection of light background colors.) The intensities at the low end of the range, especially the two darkest, are often hard to distinguish.

Color table

In the table below, each color code listed is a short-hand for the RGB value; for example, code 609 is equivalent to RGB code 660099.

Safest web colors

Designers were often encouraged to stick to these 216 "web-safe" colors in their websites; however, 8-bit color displays were much more common when the 216-color palette was developed than they are now. David Lehn and Hadley Stern have since discovered that only 22 of the 216 colors in the web-safe palette are reliably displayed without inconsistent remapping on 16-bit computer displays
Highcolour

Highcolor graphics is a method of storing image information in a computer's memory such that each pixel is represented by two bytes. Usually the color is represented by all 16 bits, but some video chipsets also support 15 bit highcolor....
. They called these 22 colors the "really safe" palette; it consists mainly of shades of green and yellow, as can be seen in the table above, where the "really safe" colors are underlined.

CSS colors

The Cascading Style Sheets
Cascading Style Sheets

Cascading Style Sheets is a stylesheet language used to describe the presentation of a document written in a markup language. Its most common application is to style web pages written in HTML and XHTML, but the language can be applied to any kind of XML document, including Scalable Vector Graphics and XUL....
 language defines the same number of named colors as the HTML 4 spec, namely the 16 listed previously
Web colors

Web colors are colors used in designing world wide web pages, and the methods for describing and specifying those colors.Authors of web pages have a variety of options available for specifying colors for elements of web documents....
. Additionally, CSS 2.1 adds the 'orange' color name to the list:

ColorHexadecimal
orange#FFA500


CSS 2, SVG
Scalable Vector Graphics

Scalable Vector Graphics is a family of specifications of XML-based file format for describing two-dimensional vector graphics, both static and dynamic ....
 and CSS 2.1 also allow web authors to use so-called system colors, which are color names whose values are taken from the operating system
Operating system

An operating system is an interface between hardware and applications; it is responsible for the management and coordination of activities and the sharing of the limited resources of the computer....
. This enables web authors to style their content in line with the operating system of the user agent. , it appears that the CSS3 color module will once again drop these values, marking them deprecated, but this may change.

The developing CSS3 specification will also introduce HSL color space
HSL color space

HSL and HSV are two related representations of points in an RGB color space, which attempt to describe perceptual color relationships more accurately than RGB, while remaining computationally simple....
 values to style sheets:

/* RGB model */ p/* #rgb */ p /* #rrggbb */ p /* integer range 0 - 255 */ p /* float range 0.0% - 100.0% */

/* RGB with alpha channel, added to CSS3 */ p /* 0.5 opacity, semi-transparent */

/* HSL model, added to CSS3 */ p /* red */ p /* green */ p /* dark green */ p /* light green */ p /* pastel green */

/* HSL model with alpha channel */ p /* green */ p /* semi-transparent green */ p /* very transparent green */

Accessibility

  • Some browsers
    Web browser

    A Web browser is a application software which enables a user to display and interact with text, images, videos, music, games and other information typically located on a Web page at a website on the World Wide Web or a local area network....
     and devices do not support colors.
  • For blind and colorblind users, Web content depending on colors can be unusable or difficult to use.
  • Mixing legacy markup like bgcolor with modern CSS
    Cascading Style Sheets

    Cascading Style Sheets is a stylesheet language used to describe the presentation of a document written in a markup language. Its most common application is to style web pages written in HTML and XHTML, but the language can be applied to any kind of XML document, including Scalable Vector Graphics and XUL....
     fails for legacy browsers not supporting CSS.
  • should be modified to avoid black on black effects.


Popular browsers show links as shades of blue. Dark background colors, such as blue or navy, do not display well for such links. Using CSS to modify link colors does not work with legacy browsers. For example, in Netscape 4.x support for CSS is frequently disabled for being rather paltry.

See also

  • List of palettes
    List of palettes

    This article is a list of the palette s for notable computer graphics, terminals and video game consoles hardware.Only a sample and the palette's name are given here....
  • Color tool
    Color tool

    A Color tool is an application, usually found within graphics software and online, used for the purposes of color management, creating color schemes, picking colors, and more....
  • List of colors
    List of colors

    The following is a complete list of colors with associated articles. See also color names and the list of color topics.Note that a large percentage of the color swatches below are taken from computer-domain-specific naming schemes such as X11 or HTML4 ....


External links