XML technologies / CSS / Advanced websites with CSS / CSS color reference
(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)
As explained in detail in Specifying colors, there are five ways to define CSS color values:
Descriptive color names
color: red;Hexadecimal RGB values with six or three characters
color: #ff0000;color: #f00;Decimal RGB values
color: rgb(255, 0, 0);RGB percentages
color: rgb(100%, 0%, 0%);System-specific color names
color: AppWorkspace;
This page provides a complete reference for the first two methods, color names. The CSS2 Recommendation includes 17 descriptive color names, listed in the table Color names in the CSS standard. Another 124 color names originated with Netscape and are supported by almost all browsers; they appear in the table Extended palette of color names. CSS2 also provides 28 system-specific color names corresponding to colors in the user’s operating system interface. The table System-specific CSS color names summarizes these. Most current browsers recognize system-specific color names, but older browsers generally do not.
Table: Color names in the CSS standard.
Color name | Hexadecimal value | Red | Green | Blue |
|---|---|---|---|---|
| | 0 | 255 | 255 |
| | 0 | 0 | 0 |
| | 0 | 0 | 255 |
| | 255 | 0 | 255 |
| | 128 | 128 | 128 |
| | 0 | 128 | 0 |
| | 0 | 255 | 0 |
| | 128 | 0 | 0 |
| | 0 | 0 | 128 |
| | 128 | 128 | 0 |
| | 128 | 0 | 128 |
| | 255 | 0 | 0 |
| | 192 | 192 | 192 |
| | 0 | 128 | 128 |
| | 255 | 255 | 255 |
| | 255 | 255 | 0 |
| | 255 | 156 | 0 |
Table: Extended palette of color names.
Color name | Hexadecimal value | Red | Green | Blue |
|---|---|---|---|---|
| | 240 | 248 | 255 |
| | 250 | 235 | 215 |
| | 127 | 255 | 212 |
| | 240 | 255 | 255 |
| | 245 | 245 | 220 |
| | 255 | 228 | 196 |
| | 255 | 235 | 205 |
| | 138 | 43 | 226 |
| | 165 | 42 | 42 |
| | 222 | 184 | 135 |
| | 95 | 158 | 160 |
| | 127 | 255 | 0 |
| | 210 | 105 | 30 |
| | 255 | 127 | 80 |
| | 100 | 149 | 237 |
| | 255 | 248 | 220 |
| | 220 | 20 | 61 |
| | 0 | 255 | 255 |
| | 0 | 0 | 139 |
| | 0 | 139 | 139 |
| | 139 | 134 | 11 |
| | 169 | 169 | 169 |
| | 0 | 100 | 0 |
| | 189 | 183 | 107 |
| | 139 | 0 | 139 |
| | 85 | 107 | 47 |
| | 255 | 140 | 0 |
| | 153 | 50 | 204 |
| | 139 | 0 | 0 |
| | 233 | 150 | 122 |
| | 143 | 188 | 143 |
| | 72 | 61 | 139 |
| | 47 | 79 | 79 |
| | 0 | 206 | 209 |
| | 148 | 0 | 211 |
| | 255 | 20 | 147 |
| | 0 | 191 | 255 |
| | 105 | 105 | 105 |
| | 30 | 144 | 255 |
| | 178 | 34 | 34 |
| | 255 | 250 | 240 |
| | 34 | 139 | 34 |
| | 220 | 220 | 220 |
| | 248 | 248 | 255 |
| | 255 | 215 | 0 |
| | 218 | 165 | 32 |
| | 173 | 255 | 47 |
| | 240 | 255 | 240 |
| | 255 | 105 | 180 |
| | 205 | 92 | 92 |
| | 75 | 0 | 130 |
| | 255 | 255 | 240 |
| | 240 | 230 | 140 |
| | 230 | 230 | 250 |
| | 255 | 240 | 245 |
| | 124 | 252 | 0 |
| | 255 | 250 | 205 |
| | 173 | 216 | 230 |
| | 240 | 128 | 128 |
| | 224 | 255 | 255 |
| | 250 | 250 | 210 |
| | 144 | 238 | 144 |
| | 211 | 211 | 211 |
| | 255 | 182 | 193 |
| | 255 | 160 | 122 |
| | 32 | 178 | 170 |
| | 135 | 206 | 250 |
| | 119 | 136 | 153 |
| | 176 | 196 | 222 |
| | 255 | 255 | 224 |
| | 50 | 205 | 50 |
| | 250 | 240 | 230 |
| | 255 | 0 | 255 |
| | 102 | 205 | 170 |
| | 0 | 0 | 205 |
| | 186 | 85 | 211 |
| | 147 | 112 | 219 |
| | 60 | 179 | 113 |
| | 123 | 104 | 238 |
| | 0 | 250 | 154 |
| | 72 | 209 | 204 |
| | 199 | 21 | 133 |
| | 25 | 25 | 112 |
| | 245 | 255 | 250 |
| | 255 | 228 | 225 |
| | 255 | 228 | 181 |
| | 255 | 222 | 173 |
| | 253 | 245 | 230 |
| | 107 | 142 | 35 |
| | 255 | 165 | 0 |
| | 255 | 69 | 0 |
| | 218 | 112 | 214 |
| | 238 | 232 | 170 |
| | 152 | 251 | 152 |
| | 175 | 238 | 238 |
| | 219 | 112 | 147 |
| | 255 | 239 | 213 |
| | 255 | 218 | 185 |
| | 205 | 133 | 63 |
| | 255 | 192 | 203 |
| | 221 | 160 | 221 |
| | 176 | 224 | 230 |
| | 188 | 143 | 143 |
| | 65 | 105 | 225 |
| | 139 | 69 | 19 |
| | 250 | 128 | 114 |
| | 244 | 164 | 96 |
| | 46 | 139 | 87 |
| | 255 | 245 | 238 |
| | 160 | 82 | 45 |
| | 135 | 206 | 235 |
| | 106 | 90 | 205 |
| | 112 | 128 | 144 |
| | 255 | 250 | 250 |
| | 0 | 255 | 127 |
| | 70 | 130 | 180 |
| | 210 | 180 | 140 |
| | 216 | 191 | 216 |
| | 255 | 99 | 71 |
| | 64 | 224 | 208 |
| | 238 | 130 | 238 |
| | 245 | 222 | 179 |
| | 245 | 245 | 245 |
| | 154 | 205 | 50 |
Table: System-specific CSS color names.
Color name | Description |
|---|---|
| Border color of the active window title bar |
| Title text color of the active window title bar |
| Background color of the active application |
| Desktop background color |
| Button color in dialog windows |
| Highlight colors for 3D button edges facing the light source in dialogs |
| Shadow colors for 3D button edges facing away from the light source in dialogs |
| Text color of labeled buttons in dialogs |
| Heading color in dialogs |
| Disabled text color in dialogs |
| Background color of selected list entries |
| Selected text color |
| Inactive window border color |
| Inactive window title color |
| Inactive window text color |
| Help window background color |
| Help window text color |
| Menu bar color |
| Menu item text color |
| Scrollbar background color |
| Dark shadow color for 3D elements |
| 3D element color |
| Clicked 3D element color |
| Light shadow color for 3D elements |
| Shadow color for 3D elements |
| Document window background color |
| Window border color |
| Normal text color in document windows |
Copyright © 2006 of the German translation, dpunkt.verlag GmbH
You may print the online version for your private use.
Otherwise, this chapter from “CSS − Anspruchsvolle Websites mit Cascading Stylesheets” is subject to the same conditions as the bound edition: the work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
dpunkt.verlag GmbH, Ringstraße 19, 69115 Heidelberg
back to top