The string literals in this table can be used to specify colors in the JavaScript alinkColor, bgColor, fgColor, linkColor, and vlinkColor properties and the fontcolor method.
You can also use these string literals to set the color in the HTML reflections of these properties, for example <BODY BGCOLOR="bisque">, and to set the COLOR attribute of the FONT tag, for example, <FONT COLOR="blue">color</font >.
The following red, green, and blue values are in decimal.
Color
aliceblue antiquewhite aqua aquamarine azure beige bisque black blanchedalmond blue blueviolet brown burlywood cadetblue chartreuse chocolate coral cornflowerblue cornsilk crimson cyan darkblue darkcyan darkgoldenrod darkgray darkgreen darkkhaki darkmagenta darkolivegreen darkorange darkorchid darkred darksalmon darkseagreen darkslateblue darkslategray darkturquoise darkviolet deeppink deepskyblue dimgray dodgerblue firebrick floralwhite forestgreen fuchsia gainsboro ghostwhite gold goldenrod gray green greenyellow honeydew hotpink indianred indigo ivory khaki lavender lavenderblush lawngreen lemonchiffon lightblue lightcoral lightcyan lightgoldenrodyellow lightgreen lightgrey lightpink lightsalmon lightseagreen lightskyblue lightslategray lightsteelblue lightyellow lime limegreen linen magenta maroon mediumaquamarine mediumblue mediumorchid mediumpurple mediumseagreen mediumslateblue mediumspringgreen mediumturquoise mediumvioletred midnightblue mintcream mistyrose moccasin navajowhite navy oldlace olive olivedrab orange orangered orchid palegoldenrod palegreen paleturquoise palevioletred papayawhip peachpuff peru pink plum powderblue purple red rosybrown royalblue saddlebrown salmon sandybrown seagreen seashell sienna silver skyblue slateblue slategray snow springgreen steelblue tan teal thistle tomato turquoise violet wheat white whitesmoke yellow yellowgreen |
Red
240 250 0 127 240 245 255 0 255 0 138 165 222 95 127 210 255 100 255 220 0 0 0 184 169 0 189 139 85 255 153 139 233 143 72 47 0 148 255 0 105 30 178 255 34 255 220 248 255 218 128 0 173 240 255 205 75 255 240 230 255 124 255 173 240 224 250 144 211 255 255 32 135 119 176 255 0 50 250 255 128 102 0 186 147 60 123 0 72 199 25 245 255 255 255 0 253 128 107 255 255 218 238 152 175 219 255 255 205 255 221 176 128 255 188 65 139 250 244 46 255 160 192 135 106 112 255 0 70 210 0 216 255 64 238 245 255 245 255 154 |
Green
248 235 255 255 255 245 228 0 235 0 43 42 184 158 255 105 127 149 248 20 255 0 139 134 169 100 183 0 107 140 50 0 150 188 61 79 206 0 20 191 105 144 34 250 139 0 220 248 215 165 128 128 255 255 105 92 0 255 230 230 240 252 250 216 128 255 250 238 211 182 160 178 206 136 196 255 255 205 240 0 0 205 0 85 112 179 104 250 209 21 25 255 228 228 222 0 245 128 142 165 69 112 232 251 238 112 239 218 133 192 160 224 0 0 143 105 69 128 164 139 245 82 192 206 90 128 250 255 130 180 128 191 99 224 130 222 255 245 255 205 |
Blue
255 215 255 212 255 220 196 0 205 255 226 42 135 160 0 30 80 237 220 60 255 139 139 11 169 0 107 139 47 0 204 0 122 143 139 79 209 211 147 255 105 255 34 240 34 255 220 255 0 32 128 0 47 240 180 92 130 240 140 250 245 0 205 230 128 255 210 144 211 193 122 170 250 153 222 224 0 50 230 255 0 170 205 211 219 113 238 154 204 133 112 250 225 181 173 128 230 0 35 0 0 214 170 152 238 147 213 185 63 203 221 230 128 0 143 225 19 114 96 87 238 45 192 235 205 144 250 127 180 140 128 216 71 208 238 179 255 245 0 50 |