Web colors: Color Table, RGB colors and HEX Color Codes

Web colors: Color Table, RGB colors and HEX Color Codes

Web colors: Color Table, RGB colors and HEX Color Codes - photo/ screenshot/ montage: T.Bortels/cpu20.com

The use of web colors is of course a basic tool in web design and is actually not as complicated as it may seem at first glance. A brief introduction: there are two basic color systems: Additive color mixing and subtractive color mixing. Light colors that are displayed either with spotlights or on screens are additive color mixing. Roughly speaking, this means “red + green + blue = white”.

All ‘physical’ colors that are applied to a surface, for example, are referred to as subtractive color mixing.

The color space of subtractive colors behaves differently than that of additive colors. Instead of red, green and blue (RGB), we are dealing with the primary colors cyan, magenta and yellow: CMYK. The “K” stands for “key”, the color depth – i.e. the black component. Roughly speaking, this means: “Cyan + Magenta + Yellow = Black”.

Web colors in HTML and CSS – RGB vs. HEX

CSS can also be used to define colors on the web – however, this works very differently for web colors than for print colors. A good example of the difference is the color cyan. There is actually no “light color” that corresponds to the print color cyan. Nevertheless, there is a web color “cyan” with the HEX code #00FFFF and the RGB values 0, 255, 255. On the screen, this HTML cyan actually resembles the printed color cyan – but the two colors have nothing to do with each other from a purely technical point of view.

In HTML code or CSS code, colors can therefore be specified as RGB values or as so-called HEX values (HEX Color Code). Sometimes the colors used in web design are also called HTML colors or CSS colors – the more general term web colors would be more appropriate. Both systems have one thing in common: the color is formed from a combination of red, green and blue – hence the abbreviation RGB. The red, green and blue components of the desired color are each specified via a value – together they then result in the desired hue.

The composition of such RGB codes (“RGB colors”) is relatively easy to explain. The first three numbers stand for the red, green and blue components. For the color intensity, 8 bits or 256 levels are available for each hue. The value is specified as a decimal number – zero “0” is the lowest value and “255” the highest. With an RGBa color space, the alpha channel is also available to determine the transparency of a hue or color area. The zero “0” stands for complete transparency and “255” for full opacity.

The HEX Color Code (“HEX colors”) is a little different. Here, too, you basically have 8 bits or 255 levels per color tone to choose from – i.e. 255 color tones per basic color red, green and blue. The number “00” has the lowest value, the letter “FF” the highest value. The desired hue is then not specified as a decimal number, but as a hexadecimal number. The three values are then combined to form a six-digit combination of numbers and letters – the HEX Color Code.

Here are a few tables with the respective HEX values and a color field that represents the respective hue:

 

Shades of gray

Grey: HEX color table for selected shades of grey

Shade / color HEX Color Code RGB values
0% black / 100% white #ffffff 255, 255, 255
1% black / 99% white #fcfcfc 252, 252, 252
2% black / 98% white #fafafa 250, 250, 250
3% black / 97% white #f7f7f7 247, 247, 247
CSS “WhiteSmoke” #f5f5f5 245, 245, 245
5% black / 95% white #f2f2f2 242, 242, 242
6% black / 94% white #f0f0f0 240, 240, 240
8% black / 92% white #ebebeb 235, 235, 235
10% black / 90% white #e5e5e5 229, 229, 229
12% black / 88% white #e0e0e0 224, 224, 224
15% black / 85% white #d9d9d9 217, 217, 217
20% black / 80% white #cccccc 204, 204, 204
25% black / 75% white #b7b7b7 183, 183, 183
30% black / 70% white #b2b2b2 178, 178, 178
40% black / 60% white #999999 153, 153, 153
40% black / 40% white #7f7f7f 127, 127, 127
60% black / 40% white #666666 102, 102, 102
80% black / 20% white #333333 51, 51, 51
100% black / 0% white #000000 0, 0, 0
Non-neutral gray and white tones / spot colors
snw / CSS “Snow” #FFFAFA 255, 250, 250
sea shell / CSS “SeaShell” #FFF5EE 255, 245, 238
slate / CSS “SlateGray” #708090 112, 128, 144

