Color Chart
Hex Listing
Float Listing
Code Sample
www.easyrgb.com

Color Chart

IndianRed CD5C5C 205, 92, 92 0.804, 0.361, 0.361
LightCoral F08080 240, 128, 128 0.941, 0.502, 0.502
Salmon FA8072 250, 128, 114 0.980, 0.502, 0.447
DarkSalmon E9967A 233, 150, 122 0.914, 0.588, 0.478
LightSalmon FFA07A 255, 160, 122 1.000, 0.627, 0.478
Crimson DC143C 220, 20, 60 0.863, 0.078, 0.235
Red FF0000 255, 0, 0 1.000, 0.000, 0.000
FireBrick B22222 178, 34, 34 0.698, 0.133, 0.133
DarkRed 8B0000 139, 0, 0 0.545, 0.000, 0.000
Pink FFC0CB 255, 192, 203 1.000, 0.753, 0.796
LightPink FFB6C1 255, 182, 193 1.000, 0.714, 0.757
HotPink FF69B4 255, 105, 180 1.000, 0.412, 0.706
DeepPink FF1493 255, 20, 147 1.000, 0.078, 0.576
MediumVioletRed C71585 199, 21, 133 0.780, 0.082, 0.522
PaleVioletRed DB7093 219, 112, 147 0.859, 0.439, 0.576
LightSalmon FFA07A 255, 160, 122 1.000, 0.627, 0.478
Coral FF7F50 255, 127, 80 1.000, 0.498, 0.314
Tomato FF6347 255, 99, 71 1.000, 0.388, 0.278
OrangeRed FF4500 255, 69, 0 1.000, 0.271, 0.000
DarkOrange FF8C00 255, 140, 0 1.000, 0.549, 0.000
Orange FFA500 255, 165, 0 1.000, 0.647, 0.000
Gold FFD700 255, 215, 0 1.000, 0.843, 0.000
Yellow FFFF00 255, 255, 0 1.000, 1.000, 0.000
LightYellow FFFFE0 255, 255, 224 1.000, 1.000, 0.878
LemonChion FFFACD 255, 250, 205 1.000, 0.980, 0.804
LightGoldenrodYellow FAFAD2 250, 250, 210 0.980, 0.980, 0.824
PapayaWhip FFEFD5 255, 239, 213 1.000, 0.937, 0.835
Moccasin FFE4B5 255, 228, 181 1.000, 0.894, 0.710
PeachPu FFDAB9 255, 218, 185 1.000, 0.855, 0.725
PaleGoldenrod EEE8AA 238, 232, 170 0.933, 0.910, 0.667
Khaki F0E68C 240, 230, 140 0.941, 0.902, 0.549
DarkKhaki BDB76B 189, 183, 107 0.741, 0.718, 0.420
Lavender E6E6FA 230, 230, 250 0.902, 0.902, 0.980
Thistle D8BFD8 216, 191, 216 0.847, 0.749, 0.847
Plum DDA0DD 221, 160, 221 0.867, 0.627, 0.867
Violet EE82EE 238, 130, 238 0.933, 0.510, 0.933
Orchid DA70D6 218, 112, 214 0.855, 0.439, 0.839
Fuchsia FF00FF 255, 0, 255 1.000, 0.000, 1.000
Magenta FF00FF 255, 0, 255 1.000, 0.000, 1.000
MediumOrchid BA55D3 186, 85, 211 0.729, 0.333, 0.827
MediumPurple 9370DB 147, 112, 219 0.576, 0.439, 0.859
BlueViolet 8A2BE2 138, 43, 226 0.541, 0.169, 0.886
DarkViolet 9400D3 148, 0, 211 0.580, 0.000, 0.827
DarkOrchid 9932CC 153, 50, 204 0.600, 0.196, 0.800
DarkMagenta 8B008B 139, 0, 139 0.545, 0.000, 0.545
Purple 800080 128, 0, 128 0.502, 0.000, 0.502
Indigo 4B0082 75, 0, 130 0.294, 0.000, 0.510
SlateBlue 6A5ACD 106, 90, 205 0.416, 0.353, 0.804
DarkSlateBlue 483D8B 72, 61, 139 0.282, 0.239, 0.545
GreenYellow ADFF2F 173, 255, 47 0.678, 1.000, 0.184
Chartreuse 7FFF00 127, 255, 0 0.498, 1.000, 0.000
LawnGreen 7CFC00 124, 252, 0 0.486, 0.988, 0.000
Lime 00FF00 0, 255, 0 0.000, 1.000, 0.000
LimeGreen 32CD32 50, 205, 50 0.196, 0.804, 0.196
PaleGreen 98FB98 152, 251, 152 0.596, 0.984, 0.596
LightGreen 90EE90 144, 238, 144 0.565, 0.933, 0.565
MediumSpringGreen 00FA9A 0, 250, 154 0.000, 0.980, 0.604
SpringGreen 00FF7F 0, 255, 127 0.000, 1.000, 0.498
MediumSeaGreen 3CB371 60, 179, 113 0.235, 0.702, 0.443
SeaGreen 2E8B57 46, 139, 87 0.180, 0.545, 0.341
ForestGreen 228B22 34, 139, 34 0.133, 0.545, 0.133
Green 008000 0, 128, 0 0.000, 0.502, 0.000
DarkGreen 006400 0, 100, 0 0.000, 0.392, 0.000
YellowGreen 9ACD32 154, 205, 50 0.604, 0.804, 0.196
OliveDrab 6B8E23 107, 142, 35 0.420, 0.557, 0.137
Olive 808000 128, 128, 0 0.502, 0.502, 0.000
DarkOliveGreen 556B2F 85, 107, 47 0.333, 0.420, 0.184
MediumAquamarine 66CDAA 102, 205, 170 0.400, 0.804, 0.667
DarkSeaGreen 8FBC8F 143, 188, 143 0.561, 0.737, 0.561
LightSeaGreen 20B2AA 32, 178, 170 0.125, 0.698, 0.667
DarkCyan 008B8B 0, 139, 139 0.000, 0.545, 0.545
Teal 008080 0, 128, 128 0.000, 0.502, 0.502
Aqua 00FFFF 0, 255, 255 0.000, 1.000, 1.000
Cyan 00FFFF 0, 255, 255 0.000, 1.000, 1.000
LightCyan E0FFFF 224, 255, 255 0.878, 1.000, 1.000
PaleTurquoise AFEEEE 175, 238, 238 0.686, 0.933, 0.933
Aquamarine 7FFFD4 127, 255, 212 0.498, 1.000, 0.831
Turquoise 40E0D0 64, 224, 208 0.251, 0.878, 0.816
MediumTurquoise 48D1CC 72, 209, 204 0.282, 0.820, 0.800
DarkTurquoise 00CED1 0, 206, 209 0.000, 0.808, 0.820
CadetBlue 5F9EA0 95, 158, 160 0.373, 0.620, 0.627
SteelBlue 4682B4 70, 130, 180 0.275, 0.510, 0.706
LightSteelBlue B0C4DE 176, 196, 222 0.690, 0.769, 0.871
PowderBlue B0E0E6 176, 224, 230 0.690, 0.878, 0.902
LightBlue ADD8E6 173, 216, 230 0.678, 0.847, 0.902
SkyBlue 87CEEB 135, 206, 235 0.529, 0.808, 0.922
LightSkyBlue 87CEFA 135, 206, 250 0.529, 0.808, 0.980
DeepSkyBlue 00BFFF 0, 191, 255 0.000, 0.749, 1.000
DodgerBlue 1E90FF 30, 144, 255 0.118, 0.565, 1.000
CornlowerBlue 6495ED 100, 149, 237 0.392, 0.584, 0.929
MediumSlateBlue 7B68EE 123, 104, 238 0.482, 0.408, 0.933
RoyalBlue 4169E1 65, 105, 225 0.255, 0.412, 0.882
Blue 0000FF 0, 0, 255 0.000, 0.000, 1.000
MediumBlue 0000CD 0, 0, 205 0.000, 0.000, 0.804
DarkBlue 00008B 0, 0, 139 0.000, 0.000, 0.545
Navy 000080 0, 0, 128 0.000, 0.000, 0.502
MidnightBlue 191970 25, 25, 112 0.098, 0.098, 0.439
Cornsilk FFF8DC 255, 248, 220 1.000, 0.973, 0.863
BlanchedAlmond FFEBCD 255, 235, 205 1.000, 0.922, 0.804
Bisque FFE4C4 255, 228, 196 1.000, 0.894, 0.769
NavajoWhite FFDEAD 255, 222, 173 1.000, 0.871, 0.678
Wheat F5DEB3 245, 222, 179 0.961, 0.871, 0.702
BurlyWood DEB887 222, 184, 135 0.871, 0.722, 0.529
Tan D2B48C 210, 180, 140 0.824, 0.706, 0.549
RosyBrown BC8F8F 188, 143, 143 0.737, 0.561, 0.561
SandyBrown F4A460 244, 164, 96 0.957, 0.643, 0.376
Goldenrod DAA520 218, 165, 32 0.855, 0.647, 0.125
DarkGoldenrod B8860B 184, 134, 11 0.722, 0.525, 0.043
Peru CD853F 205, 133, 63 0.804, 0.522, 0.247
Chocolate D2691E 210, 105, 30 0.824, 0.412, 0.118
SaddleBrown 8B4513 139, 69, 19 0.545, 0.271, 0.075
Sienna A0522D 160, 82, 45 0.627, 0.322, 0.176
Brown A52A2A 165, 42, 42 0.647, 0.165, 0.165
Maroon 800000 128, 0, 0 0.502, 0.000, 0.000
White FFFFFF 255, 255, 255 1.000, 1.000, 1.000
Snow FFFAFA 255, 250, 250 1.000, 0.980, 0.980
Honeydew F0FFF0 240, 255, 240 0.941, 1.000, 0.941
MintCream F5FFFA 245, 255, 250 0.961, 1.000, 0.980
Azure F0FFFF 240, 255, 255 0.941, 1.000, 1.000
AliceBlue F0F8FF 240, 248, 255 0.941, 0.973, 1.000
GhostWhite F8F8FF 248, 248, 255 0.973, 0.973, 1.000
WhiteSmoke F5F5F5 245, 245, 245 0.961, 0.961, 0.961
Seashell FFF5EE 255, 245, 238 1.000, 0.961, 0.933
Beige F5F5DC 245, 245, 220 0.961, 0.961, 0.863
OldLace FDF5E6 253, 245, 230 0.992, 0.961, 0.902
FloralWhite FFFAF0 255, 250, 240 1.000, 0.980, 0.941
Ivory FFFFF0 255, 255, 240 1.000, 1.000, 0.941
AntiqueWhite FAEBD7 250, 235, 215 0.980, 0.922, 0.843
Linen FAF0E6 250, 240, 230 0.980, 0.941, 0.902
LavenderBlush FFF0F5 255, 240, 245 1.000, 0.941, 0.961
MistyRose FFE4E1 255, 228, 225 1.000, 0.894, 0.882
Gainsboro DCDCDC 220, 220, 220 0.863, 0.863, 0.863
LightGrey D3D3D3 211, 211, 211 0.827, 0.827, 0.827
Silver C0C0C0 192, 192, 192 0.753, 0.753, 0.753
DarkGray A9A9A9 169, 169, 169 0.663, 0.663, 0.663
Gray 808080 128, 128, 128 0.502, 0.502, 0.502
DimGray 696969 105, 105, 105 0.412, 0.412, 0.412
LightSlateGray 778899 119, 136, 153 0.467, 0.533, 0.600
SlateGray 708090 112, 128, 144 0.439, 0.502, 0.565
DarkSlateGray 2F4F4F 47, 79, 79 0.184, 0.310, 0.310
Black 000000 0, 0, 0 0.000, 0.000, 0.000



