Python Color Constants Module
See Python: Tips and Tricks for similar articles.For Pygame and other graphics work, it’s helpful to have color constants that hold the color RGB values. I couldn’t find anything like this, so I created a color_constants module that:
- Contains constants for 551 named colors* (e.g, as named tuples:
Color = namedtuple('RGB','red, green, blue')
- Extends the
Color
class to include a method for getting the hex formatted color:class RGB(Color): def hex_format(self): return '#{:02X}{:02X}{:02X}'.format(self.red,self.green,self.blue)
- Stores these constants in an
OrderedDict
.
The colors are shown in the table below and the full code is shown below that.
Color Name | Hex Value | RGB Value | Sample |
---|---|---|---|
aliceblue | #F0F8FF | RGB(240,248,255) | |
antiquewhite | #FAEBD7 | RGB(250,235,215) | |
antiquewhite1 | #FFEFDB | RGB(255,239,219) | |
antiquewhite2 | #EEDFCC | RGB(238,223,204) | |
antiquewhite3 | #CDC0B0 | RGB(205,192,176) | |
antiquewhite4 | #8B8378 | RGB(139,131,120) | |
aqua | #00FFFF | RGB(0,255,255) | |
aquamarine1 | #7FFFD4 | RGB(127,255,212) | |
aquamarine2 | #76EEC6 | RGB(118,238,198) | |
aquamarine3 | #66CDAA | RGB(102,205,170) | |
aquamarine4 | #458B74 | RGB(69,139,116) | |
azure1 | #F0FFFF | RGB(240,255,255) | |
azure2 | #E0EEEE | RGB(224,238,238) | |
azure3 | #C1CDCD | RGB(193,205,205) | |
azure4 | #838B8B | RGB(131,139,139) | |
banana | #E3CF57 | RGB(227,207,87) | |
beige | #F5F5DC | RGB(245,245,220) | |
bisque1 | #FFE4C4 | RGB(255,228,196) | |
bisque2 | #EED5B7 | RGB(238,213,183) | |
bisque3 | #CDB79E | RGB(205,183,158) | |
bisque4 | #8B7D6B | RGB(139,125,107) | |
black | #000000 | RGB(0,0,0) | |
blanchedalmond | #FFEBCD | RGB(255,235,205) | |
blue | #0000FF | RGB(0,0,255) | |
blue2 | #0000EE | RGB(0,0,238) | |
blue3 | #0000CD | RGB(0,0,205) | |
blue4 | #00008B | RGB(0,0,139) | |
blueviolet | #8A2BE2 | RGB(138,43,226) | |
brick | #9C661F | RGB(156,102,31) | |
brown | #A52A2A | RGB(165,42,42) | |
brown1 | #FF4040 | RGB(255,64,64) | |
brown2 | #EE3B3B | RGB(238,59,59) | |
brown3 | #CD3333 | RGB(205,51,51) | |
brown4 | #8B2323 | RGB(139,35,35) | |
burlywood | #DEB887 | RGB(222,184,135) | |
burlywood1 | #FFD39B | RGB(255,211,155) | |
burlywood2 | #EEC591 | RGB(238,197,145) | |
burlywood3 | #CDAA7D | RGB(205,170,125) | |
burlywood4 | #8B7355 | RGB(139,115,85) | |
burntsienna | #8A360F | RGB(138,54,15) | |
burntumber | #8A3324 | RGB(138,51,36) | |
cadetblue | #5F9EA0 | RGB(95,158,160) | |
cadetblue1 | #98F5FF | RGB(152,245,255) | |
cadetblue2 | #8EE5EE | RGB(142,229,238) | |
cadetblue3 | #7AC5CD | RGB(122,197,205) | |
cadetblue4 | #53868B | RGB(83,134,139) | |
cadmiumorange | #FF6103 | RGB(255,97,3) | |
cadmiumyellow | #FF9912 | RGB(255,153,18) | |
carrot | #ED9121 | RGB(237,145,33) | |
chartreuse1 | #7FFF00 | RGB(127,255,0) | |
chartreuse2 | #76EE00 | RGB(118,238,0) | |
chartreuse3 | #66CD00 | RGB(102,205,0) | |
chartreuse4 | #458B00 | RGB(69,139,0) | |
chocolate | #D2691E | RGB(210,105,30) | |
chocolate1 | #FF7F24 | RGB(255,127,36) | |
chocolate2 | #EE7621 | RGB(238,118,33) | |
chocolate3 | #CD661D | RGB(205,102,29) | |
chocolate4 | #8B4513 | RGB(139,69,19) | |
cobalt | #3D59AB | RGB(61,89,171) | |
cobaltgreen | #3D9140 | RGB(61,145,64) | |
coldgrey | #808A87 | RGB(128,138,135) | |
coral | #FF7F50 | RGB(255,127,80) | |
coral1 | #FF7256 | RGB(255,114,86) | |
coral2 | #EE6A50 | RGB(238,106,80) | |
coral3 | #CD5B45 | RGB(205,91,69) | |
coral4 | #8B3E2F | RGB(139,62,47) | |
cornflowerblue | #6495ED | RGB(100,149,237) | |
cornsilk1 | #FFF8DC | RGB(255,248,220) | |
cornsilk2 | #EEE8CD | RGB(238,232,205) | |
cornsilk3 | #CDC8B1 | RGB(205,200,177) | |
cornsilk4 | #8B8878 | RGB(139,136,120) | |
crimson | #DC143C | RGB(220,20,60) | |
cyan2 | #00EEEE | RGB(0,238,238) | |
cyan3 | #00CDCD | RGB(0,205,205) | |
cyan4 | #008B8B | RGB(0,139,139) | |
darkgoldenrod | #B8860B | RGB(184,134,11) | |
darkgoldenrod1 | #FFB90F | RGB(255,185,15) | |
darkgoldenrod2 | #EEAD0E | RGB(238,173,14) | |
darkgoldenrod3 | #CD950C | RGB(205,149,12) | |
darkgoldenrod4 | #8B6508 | RGB(139,101,8) | |
darkgray | #A9A9A9 | RGB(169,169,169) | |
darkgreen | #006400 | RGB(0,100,0) | |
darkkhaki | #BDB76B | RGB(189,183,107) | |
darkolivegreen | #556B2F | RGB(85,107,47) | |
darkolivegreen1 | #CAFF70 | RGB(202,255,112) | |
darkolivegreen2 | #BCEE68 | RGB(188,238,104) | |
darkolivegreen3 | #A2CD5A | RGB(162,205,90) | |
darkolivegreen4 | #6E8B3D | RGB(110,139,61) | |
darkorange | #FF8C00 | RGB(255,140,0) | |
darkorange1 | #FF7F00 | RGB(255,127,0) | |
darkorange2 | #EE7600 | RGB(238,118,0) | |
darkorange3 | #CD6600 | RGB(205,102,0) | |
darkorange4 | #8B4500 | RGB(139,69,0) | |
darkorchid | #9932CC | RGB(153,50,204) | |
darkorchid1 | #BF3EFF | RGB(191,62,255) | |
darkorchid2 | #B23AEE | RGB(178,58,238) | |
darkorchid3 | #9A32CD | RGB(154,50,205) | |
darkorchid4 | #68228B | RGB(104,34,139) | |
darksalmon | #E9967A | RGB(233,150,122) | |
darkseagreen | #8FBC8F | RGB(143,188,143) | |
darkseagreen1 | #C1FFC1 | RGB(193,255,193) | |
darkseagreen2 | #B4EEB4 | RGB(180,238,180) | |
darkseagreen3 | #9BCD9B | RGB(155,205,155) | |
darkseagreen4 | #698B69 | RGB(105,139,105) | |
darkslateblue | #483D8B | RGB(72,61,139) | |
darkslategray | #2F4F4F | RGB(47,79,79) | |
darkslategray1 | #97FFFF | RGB(151,255,255) | |
darkslategray2 | #8DEEEE | RGB(141,238,238) | |
darkslategray3 | #79CDCD | RGB(121,205,205) | |
darkslategray4 | #528B8B | RGB(82,139,139) | |
darkturquoise | #00CED1 | RGB(0,206,209) | |
darkviolet | #9400D3 | RGB(148,0,211) | |
deeppink1 | #FF1493 | RGB(255,20,147) | |
deeppink2 | #EE1289 | RGB(238,18,137) | |
deeppink3 | #CD1076 | RGB(205,16,118) | |
deeppink4 | #8B0A50 | RGB(139,10,80) | |
deepskyblue1 | #00BFFF | RGB(0,191,255) | |
deepskyblue2 | #00B2EE | RGB(0,178,238) | |
deepskyblue3 | #009ACD | RGB(0,154,205) | |
deepskyblue4 | #00688B | RGB(0,104,139) | |
dimgray | #696969 | RGB(105,105,105) | |
dodgerblue1 | #1E90FF | RGB(30,144,255) | |
dodgerblue2 | #1C86EE | RGB(28,134,238) | |
dodgerblue3 | #1874CD | RGB(24,116,205) | |
dodgerblue4 | #104E8B | RGB(16,78,139) | |
eggshell | #FCE6C9 | RGB(252,230,201) | |
emeraldgreen | #00C957 | RGB(0,201,87) | |
firebrick | #B22222 | RGB(178,34,34) | |
firebrick1 | #FF3030 | RGB(255,48,48) | |
firebrick2 | #EE2C2C | RGB(238,44,44) | |
firebrick3 | #CD2626 | RGB(205,38,38) | |
firebrick4 | #8B1A1A | RGB(139,26,26) | |
flesh | #FF7D40 | RGB(255,125,64) | |
floralwhite | #FFFAF0 | RGB(255,250,240) | |
forestgreen | #228B22 | RGB(34,139,34) | |
gainsboro | #DCDCDC | RGB(220,220,220) | |
ghostwhite | #F8F8FF | RGB(248,248,255) | |
gold1 | #FFD700 | RGB(255,215,0) | |
gold2 | #EEC900 | RGB(238,201,0) | |
gold3 | #CDAD00 | RGB(205,173,0) | |
gold4 | #8B7500 | RGB(139,117,0) | |
goldenrod | #DAA520 | RGB(218,165,32) | |
goldenrod1 | #FFC125 | RGB(255,193,37) | |
goldenrod2 | #EEB422 | RGB(238,180,34) | |
goldenrod3 | #CD9B1D | RGB(205,155,29) | |
goldenrod4 | #8B6914 | RGB(139,105,20) | |
gray | #808080 | RGB(128,128,128) | |
gray1 | #030303 | RGB(3,3,3) | |
gray10 | #1A1A1A | RGB(26,26,26) | |
gray11 | #1C1C1C | RGB(28,28,28) | |
gray12 | #1F1F1F | RGB(31,31,31) | |
gray13 | #212121 | RGB(33,33,33) | |
gray14 | #242424 | RGB(36,36,36) | |
gray15 | #262626 | RGB(38,38,38) | |
gray16 | #292929 | RGB(41,41,41) | |
gray17 | #2B2B2B | RGB(43,43,43) | |
gray18 | #2E2E2E | RGB(46,46,46) | |
gray19 | #303030 | RGB(48,48,48) | |
gray2 | #050505 | RGB(5,5,5) | |
gray20 | #333333 | RGB(51,51,51) | |
gray21 | #363636 | RGB(54,54,54) | |
gray22 | #383838 | RGB(56,56,56) | |
gray23 | #3B3B3B | RGB(59,59,59) | |
gray24 | #3D3D3D | RGB(61,61,61) | |
gray25 | #404040 | RGB(64,64,64) | |
gray26 | #424242 | RGB(66,66,66) | |
gray27 | #454545 | RGB(69,69,69) | |
gray28 | #474747 | RGB(71,71,71) | |
gray29 | #4A4A4A | RGB(74,74,74) | |
gray3 | #080808 | RGB(8,8,8) | |
gray30 | #4D4D4D | RGB(77,77,77) | |
gray31 | #4F4F4F | RGB(79,79,79) | |
gray32 | #525252 | RGB(82,82,82) | |
gray33 | #545454 | RGB(84,84,84) | |
gray34 | #575757 | RGB(87,87,87) | |
gray35 | #595959 | RGB(89,89,89) | |
gray36 | #5C5C5C | RGB(92,92,92) | |
gray37 | #5E5E5E | RGB(94,94,94) | |
gray38 | #616161 | RGB(97,97,97) | |
gray39 | #636363 | RGB(99,99,99) | |
gray4 | #0A0A0A | RGB(10,10,10) | |
gray40 | #666666 | RGB(102,102,102) | |
gray42 | #6B6B6B | RGB(107,107,107) | |
gray43 | #6E6E6E | RGB(110,110,110) | |
gray44 | #707070 | RGB(112,112,112) | |
gray45 | #737373 | RGB(115,115,115) | |
gray46 | #757575 | RGB(117,117,117) | |
gray47 | #787878 | RGB(120,120,120) | |
gray48 | #7A7A7A | RGB(122,122,122) | |
gray49 | #7D7D7D | RGB(125,125,125) | |
gray5 | #0D0D0D | RGB(13,13,13) | |
gray50 | #7F7F7F | RGB(127,127,127) | |
gray51 | #828282 | RGB(130,130,130) | |
gray52 | #858585 | RGB(133,133,133) | |
gray53 | #878787 | RGB(135,135,135) | |
gray54 | #8A8A8A | RGB(138,138,138) | |
gray55 | #8C8C8C | RGB(140,140,140) | |
gray56 | #8F8F8F | RGB(143,143,143) | |
gray57 | #919191 | RGB(145,145,145) | |
gray58 | #949494 | RGB(148,148,148) | |
gray59 | #969696 | RGB(150,150,150) | |
gray6 | #0F0F0F | RGB(15,15,15) | |
gray60 | #999999 | RGB(153,153,153) | |
gray61 | #9C9C9C | RGB(156,156,156) | |
gray62 | #9E9E9E | RGB(158,158,158) | |
gray63 | #A1A1A1 | RGB(161,161,161) | |
gray64 | #A3A3A3 | RGB(163,163,163) | |
gray65 | #A6A6A6 | RGB(166,166,166) | |
gray66 | #A8A8A8 | RGB(168,168,168) | |
gray67 | #ABABAB | RGB(171,171,171) | |
gray68 | #ADADAD | RGB(173,173,173) | |
gray69 | #B0B0B0 | RGB(176,176,176) | |
gray7 | #121212 | RGB(18,18,18) | |
gray70 | #B3B3B3 | RGB(179,179,179) | |
gray71 | #B5B5B5 | RGB(181,181,181) | |
gray72 | #B8B8B8 | RGB(184,184,184) | |
gray73 | #BABABA | RGB(186,186,186) | |
gray74 | #BDBDBD | RGB(189,189,189) | |
gray75 | #BFBFBF | RGB(191,191,191) | |
gray76 | #C2C2C2 | RGB(194,194,194) | |
gray77 | #C4C4C4 | RGB(196,196,196) | |
gray78 | #C7C7C7 | RGB(199,199,199) | |
gray79 | #C9C9C9 | RGB(201,201,201) | |
gray8 | #141414 | RGB(20,20,20) | |
gray80 | #CCCCCC | RGB(204,204,204) | |
gray81 | #CFCFCF | RGB(207,207,207) | |
gray82 | #D1D1D1 | RGB(209,209,209) | |
gray83 | #D4D4D4 | RGB(212,212,212) | |
gray84 | #D6D6D6 | RGB(214,214,214) | |
gray85 | #D9D9D9 | RGB(217,217,217) | |
gray86 | #DBDBDB | RGB(219,219,219) | |
gray87 | #DEDEDE | RGB(222,222,222) | |
gray88 | #E0E0E0 | RGB(224,224,224) | |
gray89 | #E3E3E3 | RGB(227,227,227) | |
gray9 | #171717 | RGB(23,23,23) | |
gray90 | #E5E5E5 | RGB(229,229,229) | |
gray91 | #E8E8E8 | RGB(232,232,232) | |
gray92 | #EBEBEB | RGB(235,235,235) | |
gray93 | #EDEDED | RGB(237,237,237) | |
gray94 | #F0F0F0 | RGB(240,240,240) | |
gray95 | #F2F2F2 | RGB(242,242,242) | |
gray97 | #F7F7F7 | RGB(247,247,247) | |
gray98 | #FAFAFA | RGB(250,250,250) | |
gray99 | #FCFCFC | RGB(252,252,252) | |
green | #008000 | RGB(0,128,0) | |
green1 | #00FF00 | RGB(0,255,0) | |
green2 | #00EE00 | RGB(0,238,0) | |
green3 | #00CD00 | RGB(0,205,0) | |
green4 | #008B00 | RGB(0,139,0) | |
greenyellow | #ADFF2F | RGB(173,255,47) | |
honeydew1 | #F0FFF0 | RGB(240,255,240) | |
honeydew2 | #E0EEE0 | RGB(224,238,224) | |
honeydew3 | #C1CDC1 | RGB(193,205,193) | |
honeydew4 | #838B83 | RGB(131,139,131) | |
hotpink | #FF69B4 | RGB(255,105,180) | |
hotpink1 | #FF6EB4 | RGB(255,110,180) | |
hotpink2 | #EE6AA7 | RGB(238,106,167) | |
hotpink3 | #CD6090 | RGB(205,96,144) | |
hotpink4 | #8B3A62 | RGB(139,58,98) | |
indianred | #CD5C5C | RGB(205,92,92) | |
indianred1 | #FF6A6A | RGB(255,106,106) | |
indianred2 | #EE6363 | RGB(238,99,99) | |
indianred3 | #CD5555 | RGB(205,85,85) | |
indianred4 | #8B3A3A | RGB(139,58,58) | |
indigo | #4B0082 | RGB(75,0,130) | |
ivory1 | #FFFFF0 | RGB(255,255,240) | |
ivory2 | #EEEEE0 | RGB(238,238,224) | |
ivory3 | #CDCDC1 | RGB(205,205,193) | |
ivory4 | #8B8B83 | RGB(139,139,131) | |
ivoryblack | #292421 | RGB(41,36,33) | |
khaki | #F0E68C | RGB(240,230,140) | |
khaki1 | #FFF68F | RGB(255,246,143) | |
khaki2 | #EEE685 | RGB(238,230,133) | |
khaki3 | #CDC673 | RGB(205,198,115) | |
khaki4 | #8B864E | RGB(139,134,78) | |
lavender | #E6E6FA | RGB(230,230,250) | |
lavenderblush1 | #FFF0F5 | RGB(255,240,245) | |
lavenderblush2 | #EEE0E5 | RGB(238,224,229) | |
lavenderblush3 | #CDC1C5 | RGB(205,193,197) | |
lavenderblush4 | #8B8386 | RGB(139,131,134) | |
lawngreen | #7CFC00 | RGB(124,252,0) | |
lemonchiffon1 | #FFFACD | RGB(255,250,205) | |
lemonchiffon2 | #EEE9BF | RGB(238,233,191) | |
lemonchiffon3 | #CDC9A5 | RGB(205,201,165) | |
lemonchiffon4 | #8B8970 | RGB(139,137,112) | |
lightblue | #ADD8E6 | RGB(173,216,230) | |
lightblue1 | #BFEFFF | RGB(191,239,255) | |
lightblue2 | #B2DFEE | RGB(178,223,238) | |
lightblue3 | #9AC0CD | RGB(154,192,205) | |
lightblue4 | #68838B | RGB(104,131,139) | |
lightcoral | #F08080 | RGB(240,128,128) | |
lightcyan1 | #E0FFFF | RGB(224,255,255) | |
lightcyan2 | #D1EEEE | RGB(209,238,238) | |
lightcyan3 | #B4CDCD | RGB(180,205,205) | |
lightcyan4 | #7A8B8B | RGB(122,139,139) | |
lightgoldenrod1 | #FFEC8B | RGB(255,236,139) | |
lightgoldenrod2 | #EEDC82 | RGB(238,220,130) | |
lightgoldenrod3 | #CDBE70 | RGB(205,190,112) | |
lightgoldenrod4 | #8B814C | RGB(139,129,76) | |
lightgoldenrodyellow | #FAFAD2 | RGB(250,250,210) | |
lightgrey | #D3D3D3 | RGB(211,211,211) | |
lightpink | #FFB6C1 | RGB(255,182,193) | |
lightpink1 | #FFAEB9 | RGB(255,174,185) | |
lightpink2 | #EEA2AD | RGB(238,162,173) | |
lightpink3 | #CD8C95 | RGB(205,140,149) | |
lightpink4 | #8B5F65 | RGB(139,95,101) | |
lightsalmon1 | #FFA07A | RGB(255,160,122) | |
lightsalmon2 | #EE9572 | RGB(238,149,114) | |
lightsalmon3 | #CD8162 | RGB(205,129,98) | |
lightsalmon4 | #8B5742 | RGB(139,87,66) | |
lightseagreen | #20B2AA | RGB(32,178,170) | |
lightskyblue | #87CEFA | RGB(135,206,250) | |
lightskyblue1 | #B0E2FF | RGB(176,226,255) | |
lightskyblue2 | #A4D3EE | RGB(164,211,238) | |
lightskyblue3 | #8DB6CD | RGB(141,182,205) | |
lightskyblue4 | #607B8B | RGB(96,123,139) | |
lightslateblue | #8470FF | RGB(132,112,255) | |
lightslategray | #778899 | RGB(119,136,153) | |
lightsteelblue | #B0C4DE | RGB(176,196,222) | |
lightsteelblue1 | #CAE1FF | RGB(202,225,255) | |
lightsteelblue2 | #BCD2EE | RGB(188,210,238) | |
lightsteelblue3 | #A2B5CD | RGB(162,181,205) | |
lightsteelblue4 | #6E7B8B | RGB(110,123,139) | |
lightyellow1 | #FFFFE0 | RGB(255,255,224) | |
lightyellow2 | #EEEED1 | RGB(238,238,209) | |
lightyellow3 | #CDCDB4 | RGB(205,205,180) | |
lightyellow4 | #8B8B7A | RGB(139,139,122) | |
limegreen | #32CD32 | RGB(50,205,50) | |
linen | #FAF0E6 | RGB(250,240,230) | |
magenta | #FF00FF | RGB(255,0,255) | |
magenta2 | #EE00EE | RGB(238,0,238) | |
magenta3 | #CD00CD | RGB(205,0,205) | |
magenta4 | #8B008B | RGB(139,0,139) | |
manganeseblue | #03A89E | RGB(3,168,158) | |
maroon | #800000 | RGB(128,0,0) | |
maroon1 | #FF34B3 | RGB(255,52,179) | |
maroon2 | #EE30A7 | RGB(238,48,167) | |
maroon3 | #CD2990 | RGB(205,41,144) | |
maroon4 | #8B1C62 | RGB(139,28,98) | |
mediumorchid | #BA55D3 | RGB(186,85,211) | |
mediumorchid1 | #E066FF | RGB(224,102,255) | |
mediumorchid2 | #D15FEE | RGB(209,95,238) | |
mediumorchid3 | #B452CD | RGB(180,82,205) | |
mediumorchid4 | #7A378B | RGB(122,55,139) | |
mediumpurple | #9370DB | RGB(147,112,219) | |
mediumpurple1 | #AB82FF | RGB(171,130,255) | |
mediumpurple2 | #9F79EE | RGB(159,121,238) | |
mediumpurple3 | #8968CD | RGB(137,104,205) | |
mediumpurple4 | #5D478B | RGB(93,71,139) | |
mediumseagreen | #3CB371 | RGB(60,179,113) | |
mediumslateblue | #7B68EE | RGB(123,104,238) | |
mediumspringgreen | #00FA9A | RGB(0,250,154) | |
mediumturquoise | #48D1CC | RGB(72,209,204) | |
mediumvioletred | #C71585 | RGB(199,21,133) | |
melon | #E3A869 | RGB(227,168,105) | |
midnightblue | #191970 | RGB(25,25,112) | |
mint | #BDFCC9 | RGB(189,252,201) | |
mintcream | #F5FFFA | RGB(245,255,250) | |
mistyrose1 | #FFE4E1 | RGB(255,228,225) | |
mistyrose2 | #EED5D2 | RGB(238,213,210) | |
mistyrose3 | #CDB7B5 | RGB(205,183,181) | |
mistyrose4 | #8B7D7B | RGB(139,125,123) | |
moccasin | #FFE4B5 | RGB(255,228,181) | |
navajowhite1 | #FFDEAD | RGB(255,222,173) | |
navajowhite2 | #EECFA1 | RGB(238,207,161) | |
navajowhite3 | #CDB38B | RGB(205,179,139) | |
navajowhite4 | #8B795E | RGB(139,121,94) | |
navy | #000080 | RGB(0,0,128) | |
oldlace | #FDF5E6 | RGB(253,245,230) | |
olive | #808000 | RGB(128,128,0) | |
olivedrab | #6B8E23 | RGB(107,142,35) | |
olivedrab1 | #C0FF3E | RGB(192,255,62) | |
olivedrab2 | #B3EE3A | RGB(179,238,58) | |
olivedrab3 | #9ACD32 | RGB(154,205,50) | |
olivedrab4 | #698B22 | RGB(105,139,34) | |
orange | #FF8000 | RGB(255,128,0) | |
orange1 | #FFA500 | RGB(255,165,0) | |
orange2 | #EE9A00 | RGB(238,154,0) | |
orange3 | #CD8500 | RGB(205,133,0) | |
orange4 | #8B5A00 | RGB(139,90,0) | |
orangered1 | #FF4500 | RGB(255,69,0) | |
orangered2 | #EE4000 | RGB(238,64,0) | |
orangered3 | #CD3700 | RGB(205,55,0) | |
orangered4 | #8B2500 | RGB(139,37,0) | |
orchid | #DA70D6 | RGB(218,112,214) | |
orchid1 | #FF83FA | RGB(255,131,250) | |
orchid2 | #EE7AE9 | RGB(238,122,233) | |
orchid3 | #CD69C9 | RGB(205,105,201) | |
orchid4 | #8B4789 | RGB(139,71,137) | |
palegoldenrod | #EEE8AA | RGB(238,232,170) | |
palegreen | #98FB98 | RGB(152,251,152) | |
palegreen1 | #9AFF9A | RGB(154,255,154) | |
palegreen2 | #90EE90 | RGB(144,238,144) | |
palegreen3 | #7CCD7C | RGB(124,205,124) | |
palegreen4 | #548B54 | RGB(84,139,84) | |
paleturquoise1 | #BBFFFF | RGB(187,255,255) | |
paleturquoise2 | #AEEEEE | RGB(174,238,238) | |
paleturquoise3 | #96CDCD | RGB(150,205,205) | |
paleturquoise4 | #668B8B | RGB(102,139,139) | |
palevioletred | #DB7093 | RGB(219,112,147) | |
palevioletred1 | #FF82AB | RGB(255,130,171) | |
palevioletred2 | #EE799F | RGB(238,121,159) | |
palevioletred3 | #CD6889 | RGB(205,104,137) | |
palevioletred4 | #8B475D | RGB(139,71,93) | |
papayawhip | #FFEFD5 | RGB(255,239,213) | |
peachpuff1 | #FFDAB9 | RGB(255,218,185) | |
peachpuff2 | #EECBAD | RGB(238,203,173) | |
peachpuff3 | #CDAF95 | RGB(205,175,149) | |
peachpuff4 | #8B7765 | RGB(139,119,101) | |
peacock | #33A1C9 | RGB(51,161,201) | |
pink | #FFC0CB | RGB(255,192,203) | |
pink1 | #FFB5C5 | RGB(255,181,197) | |
pink2 | #EEA9B8 | RGB(238,169,184) | |
pink3 | #CD919E | RGB(205,145,158) | |
pink4 | #8B636C | RGB(139,99,108) | |
plum | #DDA0DD | RGB(221,160,221) | |
plum1 | #FFBBFF | RGB(255,187,255) | |
plum2 | #EEAEEE | RGB(238,174,238) | |
plum3 | #CD96CD | RGB(205,150,205) | |
plum4 | #8B668B | RGB(139,102,139) | |
powderblue | #B0E0E6 | RGB(176,224,230) | |
purple | #800080 | RGB(128,0,128) | |
purple1 | #9B30FF | RGB(155,48,255) | |
purple2 | #912CEE | RGB(145,44,238) | |
purple3 | #7D26CD | RGB(125,38,205) | |
purple4 | #551A8B | RGB(85,26,139) | |
raspberry | #872657 | RGB(135,38,87) | |
rawsienna | #C76114 | RGB(199,97,20) | |
red1 | #FF0000 | RGB(255,0,0) | |
red2 | #EE0000 | RGB(238,0,0) | |
red3 | #CD0000 | RGB(205,0,0) | |
red4 | #8B0000 | RGB(139,0,0) | |
rosybrown | #BC8F8F | RGB(188,143,143) | |
rosybrown1 | #FFC1C1 | RGB(255,193,193) | |
rosybrown2 | #EEB4B4 | RGB(238,180,180) | |
rosybrown3 | #CD9B9B | RGB(205,155,155) | |
rosybrown4 | #8B6969 | RGB(139,105,105) | |
royalblue | #4169E1 | RGB(65,105,225) | |
royalblue1 | #4876FF | RGB(72,118,255) | |
royalblue2 | #436EEE | RGB(67,110,238) | |
royalblue3 | #3A5FCD | RGB(58,95,205) | |
royalblue4 | #27408B | RGB(39,64,139) | |
salmon | #FA8072 | RGB(250,128,114) | |
salmon1 | #FF8C69 | RGB(255,140,105) | |
salmon2 | #EE8262 | RGB(238,130,98) | |
salmon3 | #CD7054 | RGB(205,112,84) | |
salmon4 | #8B4C39 | RGB(139,76,57) | |
sandybrown | #F4A460 | RGB(244,164,96) | |
sapgreen | #308014 | RGB(48,128,20) | |
seagreen1 | #54FF9F | RGB(84,255,159) | |
seagreen2 | #4EEE94 | RGB(78,238,148) | |
seagreen3 | #43CD80 | RGB(67,205,128) | |
seagreen4 | #2E8B57 | RGB(46,139,87) | |
seashell1 | #FFF5EE | RGB(255,245,238) | |
seashell2 | #EEE5DE | RGB(238,229,222) | |
seashell3 | #CDC5BF | RGB(205,197,191) | |
seashell4 | #8B8682 | RGB(139,134,130) | |
sepia | #5E2612 | RGB(94,38,18) | |
sgibeet | #8E388E | RGB(142,56,142) | |
sgibrightgray | #C5C1AA | RGB(197,193,170) | |
sgichartreuse | #71C671 | RGB(113,198,113) | |
sgidarkgray | #555555 | RGB(85,85,85) | |
sgigray12 | #1E1E1E | RGB(30,30,30) | |
sgigray16 | #282828 | RGB(40,40,40) | |
sgigray32 | #515151 | RGB(81,81,81) | |
sgigray36 | #5B5B5B | RGB(91,91,91) | |
sgigray52 | #848484 | RGB(132,132,132) | |
sgigray56 | #8E8E8E | RGB(142,142,142) | |
sgigray72 | #B7B7B7 | RGB(183,183,183) | |
sgigray76 | #C1C1C1 | RGB(193,193,193) | |
sgigray92 | #EAEAEA | RGB(234,234,234) | |
sgigray96 | #F4F4F4 | RGB(244,244,244) | |
sgilightblue | #7D9EC0 | RGB(125,158,192) | |
sgilightgray | #AAAAAA | RGB(170,170,170) | |
sgiolivedrab | #8E8E38 | RGB(142,142,56) | |
sgisalmon | #C67171 | RGB(198,113,113) | |
sgislateblue | #7171C6 | RGB(113,113,198) | |
sgiteal | #388E8E | RGB(56,142,142) | |
sienna | #A0522D | RGB(160,82,45) | |
sienna1 | #FF8247 | RGB(255,130,71) | |
sienna2 | #EE7942 | RGB(238,121,66) | |
sienna3 | #CD6839 | RGB(205,104,57) | |
sienna4 | #8B4726 | RGB(139,71,38) | |
silver | #C0C0C0 | RGB(192,192,192) | |
skyblue | #87CEEB | RGB(135,206,235) | |
skyblue1 | #87CEFF | RGB(135,206,255) | |
skyblue2 | #7EC0EE | RGB(126,192,238) | |
skyblue3 | #6CA6CD | RGB(108,166,205) | |
skyblue4 | #4A708B | RGB(74,112,139) | |
slateblue | #6A5ACD | RGB(106,90,205) | |
slateblue1 | #836FFF | RGB(131,111,255) | |
slateblue2 | #7A67EE | RGB(122,103,238) | |
slateblue3 | #6959CD | RGB(105,89,205) | |
slateblue4 | #473C8B | RGB(71,60,139) | |
slategray | #708090 | RGB(112,128,144) | |
slategray1 | #C6E2FF | RGB(198,226,255) | |
slategray2 | #B9D3EE | RGB(185,211,238) | |
slategray3 | #9FB6CD | RGB(159,182,205) | |
slategray4 | #6C7B8B | RGB(108,123,139) | |
snow1 | #FFFAFA | RGB(255,250,250) | |
snow2 | #EEE9E9 | RGB(238,233,233) | |
snow3 | #CDC9C9 | RGB(205,201,201) | |
snow4 | #8B8989 | RGB(139,137,137) | |
springgreen | #00FF7F | RGB(0,255,127) | |
springgreen1 | #00EE76 | RGB(0,238,118) | |
springgreen2 | #00CD66 | RGB(0,205,102) | |
springgreen3 | #008B45 | RGB(0,139,69) | |
steelblue | #4682B4 | RGB(70,130,180) | |
steelblue1 | #63B8FF | RGB(99,184,255) | |
steelblue2 | #5CACEE | RGB(92,172,238) | |
steelblue3 | #4F94CD | RGB(79,148,205) | |
steelblue4 | #36648B | RGB(54,100,139) | |
tan | #D2B48C | RGB(210,180,140) | |
tan1 | #FFA54F | RGB(255,165,79) | |
tan2 | #EE9A49 | RGB(238,154,73) | |
tan3 | #CD853F | RGB(205,133,63) | |
tan4 | #8B5A2B | RGB(139,90,43) | |
teal | #008080 | RGB(0,128,128) | |
thistle | #D8BFD8 | RGB(216,191,216) | |
thistle1 | #FFE1FF | RGB(255,225,255) | |
thistle2 | #EED2EE | RGB(238,210,238) | |
thistle3 | #CDB5CD | RGB(205,181,205) | |
thistle4 | #8B7B8B | RGB(139,123,139) | |
tomato1 | #FF6347 | RGB(255,99,71) | |
tomato2 | #EE5C42 | RGB(238,92,66) | |
tomato3 | #CD4F39 | RGB(205,79,57) | |
tomato4 | #8B3626 | RGB(139,54,38) | |
turquoise | #40E0D0 | RGB(64,224,208) | |
turquoise1 | #00F5FF | RGB(0,245,255) | |
turquoise2 | #00E5EE | RGB(0,229,238) | |
turquoise3 | #00C5CD | RGB(0,197,205) | |
turquoise4 | #00868B | RGB(0,134,139) | |
turquoiseblue | #00C78C | RGB(0,199,140) | |
violet | #EE82EE | RGB(238,130,238) | |
violetred | #D02090 | RGB(208,32,144) | |
violetred1 | #FF3E96 | RGB(255,62,150) | |
violetred2 | #EE3A8C | RGB(238,58,140) | |
violetred3 | #CD3278 | RGB(205,50,120) | |
violetred4 | #8B2252 | RGB(139,34,82) | |
warmgrey | #808069 | RGB(128,128,105) | |
wheat | #F5DEB3 | RGB(245,222,179) | |
wheat1 | #FFE7BA | RGB(255,231,186) | |
wheat2 | #EED8AE | RGB(238,216,174) | |
wheat3 | #CDBA96 | RGB(205,186,150) | |
wheat4 | #8B7E66 | RGB(139,126,102) | |
white | #FFFFFF | RGB(255,255,255) | |
whitesmoke | #F5F5F5 | RGB(245,245,245) | |
yellow1 | #FFFF00 | RGB(255,255,0) | |
yellow2 | #EEEE00 | RGB(238,238,0) | |
yellow3 | #CDCD00 | RGB(205,205,0) | |
yellow4 | #8B8B00 | RGB(139,139,0) |
color_constants.py
"""Provide RGB color constants and a colors dictionary with
elements formatted: colors[colorname] = CONSTANT"""
from collections import namedtuple, OrderedDict
Color = namedtuple('RGB','red, green, blue')
colors = {} #dict of colors
class RGB(Color):
def hex_format(self):
'''Returns color in hex format'''
return '#{:02X}{:02X}{:02X}'.format(self.red,self.green,self.blue)
#Color Contants
ALICEBLUE = RGB(240, 248, 255)
ANTIQUEWHITE = RGB(250, 235, 215)
ANTIQUEWHITE1 = RGB(255, 239, 219)
ANTIQUEWHITE2 = RGB(238, 223, 204)
ANTIQUEWHITE3 = RGB(205, 192, 176)
ANTIQUEWHITE4 = RGB(139, 131, 120)
AQUA = RGB(0, 255, 255)
AQUAMARINE1 = RGB(127, 255, 212)
AQUAMARINE2 = RGB(118, 238, 198)
AQUAMARINE3 = RGB(102, 205, 170)
AQUAMARINE4 = RGB(69, 139, 116)
AZURE1 = RGB(240, 255, 255)
AZURE2 = RGB(224, 238, 238)
AZURE3 = RGB(193, 205, 205)
AZURE4 = RGB(131, 139, 139)
BANANA = RGB(227, 207, 87)
BEIGE = RGB(245, 245, 220)
BISQUE1 = RGB(255, 228, 196)
BISQUE2 = RGB(238, 213, 183)
BISQUE3 = RGB(205, 183, 158)
BISQUE4 = RGB(139, 125, 107)
BLACK = RGB(0, 0, 0)
BLANCHEDALMOND = RGB(255, 235, 205)
BLUE = RGB(0, 0, 255)
BLUE2 = RGB(0, 0, 238)
BLUE3 = RGB(0, 0, 205)
BLUE4 = RGB(0, 0, 139)
BLUEVIOLET = RGB(138, 43, 226)
BRICK = RGB(156, 102, 31)
BROWN = RGB(165, 42, 42)
BROWN1 = RGB(255, 64, 64)
BROWN2 = RGB(238, 59, 59)
BROWN3 = RGB(205, 51, 51)
BROWN4 = RGB(139, 35, 35)
BURLYWOOD = RGB(222, 184, 135)
BURLYWOOD1 = RGB(255, 211, 155)
BURLYWOOD2 = RGB(238, 197, 145)
BURLYWOOD3 = RGB(205, 170, 125)
BURLYWOOD4 = RGB(139, 115, 85)
BURNTSIENNA = RGB(138, 54, 15)
BURNTUMBER = RGB(138, 51, 36)
CADETBLUE = RGB(95, 158, 160)
CADETBLUE1 = RGB(152, 245, 255)
CADETBLUE2 = RGB(142, 229, 238)
CADETBLUE3 = RGB(122, 197, 205)
CADETBLUE4 = RGB(83, 134, 139)
CADMIUMORANGE = RGB(255, 97, 3)
CADMIUMYELLOW = RGB(255, 153, 18)
CARROT = RGB(237, 145, 33)
CHARTREUSE1 = RGB(127, 255, 0)
CHARTREUSE2 = RGB(118, 238, 0)
CHARTREUSE3 = RGB(102, 205, 0)
CHARTREUSE4 = RGB(69, 139, 0)
CHOCOLATE = RGB(210, 105, 30)
CHOCOLATE1 = RGB(255, 127, 36)
CHOCOLATE2 = RGB(238, 118, 33)
CHOCOLATE3 = RGB(205, 102, 29)
CHOCOLATE4 = RGB(139, 69, 19)
COBALT = RGB(61, 89, 171)
COBALTGREEN = RGB(61, 145, 64)
COLDGREY = RGB(128, 138, 135)
CORAL = RGB(255, 127, 80)
CORAL1 = RGB(255, 114, 86)
CORAL2 = RGB(238, 106, 80)
CORAL3 = RGB(205, 91, 69)
CORAL4 = RGB(139, 62, 47)
CORNFLOWERBLUE = RGB(100, 149, 237)
CORNSILK1 = RGB(255, 248, 220)
CORNSILK2 = RGB(238, 232, 205)
CORNSILK3 = RGB(205, 200, 177)
CORNSILK4 = RGB(139, 136, 120)
CRIMSON = RGB(220, 20, 60)
CYAN2 = RGB(0, 238, 238)
CYAN3 = RGB(0, 205, 205)
CYAN4 = RGB(0, 139, 139)
DARKGOLDENROD = RGB(184, 134, 11)
DARKGOLDENROD1 = RGB(255, 185, 15)
DARKGOLDENROD2 = RGB(238, 173, 14)
DARKGOLDENROD3 = RGB(205, 149, 12)
DARKGOLDENROD4 = RGB(139, 101, 8)
DARKGRAY = RGB(169, 169, 169)
DARKGREEN = RGB(0, 100, 0)
DARKKHAKI = RGB(189, 183, 107)
DARKOLIVEGREEN = RGB(85, 107, 47)
DARKOLIVEGREEN1 = RGB(202, 255, 112)
DARKOLIVEGREEN2 = RGB(188, 238, 104)
DARKOLIVEGREEN3 = RGB(162, 205, 90)
DARKOLIVEGREEN4 = RGB(110, 139, 61)
DARKORANGE = RGB(255, 140, 0)
DARKORANGE1 = RGB(255, 127, 0)
DARKORANGE2 = RGB(238, 118, 0)
DARKORANGE3 = RGB(205, 102, 0)
DARKORANGE4 = RGB(139, 69, 0)
DARKORCHID = RGB(153, 50, 204)
DARKORCHID1 = RGB(191, 62, 255)
DARKORCHID2 = RGB(178, 58, 238)
DARKORCHID3 = RGB(154, 50, 205)
DARKORCHID4 = RGB(104, 34, 139)
DARKSALMON = RGB(233, 150, 122)
DARKSEAGREEN = RGB(143, 188, 143)
DARKSEAGREEN1 = RGB(193, 255, 193)
DARKSEAGREEN2 = RGB(180, 238, 180)
DARKSEAGREEN3 = RGB(155, 205, 155)
DARKSEAGREEN4 = RGB(105, 139, 105)
DARKSLATEBLUE = RGB(72, 61, 139)
DARKSLATEGRAY = RGB(47, 79, 79)
DARKSLATEGRAY1 = RGB(151, 255, 255)
DARKSLATEGRAY2 = RGB(141, 238, 238)
DARKSLATEGRAY3 = RGB(121, 205, 205)
DARKSLATEGRAY4 = RGB(82, 139, 139)
DARKTURQUOISE = RGB(0, 206, 209)
DARKVIOLET = RGB(148, 0, 211)
DEEPPINK1 = RGB(255, 20, 147)
DEEPPINK2 = RGB(238, 18, 137)
DEEPPINK3 = RGB(205, 16, 118)
DEEPPINK4 = RGB(139, 10, 80)
DEEPSKYBLUE1 = RGB(0, 191, 255)
DEEPSKYBLUE2 = RGB(0, 178, 238)
DEEPSKYBLUE3 = RGB(0, 154, 205)
DEEPSKYBLUE4 = RGB(0, 104, 139)
DIMGRAY = RGB(105, 105, 105)
DIMGRAY = RGB(105, 105, 105)
DODGERBLUE1 = RGB(30, 144, 255)
DODGERBLUE2 = RGB(28, 134, 238)
DODGERBLUE3 = RGB(24, 116, 205)
DODGERBLUE4 = RGB(16, 78, 139)
EGGSHELL = RGB(252, 230, 201)
EMERALDGREEN = RGB(0, 201, 87)
FIREBRICK = RGB(178, 34, 34)
FIREBRICK1 = RGB(255, 48, 48)
FIREBRICK2 = RGB(238, 44, 44)
FIREBRICK3 = RGB(205, 38, 38)
FIREBRICK4 = RGB(139, 26, 26)
FLESH = RGB(255, 125, 64)
FLORALWHITE = RGB(255, 250, 240)
FORESTGREEN = RGB(34, 139, 34)
GAINSBORO = RGB(220, 220, 220)
GHOSTWHITE = RGB(248, 248, 255)
GOLD1 = RGB(255, 215, 0)
GOLD2 = RGB(238, 201, 0)
GOLD3 = RGB(205, 173, 0)
GOLD4 = RGB(139, 117, 0)
GOLDENROD = RGB(218, 165, 32)
GOLDENROD1 = RGB(255, 193, 37)
GOLDENROD2 = RGB(238, 180, 34)
GOLDENROD3 = RGB(205, 155, 29)
GOLDENROD4 = RGB(139, 105, 20)
GRAY = RGB(128, 128, 128)
GRAY1 = RGB(3, 3, 3)
GRAY10 = RGB(26, 26, 26)
GRAY11 = RGB(28, 28, 28)
GRAY12 = RGB(31, 31, 31)
GRAY13 = RGB(33, 33, 33)
GRAY14 = RGB(36, 36, 36)
GRAY15 = RGB(38, 38, 38)
GRAY16 = RGB(41, 41, 41)
GRAY17 = RGB(43, 43, 43)
GRAY18 = RGB(46, 46, 46)
GRAY19 = RGB(48, 48, 48)
GRAY2 = RGB(5, 5, 5)
GRAY20 = RGB(51, 51, 51)
GRAY21 = RGB(54, 54, 54)
GRAY22 = RGB(56, 56, 56)
GRAY23 = RGB(59, 59, 59)
GRAY24 = RGB(61, 61, 61)
GRAY25 = RGB(64, 64, 64)
GRAY26 = RGB(66, 66, 66)
GRAY27 = RGB(69, 69, 69)
GRAY28 = RGB(71, 71, 71)
GRAY29 = RGB(74, 74, 74)
GRAY3 = RGB(8, 8, 8)
GRAY30 = RGB(77, 77, 77)
GRAY31 = RGB(79, 79, 79)
GRAY32 = RGB(82, 82, 82)
GRAY33 = RGB(84, 84, 84)
GRAY34 = RGB(87, 87, 87)
GRAY35 = RGB(89, 89, 89)
GRAY36 = RGB(92, 92, 92)
GRAY37 = RGB(94, 94, 94)
GRAY38 = RGB(97, 97, 97)
GRAY39 = RGB(99, 99, 99)
GRAY4 = RGB(10, 10, 10)
GRAY40 = RGB(102, 102, 102)
GRAY42 = RGB(107, 107, 107)
GRAY43 = RGB(110, 110, 110)
GRAY44 = RGB(112, 112, 112)
GRAY45 = RGB(115, 115, 115)
GRAY46 = RGB(117, 117, 117)
GRAY47 = RGB(120, 120, 120)
GRAY48 = RGB(122, 122, 122)
GRAY49 = RGB(125, 125, 125)
GRAY5 = RGB(13, 13, 13)
GRAY50 = RGB(127, 127, 127)
GRAY51 = RGB(130, 130, 130)
GRAY52 = RGB(133, 133, 133)
GRAY53 = RGB(135, 135, 135)
GRAY54 = RGB(138, 138, 138)
GRAY55 = RGB(140, 140, 140)
GRAY56 = RGB(143, 143, 143)
GRAY57 = RGB(145, 145, 145)
GRAY58 = RGB(148, 148, 148)
GRAY59 = RGB(150, 150, 150)
GRAY6 = RGB(15, 15, 15)
GRAY60 = RGB(153, 153, 153)
GRAY61 = RGB(156, 156, 156)
GRAY62 = RGB(158, 158, 158)
GRAY63 = RGB(161, 161, 161)
GRAY64 = RGB(163, 163, 163)
GRAY65 = RGB(166, 166, 166)
GRAY66 = RGB(168, 168, 168)
GRAY67 = RGB(171, 171, 171)
GRAY68 = RGB(173, 173, 173)
GRAY69 = RGB(176, 176, 176)
GRAY7 = RGB(18, 18, 18)
GRAY70 = RGB(179, 179, 179)
GRAY71 = RGB(181, 181, 181)
GRAY72 = RGB(184, 184, 184)
GRAY73 = RGB(186, 186, 186)
GRAY74 = RGB(189, 189, 189)
GRAY75 = RGB(191, 191, 191)
GRAY76 = RGB(194, 194, 194)
GRAY77 = RGB(196, 196, 196)
GRAY78 = RGB(199, 199, 199)
GRAY79 = RGB(201, 201, 201)
GRAY8 = RGB(20, 20, 20)
GRAY80 = RGB(204, 204, 204)
GRAY81 = RGB(207, 207, 207)
GRAY82 = RGB(209, 209, 209)
GRAY83 = RGB(212, 212, 212)
GRAY84 = RGB(214, 214, 214)
GRAY85 = RGB(217, 217, 217)
GRAY86 = RGB(219, 219, 219)
GRAY87 = RGB(222, 222, 222)
GRAY88 = RGB(224, 224, 224)
GRAY89 = RGB(227, 227, 227)
GRAY9 = RGB(23, 23, 23)
GRAY90 = RGB(229, 229, 229)
GRAY91 = RGB(232, 232, 232)
GRAY92 = RGB(235, 235, 235)
GRAY93 = RGB(237, 237, 237)
GRAY94 = RGB(240, 240, 240)
GRAY95 = RGB(242, 242, 242)
GRAY97 = RGB(247, 247, 247)
GRAY98 = RGB(250, 250, 250)
GRAY99 = RGB(252, 252, 252)
GREEN = RGB(0, 128, 0)
GREEN1 = RGB(0, 255, 0)
GREEN2 = RGB(0, 238, 0)
GREEN3 = RGB(0, 205, 0)
GREEN4 = RGB(0, 139, 0)
GREENYELLOW = RGB(173, 255, 47)
HONEYDEW1 = RGB(240, 255, 240)
HONEYDEW2 = RGB(224, 238, 224)
HONEYDEW3 = RGB(193, 205, 193)
HONEYDEW4 = RGB(131, 139, 131)
HOTPINK = RGB(255, 105, 180)
HOTPINK1 = RGB(255, 110, 180)
HOTPINK2 = RGB(238, 106, 167)
HOTPINK3 = RGB(205, 96, 144)
HOTPINK4 = RGB(139, 58, 98)
INDIANRED = RGB(176, 23, 31)
INDIANRED = RGB(205, 92, 92)
INDIANRED1 = RGB(255, 106, 106)
INDIANRED2 = RGB(238, 99, 99)
INDIANRED3 = RGB(205, 85, 85)
INDIANRED4 = RGB(139, 58, 58)
INDIGO = RGB(75, 0, 130)
IVORY1 = RGB(255, 255, 240)
IVORY2 = RGB(238, 238, 224)
IVORY3 = RGB(205, 205, 193)
IVORY4 = RGB(139, 139, 131)
IVORYBLACK = RGB(41, 36, 33)
KHAKI = RGB(240, 230, 140)
KHAKI1 = RGB(255, 246, 143)
KHAKI2 = RGB(238, 230, 133)
KHAKI3 = RGB(205, 198, 115)
KHAKI4 = RGB(139, 134, 78)
LAVENDER = RGB(230, 230, 250)
LAVENDERBLUSH1 = RGB(255, 240, 245)
LAVENDERBLUSH2 = RGB(238, 224, 229)
LAVENDERBLUSH3 = RGB(205, 193, 197)
LAVENDERBLUSH4 = RGB(139, 131, 134)
LAWNGREEN = RGB(124, 252, 0)
LEMONCHIFFON1 = RGB(255, 250, 205)
LEMONCHIFFON2 = RGB(238, 233, 191)
LEMONCHIFFON3 = RGB(205, 201, 165)
LEMONCHIFFON4 = RGB(139, 137, 112)
LIGHTBLUE = RGB(173, 216, 230)
LIGHTBLUE1 = RGB(191, 239, 255)
LIGHTBLUE2 = RGB(178, 223, 238)
LIGHTBLUE3 = RGB(154, 192, 205)
LIGHTBLUE4 = RGB(104, 131, 139)
LIGHTCORAL = RGB(240, 128, 128)
LIGHTCYAN1 = RGB(224, 255, 255)
LIGHTCYAN2 = RGB(209, 238, 238)
LIGHTCYAN3 = RGB(180, 205, 205)
LIGHTCYAN4 = RGB(122, 139, 139)
LIGHTGOLDENROD1 = RGB(255, 236, 139)
LIGHTGOLDENROD2 = RGB(238, 220, 130)
LIGHTGOLDENROD3 = RGB(205, 190, 112)
LIGHTGOLDENROD4 = RGB(139, 129, 76)
LIGHTGOLDENRODYELLOW = RGB(250, 250, 210)
LIGHTGREY = RGB(211, 211, 211)
LIGHTPINK = RGB(255, 182, 193)
LIGHTPINK1 = RGB(255, 174, 185)
LIGHTPINK2 = RGB(238, 162, 173)
LIGHTPINK3 = RGB(205, 140, 149)
LIGHTPINK4 = RGB(139, 95, 101)
LIGHTSALMON1 = RGB(255, 160, 122)
LIGHTSALMON2 = RGB(238, 149, 114)
LIGHTSALMON3 = RGB(205, 129, 98)
LIGHTSALMON4 = RGB(139, 87, 66)
LIGHTSEAGREEN = RGB(32, 178, 170)
LIGHTSKYBLUE = RGB(135, 206, 250)
LIGHTSKYBLUE1 = RGB(176, 226, 255)
LIGHTSKYBLUE2 = RGB(164, 211, 238)
LIGHTSKYBLUE3 = RGB(141, 182, 205)
LIGHTSKYBLUE4 = RGB(96, 123, 139)
LIGHTSLATEBLUE = RGB(132, 112, 255)
LIGHTSLATEGRAY = RGB(119, 136, 153)
LIGHTSTEELBLUE = RGB(176, 196, 222)
LIGHTSTEELBLUE1 = RGB(202, 225, 255)
LIGHTSTEELBLUE2 = RGB(188, 210, 238)
LIGHTSTEELBLUE3 = RGB(162, 181, 205)
LIGHTSTEELBLUE4 = RGB(110, 123, 139)
LIGHTYELLOW1 = RGB(255, 255, 224)
LIGHTYELLOW2 = RGB(238, 238, 209)
LIGHTYELLOW3 = RGB(205, 205, 180)
LIGHTYELLOW4 = RGB(139, 139, 122)
LIMEGREEN = RGB(50, 205, 50)
LINEN = RGB(250, 240, 230)
MAGENTA = RGB(255, 0, 255)
MAGENTA2 = RGB(238, 0, 238)
MAGENTA3 = RGB(205, 0, 205)
MAGENTA4 = RGB(139, 0, 139)
MANGANESEBLUE = RGB(3, 168, 158)
MAROON = RGB(128, 0, 0)
MAROON1 = RGB(255, 52, 179)
MAROON2 = RGB(238, 48, 167)
MAROON3 = RGB(205, 41, 144)
MAROON4 = RGB(139, 28, 98)
MEDIUMORCHID = RGB(186, 85, 211)
MEDIUMORCHID1 = RGB(224, 102, 255)
MEDIUMORCHID2 = RGB(209, 95, 238)
MEDIUMORCHID3 = RGB(180, 82, 205)
MEDIUMORCHID4 = RGB(122, 55, 139)
MEDIUMPURPLE = RGB(147, 112, 219)
MEDIUMPURPLE1 = RGB(171, 130, 255)
MEDIUMPURPLE2 = RGB(159, 121, 238)
MEDIUMPURPLE3 = RGB(137, 104, 205)
MEDIUMPURPLE4 = RGB(93, 71, 139)
MEDIUMSEAGREEN = RGB(60, 179, 113)
MEDIUMSLATEBLUE = RGB(123, 104, 238)
MEDIUMSPRINGGREEN = RGB(0, 250, 154)
MEDIUMTURQUOISE = RGB(72, 209, 204)
MEDIUMVIOLETRED = RGB(199, 21, 133)
MELON = RGB(227, 168, 105)
MIDNIGHTBLUE = RGB(25, 25, 112)
MINT = RGB(189, 252, 201)
MINTCREAM = RGB(245, 255, 250)
MISTYROSE1 = RGB(255, 228, 225)
MISTYROSE2 = RGB(238, 213, 210)
MISTYROSE3 = RGB(205, 183, 181)
MISTYROSE4 = RGB(139, 125, 123)
MOCCASIN = RGB(255, 228, 181)
NAVAJOWHITE1 = RGB(255, 222, 173)
NAVAJOWHITE2 = RGB(238, 207, 161)
NAVAJOWHITE3 = RGB(205, 179, 139)
NAVAJOWHITE4 = RGB(139, 121, 94)
NAVY = RGB(0, 0, 128)
OLDLACE = RGB(253, 245, 230)
OLIVE = RGB(128, 128, 0)
OLIVEDRAB = RGB(107, 142, 35)
OLIVEDRAB1 = RGB(192, 255, 62)
OLIVEDRAB2 = RGB(179, 238, 58)
OLIVEDRAB3 = RGB(154, 205, 50)
OLIVEDRAB4 = RGB(105, 139, 34)
ORANGE = RGB(255, 128, 0)
ORANGE1 = RGB(255, 165, 0)
ORANGE2 = RGB(238, 154, 0)
ORANGE3 = RGB(205, 133, 0)
ORANGE4 = RGB(139, 90, 0)
ORANGERED1 = RGB(255, 69, 0)
ORANGERED2 = RGB(238, 64, 0)
ORANGERED3 = RGB(205, 55, 0)
ORANGERED4 = RGB(139, 37, 0)
ORCHID = RGB(218, 112, 214)
ORCHID1 = RGB(255, 131, 250)
ORCHID2 = RGB(238, 122, 233)
ORCHID3 = RGB(205, 105, 201)
ORCHID4 = RGB(139, 71, 137)
PALEGOLDENROD = RGB(238, 232, 170)
PALEGREEN = RGB(152, 251, 152)
PALEGREEN1 = RGB(154, 255, 154)
PALEGREEN2 = RGB(144, 238, 144)
PALEGREEN3 = RGB(124, 205, 124)
PALEGREEN4 = RGB(84, 139, 84)
PALETURQUOISE1 = RGB(187, 255, 255)
PALETURQUOISE2 = RGB(174, 238, 238)
PALETURQUOISE3 = RGB(150, 205, 205)
PALETURQUOISE4 = RGB(102, 139, 139)
PALEVIOLETRED = RGB(219, 112, 147)
PALEVIOLETRED1 = RGB(255, 130, 171)
PALEVIOLETRED2 = RGB(238, 121, 159)
PALEVIOLETRED3 = RGB(205, 104, 137)
PALEVIOLETRED4 = RGB(139, 71, 93)
PAPAYAWHIP = RGB(255, 239, 213)
PEACHPUFF1 = RGB(255, 218, 185)
PEACHPUFF2 = RGB(238, 203, 173)
PEACHPUFF3 = RGB(205, 175, 149)
PEACHPUFF4 = RGB(139, 119, 101)
PEACOCK = RGB(51, 161, 201)
PINK = RGB(255, 192, 203)
PINK1 = RGB(255, 181, 197)
PINK2 = RGB(238, 169, 184)
PINK3 = RGB(205, 145, 158)
PINK4 = RGB(139, 99, 108)
PLUM = RGB(221, 160, 221)
PLUM1 = RGB(255, 187, 255)
PLUM2 = RGB(238, 174, 238)
PLUM3 = RGB(205, 150, 205)
PLUM4 = RGB(139, 102, 139)
POWDERBLUE = RGB(176, 224, 230)
PURPLE = RGB(128, 0, 128)
PURPLE1 = RGB(155, 48, 255)
PURPLE2 = RGB(145, 44, 238)
PURPLE3 = RGB(125, 38, 205)
PURPLE4 = RGB(85, 26, 139)
RASPBERRY = RGB(135, 38, 87)
RAWSIENNA = RGB(199, 97, 20)
RED1 = RGB(255, 0, 0)
RED2 = RGB(238, 0, 0)
RED3 = RGB(205, 0, 0)
RED4 = RGB(139, 0, 0)
ROSYBROWN = RGB(188, 143, 143)
ROSYBROWN1 = RGB(255, 193, 193)
ROSYBROWN2 = RGB(238, 180, 180)
ROSYBROWN3 = RGB(205, 155, 155)
ROSYBROWN4 = RGB(139, 105, 105)
ROYALBLUE = RGB(65, 105, 225)
ROYALBLUE1 = RGB(72, 118, 255)
ROYALBLUE2 = RGB(67, 110, 238)
ROYALBLUE3 = RGB(58, 95, 205)
ROYALBLUE4 = RGB(39, 64, 139)
SALMON = RGB(250, 128, 114)
SALMON1 = RGB(255, 140, 105)
SALMON2 = RGB(238, 130, 98)
SALMON3 = RGB(205, 112, 84)
SALMON4 = RGB(139, 76, 57)
SANDYBROWN = RGB(244, 164, 96)
SAPGREEN = RGB(48, 128, 20)
SEAGREEN1 = RGB(84, 255, 159)
SEAGREEN2 = RGB(78, 238, 148)
SEAGREEN3 = RGB(67, 205, 128)
SEAGREEN4 = RGB(46, 139, 87)
SEASHELL1 = RGB(255, 245, 238)
SEASHELL2 = RGB(238, 229, 222)
SEASHELL3 = RGB(205, 197, 191)
SEASHELL4 = RGB(139, 134, 130)
SEPIA = RGB(94, 38, 18)
SGIBEET = RGB(142, 56, 142)
SGIBRIGHTGRAY = RGB(197, 193, 170)
SGICHARTREUSE = RGB(113, 198, 113)
SGIDARKGRAY = RGB(85, 85, 85)
SGIGRAY12 = RGB(30, 30, 30)
SGIGRAY16 = RGB(40, 40, 40)
SGIGRAY32 = RGB(81, 81, 81)
SGIGRAY36 = RGB(91, 91, 91)
SGIGRAY52 = RGB(132, 132, 132)
SGIGRAY56 = RGB(142, 142, 142)
SGIGRAY72 = RGB(183, 183, 183)
SGIGRAY76 = RGB(193, 193, 193)
SGIGRAY92 = RGB(234, 234, 234)
SGIGRAY96 = RGB(244, 244, 244)
SGILIGHTBLUE = RGB(125, 158, 192)
SGILIGHTGRAY = RGB(170, 170, 170)
SGIOLIVEDRAB = RGB(142, 142, 56)
SGISALMON = RGB(198, 113, 113)
SGISLATEBLUE = RGB(113, 113, 198)
SGITEAL = RGB(56, 142, 142)
SIENNA = RGB(160, 82, 45)
SIENNA1 = RGB(255, 130, 71)
SIENNA2 = RGB(238, 121, 66)
SIENNA3 = RGB(205, 104, 57)
SIENNA4 = RGB(139, 71, 38)
SILVER = RGB(192, 192, 192)
SKYBLUE = RGB(135, 206, 235)
SKYBLUE1 = RGB(135, 206, 255)
SKYBLUE2 = RGB(126, 192, 238)
SKYBLUE3 = RGB(108, 166, 205)
SKYBLUE4 = RGB(74, 112, 139)
SLATEBLUE = RGB(106, 90, 205)
SLATEBLUE1 = RGB(131, 111, 255)
SLATEBLUE2 = RGB(122, 103, 238)
SLATEBLUE3 = RGB(105, 89, 205)
SLATEBLUE4 = RGB(71, 60, 139)
SLATEGRAY = RGB(112, 128, 144)
SLATEGRAY1 = RGB(198, 226, 255)
SLATEGRAY2 = RGB(185, 211, 238)
SLATEGRAY3 = RGB(159, 182, 205)
SLATEGRAY4 = RGB(108, 123, 139)
SNOW1 = RGB(255, 250, 250)
SNOW2 = RGB(238, 233, 233)
SNOW3 = RGB(205, 201, 201)
SNOW4 = RGB(139, 137, 137)
SPRINGGREEN = RGB(0, 255, 127)
SPRINGGREEN1 = RGB(0, 238, 118)
SPRINGGREEN2 = RGB(0, 205, 102)
SPRINGGREEN3 = RGB(0, 139, 69)
STEELBLUE = RGB(70, 130, 180)
STEELBLUE1 = RGB(99, 184, 255)
STEELBLUE2 = RGB(92, 172, 238)
STEELBLUE3 = RGB(79, 148, 205)
STEELBLUE4 = RGB(54, 100, 139)
TAN = RGB(210, 180, 140)
TAN1 = RGB(255, 165, 79)
TAN2 = RGB(238, 154, 73)
TAN3 = RGB(205, 133, 63)
TAN4 = RGB(139, 90, 43)
TEAL = RGB(0, 128, 128)
THISTLE = RGB(216, 191, 216)
THISTLE1 = RGB(255, 225, 255)
THISTLE2 = RGB(238, 210, 238)
THISTLE3 = RGB(205, 181, 205)
THISTLE4 = RGB(139, 123, 139)
TOMATO1 = RGB(255, 99, 71)
TOMATO2 = RGB(238, 92, 66)
TOMATO3 = RGB(205, 79, 57)
TOMATO4 = RGB(139, 54, 38)
TURQUOISE = RGB(64, 224, 208)
TURQUOISE1 = RGB(0, 245, 255)
TURQUOISE2 = RGB(0, 229, 238)
TURQUOISE3 = RGB(0, 197, 205)
TURQUOISE4 = RGB(0, 134, 139)
TURQUOISEBLUE = RGB(0, 199, 140)
VIOLET = RGB(238, 130, 238)
VIOLETRED = RGB(208, 32, 144)
VIOLETRED1 = RGB(255, 62, 150)
VIOLETRED2 = RGB(238, 58, 140)
VIOLETRED3 = RGB(205, 50, 120)
VIOLETRED4 = RGB(139, 34, 82)
WARMGREY = RGB(128, 128, 105)
WHEAT = RGB(245, 222, 179)
WHEAT1 = RGB(255, 231, 186)
WHEAT2 = RGB(238, 216, 174)
WHEAT3 = RGB(205, 186, 150)
WHEAT4 = RGB(139, 126, 102)
WHITE = RGB(255, 255, 255)
WHITESMOKE = RGB(245, 245, 245)
WHITESMOKE = RGB(245, 245, 245)
YELLOW1 = RGB(255, 255, 0)
YELLOW2 = RGB(238, 238, 0)
YELLOW3 = RGB(205, 205, 0)
YELLOW4 = RGB(139, 139, 0)
#Add colors to colors dictionary
colors['aliceblue'] = ALICEBLUE
colors['antiquewhite'] = ANTIQUEWHITE
colors['antiquewhite1'] = ANTIQUEWHITE1
colors['antiquewhite2'] = ANTIQUEWHITE2
colors['antiquewhite3'] = ANTIQUEWHITE3
colors['antiquewhite4'] = ANTIQUEWHITE4
colors['aqua'] = AQUA
colors['aquamarine1'] = AQUAMARINE1
colors['aquamarine2'] = AQUAMARINE2
colors['aquamarine3'] = AQUAMARINE3
colors['aquamarine4'] = AQUAMARINE4
colors['azure1'] = AZURE1
colors['azure2'] = AZURE2
colors['azure3'] = AZURE3
colors['azure4'] = AZURE4
colors['banana'] = BANANA
colors['beige'] = BEIGE
colors['bisque1'] = BISQUE1
colors['bisque2'] = BISQUE2
colors['bisque3'] = BISQUE3
colors['bisque4'] = BISQUE4
colors['black'] = BLACK
colors['blanchedalmond'] = BLANCHEDALMOND
colors['blue'] = BLUE
colors['blue2'] = BLUE2
colors['blue3'] = BLUE3
colors['blue4'] = BLUE4
colors['blueviolet'] = BLUEVIOLET
colors['brick'] = BRICK
colors['brown'] = BROWN
colors['brown1'] = BROWN1
colors['brown2'] = BROWN2
colors['brown3'] = BROWN3
colors['brown4'] = BROWN4
colors['burlywood'] = BURLYWOOD
colors['burlywood1'] = BURLYWOOD1
colors['burlywood2'] = BURLYWOOD2
colors['burlywood3'] = BURLYWOOD3
colors['burlywood4'] = BURLYWOOD4
colors['burntsienna'] = BURNTSIENNA
colors['burntumber'] = BURNTUMBER
colors['cadetblue'] = CADETBLUE
colors['cadetblue1'] = CADETBLUE1
colors['cadetblue2'] = CADETBLUE2
colors['cadetblue3'] = CADETBLUE3
colors['cadetblue4'] = CADETBLUE4
colors['cadmiumorange'] = CADMIUMORANGE
colors['cadmiumyellow'] = CADMIUMYELLOW
colors['carrot'] = CARROT
colors['chartreuse1'] = CHARTREUSE1
colors['chartreuse2'] = CHARTREUSE2
colors['chartreuse3'] = CHARTREUSE3
colors['chartreuse4'] = CHARTREUSE4
colors['chocolate'] = CHOCOLATE
colors['chocolate1'] = CHOCOLATE1
colors['chocolate2'] = CHOCOLATE2
colors['chocolate3'] = CHOCOLATE3
colors['chocolate4'] = CHOCOLATE4
colors['cobalt'] = COBALT
colors['cobaltgreen'] = COBALTGREEN
colors['coldgrey'] = COLDGREY
colors['coral'] = CORAL
colors['coral1'] = CORAL1
colors['coral2'] = CORAL2
colors['coral3'] = CORAL3
colors['coral4'] = CORAL4
colors['cornflowerblue'] = CORNFLOWERBLUE
colors['cornsilk1'] = CORNSILK1
colors['cornsilk2'] = CORNSILK2
colors['cornsilk3'] = CORNSILK3
colors['cornsilk4'] = CORNSILK4
colors['crimson'] = CRIMSON
colors['cyan2'] = CYAN2
colors['cyan3'] = CYAN3
colors['cyan4'] = CYAN4
colors['darkgoldenrod'] = DARKGOLDENROD
colors['darkgoldenrod1'] = DARKGOLDENROD1
colors['darkgoldenrod2'] = DARKGOLDENROD2
colors['darkgoldenrod3'] = DARKGOLDENROD3
colors['darkgoldenrod4'] = DARKGOLDENROD4
colors['darkgray'] = DARKGRAY
colors['darkgreen'] = DARKGREEN
colors['darkkhaki'] = DARKKHAKI
colors['darkolivegreen'] = DARKOLIVEGREEN
colors['darkolivegreen1'] = DARKOLIVEGREEN1
colors['darkolivegreen2'] = DARKOLIVEGREEN2
colors['darkolivegreen3'] = DARKOLIVEGREEN3
colors['darkolivegreen4'] = DARKOLIVEGREEN4
colors['darkorange'] = DARKORANGE
colors['darkorange1'] = DARKORANGE1
colors['darkorange2'] = DARKORANGE2
colors['darkorange3'] = DARKORANGE3
colors['darkorange4'] = DARKORANGE4
colors['darkorchid'] = DARKORCHID
colors['darkorchid1'] = DARKORCHID1
colors['darkorchid2'] = DARKORCHID2
colors['darkorchid3'] = DARKORCHID3
colors['darkorchid4'] = DARKORCHID4
colors['darksalmon'] = DARKSALMON
colors['darkseagreen'] = DARKSEAGREEN
colors['darkseagreen1'] = DARKSEAGREEN1
colors['darkseagreen2'] = DARKSEAGREEN2
colors['darkseagreen3'] = DARKSEAGREEN3
colors['darkseagreen4'] = DARKSEAGREEN4
colors['darkslateblue'] = DARKSLATEBLUE
colors['darkslategray'] = DARKSLATEGRAY
colors['darkslategray1'] = DARKSLATEGRAY1
colors['darkslategray2'] = DARKSLATEGRAY2
colors['darkslategray3'] = DARKSLATEGRAY3
colors['darkslategray4'] = DARKSLATEGRAY4
colors['darkturquoise'] = DARKTURQUOISE
colors['darkviolet'] = DARKVIOLET
colors['deeppink1'] = DEEPPINK1
colors['deeppink2'] = DEEPPINK2
colors['deeppink3'] = DEEPPINK3
colors['deeppink4'] = DEEPPINK4
colors['deepskyblue1'] = DEEPSKYBLUE1
colors['deepskyblue2'] = DEEPSKYBLUE2
colors['deepskyblue3'] = DEEPSKYBLUE3
colors['deepskyblue4'] = DEEPSKYBLUE4
colors['dimgray'] = DIMGRAY
colors['dimgray'] = DIMGRAY
colors['dodgerblue1'] = DODGERBLUE1
colors['dodgerblue2'] = DODGERBLUE2
colors['dodgerblue3'] = DODGERBLUE3
colors['dodgerblue4'] = DODGERBLUE4
colors['eggshell'] = EGGSHELL
colors['emeraldgreen'] = EMERALDGREEN
colors['firebrick'] = FIREBRICK
colors['firebrick1'] = FIREBRICK1
colors['firebrick2'] = FIREBRICK2
colors['firebrick3'] = FIREBRICK3
colors['firebrick4'] = FIREBRICK4
colors['flesh'] = FLESH
colors['floralwhite'] = FLORALWHITE
colors['forestgreen'] = FORESTGREEN
colors['gainsboro'] = GAINSBORO
colors['ghostwhite'] = GHOSTWHITE
colors['gold1'] = GOLD1
colors['gold2'] = GOLD2
colors['gold3'] = GOLD3
colors['gold4'] = GOLD4
colors['goldenrod'] = GOLDENROD
colors['goldenrod1'] = GOLDENROD1
colors['goldenrod2'] = GOLDENROD2
colors['goldenrod3'] = GOLDENROD3
colors['goldenrod4'] = GOLDENROD4
colors['gray'] = GRAY
colors['gray1'] = GRAY1
colors['gray10'] = GRAY10
colors['gray11'] = GRAY11
colors['gray12'] = GRAY12
colors['gray13'] = GRAY13
colors['gray14'] = GRAY14
colors['gray15'] = GRAY15
colors['gray16'] = GRAY16
colors['gray17'] = GRAY17
colors['gray18'] = GRAY18
colors['gray19'] = GRAY19
colors['gray2'] = GRAY2
colors['gray20'] = GRAY20
colors['gray21'] = GRAY21
colors['gray22'] = GRAY22
colors['gray23'] = GRAY23
colors['gray24'] = GRAY24
colors['gray25'] = GRAY25
colors['gray26'] = GRAY26
colors['gray27'] = GRAY27
colors['gray28'] = GRAY28
colors['gray29'] = GRAY29
colors['gray3'] = GRAY3
colors['gray30'] = GRAY30
colors['gray31'] = GRAY31
colors['gray32'] = GRAY32
colors['gray33'] = GRAY33
colors['gray34'] = GRAY34
colors['gray35'] = GRAY35
colors['gray36'] = GRAY36
colors['gray37'] = GRAY37
colors['gray38'] = GRAY38
colors['gray39'] = GRAY39
colors['gray4'] = GRAY4
colors['gray40'] = GRAY40
colors['gray42'] = GRAY42
colors['gray43'] = GRAY43
colors['gray44'] = GRAY44
colors['gray45'] = GRAY45
colors['gray46'] = GRAY46
colors['gray47'] = GRAY47
colors['gray48'] = GRAY48
colors['gray49'] = GRAY49
colors['gray5'] = GRAY5
colors['gray50'] = GRAY50
colors['gray51'] = GRAY51
colors['gray52'] = GRAY52
colors['gray53'] = GRAY53
colors['gray54'] = GRAY54
colors['gray55'] = GRAY55
colors['gray56'] = GRAY56
colors['gray57'] = GRAY57
colors['gray58'] = GRAY58
colors['gray59'] = GRAY59
colors['gray6'] = GRAY6
colors['gray60'] = GRAY60
colors['gray61'] = GRAY61
colors['gray62'] = GRAY62
colors['gray63'] = GRAY63
colors['gray64'] = GRAY64
colors['gray65'] = GRAY65
colors['gray66'] = GRAY66
colors['gray67'] = GRAY67
colors['gray68'] = GRAY68
colors['gray69'] = GRAY69
colors['gray7'] = GRAY7
colors['gray70'] = GRAY70
colors['gray71'] = GRAY71
colors['gray72'] = GRAY72
colors['gray73'] = GRAY73
colors['gray74'] = GRAY74
colors['gray75'] = GRAY75
colors['gray76'] = GRAY76
colors['gray77'] = GRAY77
colors['gray78'] = GRAY78
colors['gray79'] = GRAY79
colors['gray8'] = GRAY8
colors['gray80'] = GRAY80
colors['gray81'] = GRAY81
colors['gray82'] = GRAY82
colors['gray83'] = GRAY83
colors['gray84'] = GRAY84
colors['gray85'] = GRAY85
colors['gray86'] = GRAY86
colors['gray87'] = GRAY87
colors['gray88'] = GRAY88
colors['gray89'] = GRAY89
colors['gray9'] = GRAY9
colors['gray90'] = GRAY90
colors['gray91'] = GRAY91
colors['gray92'] = GRAY92
colors['gray93'] = GRAY93
colors['gray94'] = GRAY94
colors['gray95'] = GRAY95
colors['gray97'] = GRAY97
colors['gray98'] = GRAY98
colors['gray99'] = GRAY99
colors['green'] = GREEN
colors['green1'] = GREEN1
colors['green2'] = GREEN2
colors['green3'] = GREEN3
colors['green4'] = GREEN4
colors['greenyellow'] = GREENYELLOW
colors['honeydew1'] = HONEYDEW1
colors['honeydew2'] = HONEYDEW2
colors['honeydew3'] = HONEYDEW3
colors['honeydew4'] = HONEYDEW4
colors['hotpink'] = HOTPINK
colors['hotpink1'] = HOTPINK1
colors['hotpink2'] = HOTPINK2
colors['hotpink3'] = HOTPINK3
colors['hotpink4'] = HOTPINK4
colors['indianred'] = INDIANRED
colors['indianred'] = INDIANRED
colors['indianred1'] = INDIANRED1
colors['indianred2'] = INDIANRED2
colors['indianred3'] = INDIANRED3
colors['indianred4'] = INDIANRED4
colors['indigo'] = INDIGO
colors['ivory1'] = IVORY1
colors['ivory2'] = IVORY2
colors['ivory3'] = IVORY3
colors['ivory4'] = IVORY4
colors['ivoryblack'] = IVORYBLACK
colors['khaki'] = KHAKI
colors['khaki1'] = KHAKI1
colors['khaki2'] = KHAKI2
colors['khaki3'] = KHAKI3
colors['khaki4'] = KHAKI4
colors['lavender'] = LAVENDER
colors['lavenderblush1'] = LAVENDERBLUSH1
colors['lavenderblush2'] = LAVENDERBLUSH2
colors['lavenderblush3'] = LAVENDERBLUSH3
colors['lavenderblush4'] = LAVENDERBLUSH4
colors['lawngreen'] = LAWNGREEN
colors['lemonchiffon1'] = LEMONCHIFFON1
colors['lemonchiffon2'] = LEMONCHIFFON2
colors['lemonchiffon3'] = LEMONCHIFFON3
colors['lemonchiffon4'] = LEMONCHIFFON4
colors['lightblue'] = LIGHTBLUE
colors['lightblue1'] = LIGHTBLUE1
colors['lightblue2'] = LIGHTBLUE2
colors['lightblue3'] = LIGHTBLUE3
colors['lightblue4'] = LIGHTBLUE4
colors['lightcoral'] = LIGHTCORAL
colors['lightcyan1'] = LIGHTCYAN1
colors['lightcyan2'] = LIGHTCYAN2
colors['lightcyan3'] = LIGHTCYAN3
colors['lightcyan4'] = LIGHTCYAN4
colors['lightgoldenrod1'] = LIGHTGOLDENROD1
colors['lightgoldenrod2'] = LIGHTGOLDENROD2
colors['lightgoldenrod3'] = LIGHTGOLDENROD3
colors['lightgoldenrod4'] = LIGHTGOLDENROD4
colors['lightgoldenrodyellow'] = LIGHTGOLDENRODYELLOW
colors['lightgrey'] = LIGHTGREY
colors['lightpink'] = LIGHTPINK
colors['lightpink1'] = LIGHTPINK1
colors['lightpink2'] = LIGHTPINK2
colors['lightpink3'] = LIGHTPINK3
colors['lightpink4'] = LIGHTPINK4
colors['lightsalmon1'] = LIGHTSALMON1
colors['lightsalmon2'] = LIGHTSALMON2
colors['lightsalmon3'] = LIGHTSALMON3
colors['lightsalmon4'] = LIGHTSALMON4
colors['lightseagreen'] = LIGHTSEAGREEN
colors['lightskyblue'] = LIGHTSKYBLUE
colors['lightskyblue1'] = LIGHTSKYBLUE1
colors['lightskyblue2'] = LIGHTSKYBLUE2
colors['lightskyblue3'] = LIGHTSKYBLUE3
colors['lightskyblue4'] = LIGHTSKYBLUE4
colors['lightslateblue'] = LIGHTSLATEBLUE
colors['lightslategray'] = LIGHTSLATEGRAY
colors['lightsteelblue'] = LIGHTSTEELBLUE
colors['lightsteelblue1'] = LIGHTSTEELBLUE1
colors['lightsteelblue2'] = LIGHTSTEELBLUE2
colors['lightsteelblue3'] = LIGHTSTEELBLUE3
colors['lightsteelblue4'] = LIGHTSTEELBLUE4
colors['lightyellow1'] = LIGHTYELLOW1
colors['lightyellow2'] = LIGHTYELLOW2
colors['lightyellow3'] = LIGHTYELLOW3
colors['lightyellow4'] = LIGHTYELLOW4
colors['limegreen'] = LIMEGREEN
colors['linen'] = LINEN
colors['magenta'] = MAGENTA
colors['magenta2'] = MAGENTA2
colors['magenta3'] = MAGENTA3
colors['magenta4'] = MAGENTA4
colors['manganeseblue'] = MANGANESEBLUE
colors['maroon'] = MAROON
colors['maroon1'] = MAROON1
colors['maroon2'] = MAROON2
colors['maroon3'] = MAROON3
colors['maroon4'] = MAROON4
colors['mediumorchid'] = MEDIUMORCHID
colors['mediumorchid1'] = MEDIUMORCHID1
colors['mediumorchid2'] = MEDIUMORCHID2
colors['mediumorchid3'] = MEDIUMORCHID3
colors['mediumorchid4'] = MEDIUMORCHID4
colors['mediumpurple'] = MEDIUMPURPLE
colors['mediumpurple1'] = MEDIUMPURPLE1
colors['mediumpurple2'] = MEDIUMPURPLE2
colors['mediumpurple3'] = MEDIUMPURPLE3
colors['mediumpurple4'] = MEDIUMPURPLE4
colors['mediumseagreen'] = MEDIUMSEAGREEN
colors['mediumslateblue'] = MEDIUMSLATEBLUE
colors['mediumspringgreen'] = MEDIUMSPRINGGREEN
colors['mediumturquoise'] = MEDIUMTURQUOISE
colors['mediumvioletred'] = MEDIUMVIOLETRED
colors['melon'] = MELON
colors['midnightblue'] = MIDNIGHTBLUE
colors['mint'] = MINT
colors['mintcream'] = MINTCREAM
colors['mistyrose1'] = MISTYROSE1
colors['mistyrose2'] = MISTYROSE2
colors['mistyrose3'] = MISTYROSE3
colors['mistyrose4'] = MISTYROSE4
colors['moccasin'] = MOCCASIN
colors['navajowhite1'] = NAVAJOWHITE1
colors['navajowhite2'] = NAVAJOWHITE2
colors['navajowhite3'] = NAVAJOWHITE3
colors['navajowhite4'] = NAVAJOWHITE4
colors['navy'] = NAVY
colors['oldlace'] = OLDLACE
colors['olive'] = OLIVE
colors['olivedrab'] = OLIVEDRAB
colors['olivedrab1'] = OLIVEDRAB1
colors['olivedrab2'] = OLIVEDRAB2
colors['olivedrab3'] = OLIVEDRAB3
colors['olivedrab4'] = OLIVEDRAB4
colors['orange'] = ORANGE
colors['orange1'] = ORANGE1
colors['orange2'] = ORANGE2
colors['orange3'] = ORANGE3
colors['orange4'] = ORANGE4
colors['orangered1'] = ORANGERED1
colors['orangered2'] = ORANGERED2
colors['orangered3'] = ORANGERED3
colors['orangered4'] = ORANGERED4
colors['orchid'] = ORCHID
colors['orchid1'] = ORCHID1
colors['orchid2'] = ORCHID2
colors['orchid3'] = ORCHID3
colors['orchid4'] = ORCHID4
colors['palegoldenrod'] = PALEGOLDENROD
colors['palegreen'] = PALEGREEN
colors['palegreen1'] = PALEGREEN1
colors['palegreen2'] = PALEGREEN2
colors['palegreen3'] = PALEGREEN3
colors['palegreen4'] = PALEGREEN4
colors['paleturquoise1'] = PALETURQUOISE1
colors['paleturquoise2'] = PALETURQUOISE2
colors['paleturquoise3'] = PALETURQUOISE3
colors['paleturquoise4'] = PALETURQUOISE4
colors['palevioletred'] = PALEVIOLETRED
colors['palevioletred1'] = PALEVIOLETRED1
colors['palevioletred2'] = PALEVIOLETRED2
colors['palevioletred3'] = PALEVIOLETRED3
colors['palevioletred4'] = PALEVIOLETRED4
colors['papayawhip'] = PAPAYAWHIP
colors['peachpuff1'] = PEACHPUFF1
colors['peachpuff2'] = PEACHPUFF2
colors['peachpuff3'] = PEACHPUFF3
colors['peachpuff4'] = PEACHPUFF4
colors['peacock'] = PEACOCK
colors['pink'] = PINK
colors['pink1'] = PINK1
colors['pink2'] = PINK2
colors['pink3'] = PINK3
colors['pink4'] = PINK4
colors['plum'] = PLUM
colors['plum1'] = PLUM1
colors['plum2'] = PLUM2
colors['plum3'] = PLUM3
colors['plum4'] = PLUM4
colors['powderblue'] = POWDERBLUE
colors['purple'] = PURPLE
colors['purple1'] = PURPLE1
colors['purple2'] = PURPLE2
colors['purple3'] = PURPLE3
colors['purple4'] = PURPLE4
colors['raspberry'] = RASPBERRY
colors['rawsienna'] = RAWSIENNA
colors['red1'] = RED1
colors['red2'] = RED2
colors['red3'] = RED3
colors['red4'] = RED4
colors['rosybrown'] = ROSYBROWN
colors['rosybrown1'] = ROSYBROWN1
colors['rosybrown2'] = ROSYBROWN2
colors['rosybrown3'] = ROSYBROWN3
colors['rosybrown4'] = ROSYBROWN4
colors['royalblue'] = ROYALBLUE
colors['royalblue1'] = ROYALBLUE1
colors['royalblue2'] = ROYALBLUE2
colors['royalblue3'] = ROYALBLUE3
colors['royalblue4'] = ROYALBLUE4
colors['salmon'] = SALMON
colors['salmon1'] = SALMON1
colors['salmon2'] = SALMON2
colors['salmon3'] = SALMON3
colors['salmon4'] = SALMON4
colors['sandybrown'] = SANDYBROWN
colors['sapgreen'] = SAPGREEN
colors['seagreen1'] = SEAGREEN1
colors['seagreen2'] = SEAGREEN2
colors['seagreen3'] = SEAGREEN3
colors['seagreen4'] = SEAGREEN4
colors['seashell1'] = SEASHELL1
colors['seashell2'] = SEASHELL2
colors['seashell3'] = SEASHELL3
colors['seashell4'] = SEASHELL4
colors['sepia'] = SEPIA
colors['sgibeet'] = SGIBEET
colors['sgibrightgray'] = SGIBRIGHTGRAY
colors['sgichartreuse'] = SGICHARTREUSE
colors['sgidarkgray'] = SGIDARKGRAY
colors['sgigray12'] = SGIGRAY12
colors['sgigray16'] = SGIGRAY16
colors['sgigray32'] = SGIGRAY32
colors['sgigray36'] = SGIGRAY36
colors['sgigray52'] = SGIGRAY52
colors['sgigray56'] = SGIGRAY56
colors['sgigray72'] = SGIGRAY72
colors['sgigray76'] = SGIGRAY76
colors['sgigray92'] = SGIGRAY92
colors['sgigray96'] = SGIGRAY96
colors['sgilightblue'] = SGILIGHTBLUE
colors['sgilightgray'] = SGILIGHTGRAY
colors['sgiolivedrab'] = SGIOLIVEDRAB
colors['sgisalmon'] = SGISALMON
colors['sgislateblue'] = SGISLATEBLUE
colors['sgiteal'] = SGITEAL
colors['sienna'] = SIENNA
colors['sienna1'] = SIENNA1
colors['sienna2'] = SIENNA2
colors['sienna3'] = SIENNA3
colors['sienna4'] = SIENNA4
colors['silver'] = SILVER
colors['skyblue'] = SKYBLUE
colors['skyblue1'] = SKYBLUE1
colors['skyblue2'] = SKYBLUE2
colors['skyblue3'] = SKYBLUE3
colors['skyblue4'] = SKYBLUE4
colors['slateblue'] = SLATEBLUE
colors['slateblue1'] = SLATEBLUE1
colors['slateblue2'] = SLATEBLUE2
colors['slateblue3'] = SLATEBLUE3
colors['slateblue4'] = SLATEBLUE4
colors['slategray'] = SLATEGRAY
colors['slategray1'] = SLATEGRAY1
colors['slategray2'] = SLATEGRAY2
colors['slategray3'] = SLATEGRAY3
colors['slategray4'] = SLATEGRAY4
colors['snow1'] = SNOW1
colors['snow2'] = SNOW2
colors['snow3'] = SNOW3
colors['snow4'] = SNOW4
colors['springgreen'] = SPRINGGREEN
colors['springgreen1'] = SPRINGGREEN1
colors['springgreen2'] = SPRINGGREEN2
colors['springgreen3'] = SPRINGGREEN3
colors['steelblue'] = STEELBLUE
colors['steelblue1'] = STEELBLUE1
colors['steelblue2'] = STEELBLUE2
colors['steelblue3'] = STEELBLUE3
colors['steelblue4'] = STEELBLUE4
colors['tan'] = TAN
colors['tan1'] = TAN1
colors['tan2'] = TAN2
colors['tan3'] = TAN3
colors['tan4'] = TAN4
colors['teal'] = TEAL
colors['thistle'] = THISTLE
colors['thistle1'] = THISTLE1
colors['thistle2'] = THISTLE2
colors['thistle3'] = THISTLE3
colors['thistle4'] = THISTLE4
colors['tomato1'] = TOMATO1
colors['tomato2'] = TOMATO2
colors['tomato3'] = TOMATO3
colors['tomato4'] = TOMATO4
colors['turquoise'] = TURQUOISE
colors['turquoise1'] = TURQUOISE1
colors['turquoise2'] = TURQUOISE2
colors['turquoise3'] = TURQUOISE3
colors['turquoise4'] = TURQUOISE4
colors['turquoiseblue'] = TURQUOISEBLUE
colors['violet'] = VIOLET
colors['violetred'] = VIOLETRED
colors['violetred1'] = VIOLETRED1
colors['violetred2'] = VIOLETRED2
colors['violetred3'] = VIOLETRED3
colors['violetred4'] = VIOLETRED4
colors['warmgrey'] = WARMGREY
colors['wheat'] = WHEAT
colors['wheat1'] = WHEAT1
colors['wheat2'] = WHEAT2
colors['wheat3'] = WHEAT3
colors['wheat4'] = WHEAT4
colors['white'] = WHITE
colors['whitesmoke'] = WHITESMOKE
colors['whitesmoke'] = WHITESMOKE
colors['yellow1'] = YELLOW1
colors['yellow2'] = YELLOW2
colors['yellow3'] = YELLOW3
colors['yellow4'] = YELLOW4
colors = OrderedDict(sorted(colors.items(), key=lambda t: t[0]))
*Thanks to cloford.com for all the color names.
Related Articles
- Fixing WebVTT Times with Python
- Using Python to Convert Images to WEBP
- Scientific Notation in Python
- Understanding Python’s __main__ variable
- Converting Leading Tabs to Spaces with Python
- pow(x, y, z) more efficient than x**y % z and other options
- A Python Model for Ping Pong Matches
- Bulk Convert Python files to IPython Notebook Files (py to ipynb conversion)
- Python’s date.strftime() slower than str(), split, unpack, and concatenate?
- Basic Python Programming Exercise: A Penny Doubled Every Day
- Bi-directional Dictionary in Python
- How to find all your Python installations on Windows (and Mac)
- Associate Python Files with IDLE
- Change Default autosave Interval in JupyterLab
- Python: isdigit() vs. isdecimal()
- Python Clocks Explained
- Python Color Constants Module (this article)
- Maximum recursion depth exceeded while calling a Python object
- When to use Static Methods in Python? Never
- Finally, a use case for finally – Python Exception Handling
- Creating an Email Decorator with Python and AWS
- Python Coding Challenge: Two People with the Same Birthday
- How to Create a Simple Simulation in Python – Numeric Data
- Collatz Conjecture in Python
- Simple Python Script for Extracting Text from an SRT File
- Python Virtual Environments with venv
- Mapping python to Python 3 on Your Mac
- How to Make IDLE the Default Editor for Python Files on Windows
- How to Do Ternary Operator Assignment in Python
- How to Convert Seconds to Years with Python
- How to Create a Python Package
- How to Read a File with Python
- How to Check the Operating System with Python
- How to Use enumerate() to Print a Numbered List in Python
- How to Repeatedly Append to a String in Python
- Checking your Sitemap for Broken Links with Python
- How to do Simultaneous Assignment in Python
- Visual Studio Code - Opening Files with Python open()
- How to Slice Strings in Python
- How Python Finds Imported Modules
- How to Merge Dictionaries in Python
- How to Index Strings in Python
- How to Create a Tuple in Python