Shades of red

RGB and HEX color table for selected red tones

Shade / color HEX Color Code RGB values
“0% rot” (100% white) #ffffff 255, 255, 255
100% red, 0% green 0% blue #ff0000 255, 0, 0
90% red, 10% black #cc0000 204, 0, 0
90% red, 10% white #ff3333 255, 51, 51
dark red / CSS “DarkRed” #8B0000 139, 0, 0
“purple” bzw. 40% rot, 40% blau #800080 128, 0, 128
purple / CSS “purple” #A020F0 160, 32, 240
true purple / CSS “Truepurple” #990099 153, 0, 153
CSS “Magenta” #FF00FF 255, 0, 255
hot magenta / CSS “HotMagenta” #FF00CC 255, 0, 204
dark magenta / CSS “DarkMagenta” #8B008B 139, 0, 139
orange / CSS “Orange” #FFA500 255, 165, 0
dark orange / CSS “DarkOrange” #FF8C00 255, 140, 0
orange-red / CSS “OrangeRed” #FF4500 255, 69, 0
salmon / CSS “Salmon” #FA8072 250, 128, 114
sea shell / CSS “SeaShell” #FFF5EE 255, 245, 238
misty rose / CSS “MistyRose” #FFE4E1 255, 228, 225

Shades of green

RGB and HEX color table for selected shades of green

Shade / color HEX Color Code RGB values
“0% green” (100% white) #ffffff 255, 255, 255
CSS “Green” #008000 0, 128, 0
forest green / CSS “ForestGreen” #228B22 34, 139, 34
100% green / lime / CSS “Lime” #00ff00 0, 255, 0
lawn green / CSS “LawnGreen” #7CFC00 124, 252, 0
yellow green / CSS “YellowGreen” #9ACD32 173, 255, 47
green-yellow / CSS “GreenYellow” #ADFF2F 154, 205, 50
spring green / CSS “SpringGreen” #00FF7F 0, 255, 127
light sea green / CSS “LightSeaGreen” #20B2AA 32, 178, 170
dark sea green / CSS “DarkSeaGreen” #8FBC8F 143, 188, 143
dark olive green / CSS “DarkOliveGreen” #556B2F 85,107,47

Shades of blue

RGB and HEX color table for selected shades of blue

Shade / color HEX Color Code RGB values
“0% blue” (100% white) #ffffff 255, 255, 255
100& blue / CSS “Blue” #0000FF 0, 0, 255
medium blue / CSS “MediumBlue” #0000CD 0, 0, 205
dark blue / CSS “DarkBlue” #00008B 0, 0, 139
navy / CSS “Navy” #000080 0, 0, 128
midnight blue CSS “MidnightBlue” #191970 25, 25, 112
cyan / CSS “Cyan” #00FFFF 0, 255, 255
cark cyan / CSS “DarkCyan” #008B8B 0, 139, 139
dark slate blue / CSS “DarkSlateBlue” #483D8B 72, 61, 139
turquoise / CSS “Turquoise” #40E0D0 64, 224, 208
dark turquoise / CSS “DarkTurquoise” #00CED1 0, 206, 209
steel blue / CSS “SteelBlue” #4682B4 70, 130, 180
slate gray / CSS “SlateGray” #708090 112, 128, 144
light sky blue / CSS “LightSkyBlue” #87CEFA 135, 206, 250
sky blue / CSS “SkyBlue” #87CEEB 135, 206, 235
deep sky blue / CSS “DeepSkyBlue” #00BFFF 0, 191, 255
royal blue / CSS “RoyalBlue” #4169E1 65, 105, 225