Hex Listing

aliceblue = 0xf0f8ff;
antiquewhite = 0xfaebd7;
aqua = 0x00ffff;
aquamarine = 0x7fffd4;
azure = 0xf0ffff;
beige = 0xf5f5dc;
bisque = 0xffe4c4;
black = 0x000000;
blanchedalmond = 0xffebcd;
blue = 0x0000ff;
blueviolet = 0x8a2be2;
brown = 0xa52a2a;
burlywood = 0xdeb887;
cadetblue = 0x5f9ea0;
chartreuse = 0x7fff00;
chocolate = 0xd2691e;
coral = 0xff7f50;
cornflowerblue = 0x6495ed;
cornsilk = 0xfff8dc;
crimson = 0xdc143c;
cyan = 0x00ffff;
darkblue = 0x00008b;
darkcyan = 0x008b8b;
darkgoldenrod = 0xb8860b;
darkgray = 0xa9a9a9;
darkgreen = 0x006400;
darkgrey = 0xa9a9a9;
darkkhaki = 0xbdb76b;
darkmagenta = 0x8b008b;
darkolivegreen = 0x556b2f;
darkorange = 0xff8c00;
darkorchid = 0x9932cc;
darkred = 0x8b0000;
darksalmon = 0xe9967a;
darkseagreen = 0x8fbc8f;
darkslateblue = 0x483d8b;
darkslategray = 0x2f4f4f;
darkslategrey = 0x2f4f4f;
darkturquoise = 0x00ced1;
darkviolet = 0x9400d3;
deeppink = 0xff1493;
deepskyblue = 0x00bfff;
dimgray = 0x696969;
dimgrey = 0x696969;
dodgerblue = 0x1e90ff;
firebrick = 0xb22222;
floralwhite = 0xfffaf0;
forestgreen = 0x228b22;
fuchsia = 0xff00ff;
gainsboro = 0xdcdcdc;
ghostwhite = 0xf8f8ff;
gold = 0xffd700;
goldenrod = 0xdaa520;
gray = 0x808080;
green = 0x008000;
greenyellow = 0xadff2f;
grey = 0x808080;
honeydew = 0xf0fff0;
hotpink = 0xff69b4;
indianred = 0xcd5c5c;
indigo = 0x4b0082;
ivory = 0xfffff0;
khaki = 0xf0e68c;
lavender = 0xe6e6fa;
lavenderblush = 0xfff0f5;
lawngreen = 0x7cfc00;
lemonchiffon = 0xfffacd;
lightblue = 0xadd8e6;
lightcoral = 0xf08080;
lightcyan = 0xe0ffff;
lightgoldenrodyellow = 0xfafad2;
lightgray = 0xd3d3d3;
lightgreen = 0x90ee90;
lightgrey = 0xd3d3d3;
lightpink = 0xffb6c1;
lightsalmon = 0xffa07a;
lightseagreen = 0x20b2aa;
lightskyblue = 0x87cefa;
lightslategray = 0x778899;
lightslategrey = 0x778899;
lightsteelblue = 0xb0c4de;
lightyellow = 0xffffe0;
lime = 0x00ff00;
limegreen = 0x32cd32;
linen = 0xfaf0e6;
magenta = 0xff00ff;
maroon = 0x800000;
mediumaquamarine = 0x66cdaa;
mediumblue = 0x0000cd;
mediumorchid = 0xba55d3;
mediumpurple = 0x9370db;
mediumseagreen = 0x3cb371;
mediumslateblue = 0x7b68ee;
mediumspringgreen = 0x00fa9a;
mediumturquoise = 0x48d1cc;
mediumvioletred = 0xc71585;
midnightblue = 0x191970;
mintcream = 0xf5fffa;
mistyrose = 0xffe4e1;
moccasin = 0xffe4b5;
navajowhite = 0xffdead;
navy = 0x000080;
oldlace = 0xfdf5e6;
olive = 0x808000;
olivedrab = 0x6b8e23;
orange = 0xffa500;
orangered = 0xff4500;
orchid = 0xda70d6;
palegoldenrod = 0xeee8aa;
palegreen = 0x98fb98;
paleturquoise = 0xafeeee;
palevioletred = 0xdb7093;
papayawhip = 0xffefd5;
peachpuff = 0xffdab9;
peru = 0xcd853f;
pink = 0xffc0cb;
plum = 0xdda0dd;
powderblue = 0xb0e0e6;
purple = 0x800080;
red = 0xff0000;
rosybrown = 0xbc8f8f;
royalblue = 0x4169e1;
saddlebrown = 0x8b4513;
salmon = 0xfa8072;
sandybrown = 0xf4a460;
seagreen = 0x2e8b57;
seashell = 0xfff5ee;
sienna = 0xa0522d;
silver = 0xc0c0c0;
skyblue = 0x87ceeb;
slateblue = 0x6a5acd;
slategray = 0x708090;
slategrey = 0x708090;
snow = 0xfffafa;
springgreen = 0x00ff7f;
steelblue = 0x4682b4;
tan = 0xd2b48c;
teal = 0x008080;
thistle = 0xd8bfd8;
tomato = 0xff6347;
turquoise = 0x40e0d0;
violet = 0xee82ee;
wheat = 0xf5deb3;
white = 0xffffff;
whitesmoke = 0xf5f5f5;
yellow = 0xffff00;
yellowgreen = 0x9acd32;



Float Listing

aliceblue = {0.941f, 0.973f, 1.000f};
antiquewhite = {0.980f, 0.922f, 0.843f};
aqua = {0.000f, 1.000f, 1.000f};
aquamarine = {0.498f, 1.000f, 0.831f};
azure = {0.941f, 1.000f, 1.000f};
beige = {0.961f, 0.961f, 0.863f};
bisque = {1.000f, 0.894f, 0.769f};
black = {0.000f, 0.000f, 0.000f};
blanchedalmond = {1.000f, 0.922f, 0.804f};
blue = {0.000f, 0.000f, 1.000f};
blueviolet = {0.541f, 0.169f, 0.886f};
brown = {0.647f, 0.165f, 0.165f};
burlywood = {0.871f, 0.722f, 0.529f};
cadetblue = {0.373f, 0.620f, 0.627f};
chartreuse = {0.498f, 1.000f, 0.000f};
chocolate = {0.824f, 0.412f, 0.118f};
coral = {1.000f, 0.498f, 0.314f};
cornflowerblue = {0.392f, 0.584f, 0.929f};
cornsilk = {1.000f, 0.973f, 0.863f};
crimson = {0.863f, 0.078f, 0.235f};
cyan = {0.000f, 1.000f, 1.000f};
darkblue = {0.000f, 0.000f, 0.545f};
darkcyan = {0.000f, 0.545f, 0.545f};
darkgoldenrod = {0.722f, 0.525f, 0.043f};
darkgray = {0.663f, 0.663f, 0.663f};
darkgreen = {0.000f, 0.392f, 0.000f};
darkgrey = {0.663f, 0.663f, 0.663f};
darkkhaki = {0.741f, 0.718f, 0.420f};
darkmagenta = {0.545f, 0.000f, 0.545f};
darkolivegreen = {0.333f, 0.420f, 0.184f};
darkorange = {1.000f, 0.549f, 0.000f};
darkorchid = {0.600f, 0.196f, 0.800f};
darkred = {0.545f, 0.000f, 0.000f};
darksalmon = {0.914f, 0.588f, 0.478f};
darkseagreen = {0.561f, 0.737f, 0.561f};
darkslateblue = {0.282f, 0.239f, 0.545f};
darkslategray = {0.184f, 0.310f, 0.310f};
darkslategrey = {0.184f, 0.310f, 0.310f};
darkturquoise = {0.000f, 0.808f, 0.820f};
darkviolet = {0.580f, 0.000f, 0.827f};
deeppink = {1.000f, 0.078f, 0.576f};
deepskyblue = {0.000f, 0.749f, 1.000f};
dimgray = {0.412f, 0.412f, 0.412f};
dimgrey = {0.412f, 0.412f, 0.412f};
dodgerblue = {0.118f, 0.565f, 1.000f};
firebrick = {0.698f, 0.133f, 0.133f};
floralwhite = {1.000f, 0.980f, 0.941f};
forestgreen = {0.133f, 0.545f, 0.133f};
fuchsia = {1.000f, 0.000f, 1.000f};
gainsboro = {0.863f, 0.863f, 0.863f};
ghostwhite = {0.973f, 0.973f, 1.000f};
gold = {1.000f, 0.843f, 0.000f};
goldenrod = {0.855f, 0.647f, 0.125f};
gray = {0.502f, 0.502f, 0.502f};
green = {0.000f, 0.502f, 0.000f};
greenyellow = {0.678f, 1.000f, 0.184f};
grey = {0.502f, 0.502f, 0.502f};
honeydew = {0.941f, 1.000f, 0.941f};
hotpink = {1.000f, 0.412f, 0.706f};
indianred = {0.804f, 0.361f, 0.361f};
indigo = {0.294f, 0.000f, 0.510f};
ivory = {1.000f, 1.000f, 0.941f};
khaki = {0.941f, 0.902f, 0.549f};
lavender = {0.902f, 0.902f, 0.980f};
lavenderblush = {1.000f, 0.941f, 0.961f};
lawngreen = {0.486f, 0.988f, 0.000f};
lemonchiffon = {1.000f, 0.980f, 0.804f};
lightblue = {0.678f, 0.847f, 0.902f};
lightcoral = {0.941f, 0.502f, 0.502f};
lightcyan = {0.878f, 1.000f, 1.000f};
lightgoldenrodyellow = {0.980f, 0.980f, 0.824f};
lightgray = {0.827f, 0.827f, 0.827f};
lightgreen = {0.565f, 0.933f, 0.565f};
lightgrey = {0.827f, 0.827f, 0.827f};
lightpink = {1.000f, 0.714f, 0.757f};
lightsalmon = {1.000f, 0.627f, 0.478f};
lightseagreen = {0.125f, 0.698f, 0.667f};
lightskyblue = {0.529f, 0.808f, 0.980f};
lightslategray = {0.467f, 0.533f, 0.600f};
lightslategrey = {0.467f, 0.533f, 0.600f};
lightsteelblue = {0.690f, 0.769f, 0.871f};
lightyellow = {1.000f, 1.000f, 0.878f};
lime = {0.000f, 1.000f, 0.000f};
limegreen = {0.196f, 0.804f, 0.196f};
linen = {0.980f, 0.941f, 0.902f};
magenta = {1.000f, 0.000f, 1.000f};
maroon = {0.502f, 0.000f, 0.000f};
mediumaquamarine = {0.400f, 0.804f, 0.667f};
mediumblue = {0.000f, 0.000f, 0.804f};
mediumorchid = {0.729f, 0.333f, 0.827f};
mediumpurple = {0.576f, 0.439f, 0.859f};
mediumseagreen = {0.235f, 0.702f, 0.443f};
mediumslateblue = {0.482f, 0.408f, 0.933f};
mediumspringgreen = {0.000f, 0.980f, 0.604f};
mediumturquoise = {0.282f, 0.820f, 0.800f};
mediumvioletred = {0.780f, 0.082f, 0.522f};
midnightblue = {0.098f, 0.098f, 0.439f};
mintcream = {0.961f, 1.000f, 0.980f};
mistyrose = {1.000f, 0.894f, 0.882f};
moccasin = {1.000f, 0.894f, 0.710f};
navajowhite = {1.000f, 0.871f, 0.678f};
navy = {0.000f, 0.000f, 0.502f};
oldlace = {0.992f, 0.961f, 0.902f};
olive = {0.502f, 0.502f, 0.000f};
olivedrab = {0.420f, 0.557f, 0.137f};
orange = {1.000f, 0.647f, 0.000f};
orangered = {1.000f, 0.271f, 0.000f};
orchid = {0.855f, 0.439f, 0.839f};
palegoldenrod = {0.933f, 0.910f, 0.667f};
palegreen = {0.596f, 0.984f, 0.596f};
paleturquoise = {0.686f, 0.933f, 0.933f};
palevioletred = {0.859f, 0.439f, 0.576f};
papayawhip = {1.000f, 0.937f, 0.835f};
peachpuff = {1.000f, 0.855f, 0.725f};
peru = {0.804f, 0.522f, 0.247f};
pink = {1.000f, 0.753f, 0.796f};
plum = {0.867f, 0.627f, 0.867f};
powderblue = {0.690f, 0.878f, 0.902f};
purple = {0.502f, 0.000f, 0.502f};
red = {1.000f, 0.000f, 0.000f};
rosybrown = {0.737f, 0.561f, 0.561f};
royalblue = {0.255f, 0.412f, 0.882f};
saddlebrown = {0.545f, 0.271f, 0.075f};
salmon = {0.980f, 0.502f, 0.447f};
sandybrown = {0.957f, 0.643f, 0.376f};
seagreen = {0.180f, 0.545f, 0.341f};
seashell = {1.000f, 0.961f, 0.933f};
sienna = {0.627f, 0.322f, 0.176f};
silver = {0.753f, 0.753f, 0.753f};
skyblue = {0.529f, 0.808f, 0.922f};
slateblue = {0.416f, 0.353f, 0.804f};
slategray = {0.439f, 0.502f, 0.565f};
slategrey = {0.439f, 0.502f, 0.565f};
snow = {1.000f, 0.980f, 0.980f};
springgreen = {0.000f, 1.000f, 0.498f};
steelblue = {0.275f, 0.510f, 0.706f};
tan = {0.824f, 0.706f, 0.549f};
teal = {0.000f, 0.502f, 0.502f};
thistle = {0.847f, 0.749f, 0.847f};
tomato = {1.000f, 0.388f, 0.278f};
turquoise = {0.251f, 0.878f, 0.816f};
violet = {0.933f, 0.510f, 0.933f};
wheat = {0.961f, 0.871f, 0.702f};
white = {1.000f, 1.000f, 1.000f};
whitesmoke = {0.961f, 0.961f, 0.961f};
yellow = {1.000f, 1.000f, 0.000f};
yellowgreen = {0.604f, 0.804f, 0.196f};



Code Sample

// Obtains a color from the color wheel.
Color::Color(float theta)
{
    while (theta < 0)
        theta += 360;
 
    while (theta >= 360)
        theta -= 360;
 
    if (theta < 120) {
        g = theta / 120;
        r = 1 - g;
        b = 0;
    } else if (theta < 240) {    
        b = (theta - 120) / 120;
        g = 1 - b;
        r = 0;
    } else {
        r = (theta - 240) / 120;
        b = 1 - r;
        g = 0;
    }
}
 
void main()
{
    // ...
    Color pastel(60.0f + (rand() % 90) - 45);
    object->outlineColor = pastel;
    pastel.IncreaseBrightness(0.5);
    object->fillColor = pastel;
    // ...
}