python 教你如何创建一个自定义库 colorlib.py

目录

Colorlib

生成代码

模块代码

导入测试

测试一

测试二

应用测试

颜色列表 colorList

随机颜色元组 randcolorTuples

随机颜色字串 randcolorStrings

Color类测试

测试一

测试二

题外话


Colorlib

有没有碰到过这样的场景:写代码时想要用上丰富的色彩,但苦思冥想搜肠刮肚只记得这几个常用颜色词: 'BLACK', 'WHITE', 'RED', 'GREEN', 'BLUE', 'YELLOW', 'MAGENTA', 'CYAN',是不是有点尴尬。本篇将介绍怎样从现有库中抽取出有用的颜色自己创建一个库,比如seaborn库的colors包以及pygame库的colordict中都定义了很多种颜色,想到就马上行动起来,动手创建一个自定义颜色库——Colorlib。

生成代码

使用 python IDLE 载入以下代码,按F5就能一键生成自定义颜色库 colorlib.py:

from seaborn.colors import xkcd_rgb, crayons
from pygame.colordict import THECOLORS
 
str2tuple = lambda s: tuple(map(lambda x:int(x,16),(s[1:3],s[3:5],s[5:])))
tuple2str = lambda t: '#'+hex(t[0]*256**2+t[1]*256+t[2])[2:].rjust(6,'0').upper()
ColorDict = {}
for k,v in (*THECOLORS.items(), *xkcd_rgb.items(), *crayons.items()):
    ColorDict[k] = str2tuple(v) if isinstance(v, str) else v[:3]
for c in ('aqua', 'cyan', 'grey', 'pink', 'purple'):
    ColorDict[c.title()] = ColorDict[c]
_ = 'WHITE','YELLOW','MAGENTA','RED','CYAN','GREEN','BLUE','BLACK'
for k,v in zip(_, ((r,g,b)for r in(255,0)for g in(255,0)for b in(255,0))):
    ColorDict[k] = v
file = open('colorlib.py', 'w', encoding='utf-8')
print('''# -*- coding: utf-8 -*-
# #--------------------------------------------------------------------------
# Name:         colorlib.py
# Author:       Hann Yang (blog: https://hannyang.blog.****.net/)
#
# Version:      0.7.8
# Date:         March 20, 2024
#----------------------------------------------------------------------------
"""A module with a class Color and some constants and utility functions."""''', file=file)
print('''print(f"colorlib 0.7.8 for python 3.8+", file=__import__('sys').stdout)
print(f"Hello from Hann Yang. ", end='', file=__import__('sys').stderr)
print(f"https://hannyang.blog.****.net", file=__import__('sys').stdout)
\nfrom random import randint, sample\n\nColorDict = {''', file=file)
for k,v in ColorDict.items():
    print(f'{chr(34)}{k+chr(34):28} : ({v[0]:>3}, {v[1]:>3}, {v[2]:>3}), {tuple2str(v)}', file=file)
print('}\nColorString = {', file=file)
for k,v in ColorDict.items():
    print(f'{chr(34)}{k+chr(34):28} : "{tuple2str(v)}", #({v[0]:>3}, {v[1]:>3}, {v[2]:>3})', file=file)
print('''}\nColorRGBA = {k:(*v,255) for k,v in ColorDict.items()}
ColorList = list(set(ColorDict.values()))
str2tuple = lambda cstr: tuple(map(lambda x:int(x,16),(cstr[1:3],cstr[3:5],cstr[5:])))
tuple2str = lambda ctpl:"#"+hex(ctpl[0]*256**2+ctpl[1]*256+ctpl[2])[2:].rjust(6,"0").upper()
colorCount = len(ColorList)\ncolorCount2 = len(ColorDict)\nversion = "0.7.8"
randcolorName = lambda : list(ColorDict.keys())[randint(0,colorCount2-1)]
randcolorNames = lambda value=3: sample(list(ColorDict.keys()), value)
randcolorTuple = lambda : ColorList[randint(0,colorCount-1)]
randcolorTuples = lambda value=3: sample(ColorList, value)
randcolorString = lambda : list(ColorString.values())[randint(0,colorCount2-1)]
randcolorStrings = lambda value=3: sample(list(ColorString.values()), value)\n
class Color:
    \'\'\'\n    Color(3-tuple: tuple) -> Color # 3-tuple as (r, g, b)
    Color(4-tuple: tuple) -> Color # 4-tuple as (r, g, b, a)
    Color(color_name: str) -> Color # color_name as 'Red','Blue',...
    Color(color_string: str) -> Color # color_string as '#rrggbb'
    Object for color representations.\n    \'\'\'
    def __init__(self, r=0, g=0, b=0, a=None): 
        self.__alpha = (a is not None) and isinstance(a, (int, float))
        if all(map(lambda r:isinstance(r, (int, float)),(r,g,b))):
            self.r, self.g, self.b = map(lambda n:int(n)%256,(r,g,b))
        elif isinstance(r, (tuple, list)) and len(r) in (3, 4):  
            self.r, self.g, self.b = [int(c)%256 for c in r[:3]]  
            a = int(r[3])%256 if len(r)==4 else 255
        elif isinstance(r, str) and len(r)==7 and r.startswith('#'):  
            self.r, self.g, self.b = str2tuple(r)  
        elif isinstance(r, str):
            if (rgb := ColorDict.get(r, None)) is None:
                raise ValueError("Invalid Color Name")
            self.r, self.g, self.b, a = *rgb, 255
        else:
            raise ValueError("Invalid argument for class Color")
        self.a = a if self.__alpha else 255
        self.rgb = self.r, self.g, self.b
        self.rgba = self.r, self.g, self.b, self.a
        self.value = self.rgba if self.__alpha else self.rgb
        self.string = tuple2str(self.value[:3])
        self.decimal = tuple(map(lambda x:x/255, self.rgba))
        self.name = {v:k for k,v in ColorDict.items()}.get(self.rgb, 'Noname')
    def __repr__(self):
        rgba = 'RGBA(' if self.__alpha else 'RGB('
        return ', '.join(map(lambda x:str(x).rjust(3),self.value)).join((rgba,')'))
    def randcolor(self):
        \'\'\'Convert the Color to any random color in ColorDict.keys().\'\'\'
        r, g, b = randcolorTuple()
        return Color(r, g, b, self.a) if self.__alpha else Color(r, g, b)
    def random(self):
        \'\'\'Set rgb value to a 3-tuple of random integer between 0 and 255.\'\'\'
        r, g, b = randint(0,255), randint(0,255), randint(0,255)
        return Color(r, g, b, self.a) if self.__alpha else Color(r, g, b)
    def alpha(self, a=255):
        \'\'\'Set alpha value of the Color, or change RGB to RGBA.\'\'\'
        return Color(*self.rgb, a)''', file=file)
file.close()
print('Module file "colorlib.py" has been created.')

运行代码需要安装 seaborn, pygame,安装这2两个库同时会附带安装多个库文件,如matplotlib,pyparsing等等:

“Successfully installed contourpy-1.1.1 cycler-0.12.1 fonttools-4.50.0 importlib-resources-6.3.2 kiwisolver-1.4.5 matplotlib-3.7.5 pyparsing-3.1.2 seaborn-0.13.2”

模块代码

创建完成后,colorlib库一共保存了1546种有名字的颜色,颜色名称共有1698种,因为有部分颜色同名。如不想安装seaborn和pygame这个库,可以把上述代码所创建的内容(见以下代码框)另存为colorlib.py即可。

# -*- coding: utf-8 -*-
# #--------------------------------------------------------------------------
# Name:         colorlib.py
# Author:       Hann Yang (blog: https://hannyang.blog.****.net/)
#
# Version:      0.7.8
# Date:         March 20, 2024
#----------------------------------------------------------------------------
"""A module with a class Color and some constants and utility functions."""
print(f"colorlib 0.7.8 for python 3.8+", file=__import__('sys').stdout)
print(f"Hello from Hann Yang. ", end='', file=__import__('sys').stderr)
print(f"https://hannyang.blog.****.net", file=__import__('sys').stdout)

from random import randint, sample

ColorDict = {
"aliceblue"                   : (240, 248, 255), #F0F8FF
"antiquewhite"                : (250, 235, 215), #FAEBD7
"antiquewhite1"               : (255, 239, 219), #FFEFDB
"antiquewhite2"               : (238, 223, 204), #EEDFCC
"antiquewhite3"               : (205, 192, 176), #CDC0B0
"antiquewhite4"               : (139, 131, 120), #8B8378
"aqua"                        : ( 19, 234, 201), #13EAC9
"aquamarine"                  : (  4, 216, 178), #04D8B2
"aquamarine1"                 : (127, 255, 212), #7FFFD4
"aquamarine2"                 : (118, 238, 198), #76EEC6
"aquamarine3"                 : (102, 205, 170), #66CDAA
"aquamarine4"                 : ( 69, 139, 116), #458B74
"azure"                       : (  6, 154, 243), #069AF3
"azure1"                      : (240, 255, 255), #F0FFFF
"azure3"                      : (193, 205, 205), #C1CDCD
"azure2"                      : (224, 238, 238), #E0EEEE
"azure4"                      : (131, 139, 139), #838B8B
"beige"                       : (230, 218, 166), #E6DAA6
"bisque"                      : (255, 228, 196), #FFE4C4
"bisque1"                     : (255, 228, 196), #FFE4C4
"bisque2"                     : (238, 213, 183), #EED5B7
"bisque3"                     : (205, 183, 158), #CDB79E
"bisque4"                     : (139, 125, 107), #8B7D6B
"black"                       : (  0,   0,   0), #000000
"blanchedalmond"              : (255, 235, 205), #FFEBCD
"blue"                        : (  3,  67, 223), #0343DF
"blue1"                       : (  0,   0, 255), #0000FF
"blue2"                       : (  0,   0, 238), #0000EE
"blue3"                       : (  0,   0, 205), #0000CD
"blue4"                       : (  0,   0, 139), #00008B
"blueviolet"                  : (138,  43, 226), #8A2BE2
"brown"                       : (101,  55,   0), #653700
"brown1"                      : (255,  64,  64), #FF4040
"brown2"                      : (238,  59,  59), #EE3B3B
"brown3"                      : (205,  51,  51), #CD3333
"brown4"                      : (139,  35,  35), #8B2323
"burlywood"                   : (222, 184, 135), #DEB887
"burlywood1"                  : (255, 211, 155), #FFD39B
"burlywood2"                  : (238, 197, 145), #EEC591
"burlywood3"                  : (205, 170, 125), #CDAA7D
"burlywood4"                  : (139, 115,  85), #8B7355
"cadetblue"                   : ( 95, 158, 160), #5F9EA0
"cadetblue1"                  : (152, 245, 255), #98F5FF
"cadetblue2"                  : (142, 229, 238), #8EE5EE
"cadetblue3"                  : (122, 197, 205), #7AC5CD
"cadetblue4"                  : ( 83, 134, 139), #53868B
"chartreuse"                  : (193, 248,  10), #C1F80A
"chartreuse1"                 : (127, 255,   0), #7FFF00
"chartreuse2"                 : (118, 238,   0), #76EE00
"chartreuse3"                 : (102, 205,   0), #66CD00
"chartreuse4"                 : ( 69, 139,   0), #458B00
"chocolate"                   : ( 61,  28,   2), #3D1C02
"chocolate1"                  : (255, 127,  36), #FF7F24
"chocolate2"                  : (238, 118,  33), #EE7621
"chocolate3"                  : (205, 102,  29), #CD661D
"chocolate4"                  : (139,  69,  19), #8B4513
"coral"                       : (252,  90,  80), #FC5A50
"coral1"                      : (255, 114,  86), #FF7256
"coral2"                      : (238, 106,  80), #EE6A50
"coral3"                      : (205,  91,  69), #CD5B45
"coral4"                      : (139,  62,  47), #8B3E2F
"cornflowerblue"              : (100, 149, 237), #6495ED
"cornsilk"                    : (255, 248, 220), #FFF8DC
"cornsilk1"                   : (255, 248, 220), #FFF8DC
"cornsilk2"                   : (238, 232, 205), #EEE8CD
"cornsilk3"                   : (205, 200, 177), #CDC8B1
"cornsilk4"                   : (139, 136, 120), #8B8878
"crimson"                     : (140,   0,  15), #8C000F
"cyan"                        : (  0, 255, 255), #00FFFF
"cyan1"                       : (  0, 255, 255), #00FFFF
"cyan2"                       : (  0, 238, 238), #00EEEE
"cyan3"                       : (  0, 205, 205), #00CDCD
"cyan4"                       : (  0, 139, 139), #008B8B
"darkblue"                    : (  3,   7, 100), #030764
"darkcyan"                    : (  0, 139, 139), #008B8B
"darkgoldenrod"               : (184, 134,  11), #B8860B
"darkgoldenrod1"              : (255, 185,  15), #FFB90F
"darkgoldenrod2"              : (238, 173,  14), #EEAD0E
"darkgoldenrod3"              : (205, 149,  12), #CD950C
"darkgoldenrod4"              : (139, 101,   8), #8B6508
"darkgray"                    : (169, 169, 169), #A9A9A9
"darkgreen"                   : (  5,  73,   7), #054907
"darkgrey"                    : (169, 169, 169), #A9A9A9
"darkkhaki"                   : (189, 183, 107), #BDB76B
"darkmagenta"                 : (139,   0, 139), #8B008B
"darkolivegreen"              : ( 85, 107,  47), #556B2F
"darkolivegreen1"             : (202, 255, 112), #CAFF70
"darkolivegreen2"             : (188, 238, 104), #BCEE68
"darkolivegreen3"             : (162, 205,  90), #A2CD5A
"darkolivegreen4"             : (110, 139,  61), #6E8B3D
"darkorange"                  : (255, 140,   0), #FF8C00
"darkorange1"                 : (255, 127,   0), #FF7F00
"darkorange2"                 : (238, 118,   0), #EE7600
"darkorange3"                 : (205, 102,   0), #CD6600
"darkorange4"                 : (139,  69,   0), #8B4500
"darkorchid"                  : (153,  50, 204), #9932CC
"darkorchid1"                 : (191,  62, 255), #BF3EFF
"darkorchid2"                 : (178,  58, 238), #B23AEE
"darkorchid3"                 : (154,  50, 205), #9A32CD
"darkorchid4"                 : (104,  34, 139), #68228B
"darkred"                     : (139,   0,   0), #8B0000
"darksalmon"                  : (233, 150, 122), #E9967A
"darkseagreen"                : (143, 188, 143), #8FBC8F
"darkseagreen1"               : (193, 255, 193), #C1FFC1
"darkseagreen2"               : (180, 238, 180), #B4EEB4
"darkseagreen3"               : (155, 205, 155), #9BCD9B
"darkseagreen4"               : (105, 139, 105), #698B69
"darkslateblue"               : ( 72,  61, 139), #483D8B
"darkslategray"               : ( 47,  79,  79), #2F4F4F
"darkslategray1"              : (151, 255, 255), #97FFFF
"darkslategray2"              : (141, 238, 238), #8DEEEE
"darkslategray3"              : (121, 205, 205), #79CDCD
"darkslategray4"              : ( 82, 139, 139), #528B8B
"darkslategrey"               : ( 47,  79,  79), #2F4F4F
"darkturquoise"               : (  0, 206, 209), #00CED1
"darkviolet"                  : (148,   0, 211), #9400D3
"deeppink"                    : (255,  20, 147), #FF1493
"deeppink1"                   : (255,  20, 147), #FF1493
"deeppink2"                   : (238,  18, 137), #EE1289
"deeppink3"                   : (205,  16, 118), #CD1076
"deeppink4"                   : (139,  10,  80), #8B0A50
"deepskyblue"                 : (  0, 191, 255), #00BFFF
"deepskyblue1"                : (  0, 191, 255), #00BFFF
"deepskyblue2"                : (  0, 178, 238), #00B2EE
"deepskyblue3"                : (  0, 154, 205), #009ACD
"deepskyblue4"                : (  0, 104, 139), #00688B
"dimgray"                     : (105, 105, 105), #696969
"dimgrey"                     : (105, 105, 105), #696969
"dodgerblue"                  : ( 30, 144, 255), #1E90FF
"dodgerblue1"                 : ( 30, 144, 255), #1E90FF
"dodgerblue2"                 : ( 28, 134, 238), #1C86EE
"dodgerblue3"                 : ( 24, 116, 205), #1874CD
"dodgerblue4"                 : ( 16,  78, 139), #104E8B
"firebrick"                   : (178,  34,  34), #B22222
"firebrick1"                  : (255,  48,  48), #FF3030
"firebrick2"                  : (238,  44,  44), #EE2C2C
"firebrick3"                  : (205,  38,  38), #CD2626
"firebrick4"                  : (139,  26,  26), #8B1A1A
"floralwhite"                 : (255, 250, 240), #FFFAF0
"forestgreen"                 : ( 34, 139,  34), #228B22
"fuchsia"                     : (237,  13, 217), #ED0DD9
"gainsboro"                   : (220, 220, 220), #DCDCDC
"ghostwhite"                  : (248, 248, 255), #F8F8FF
"gold"                        : (219, 180,  12), #DBB40C
"gold1"                       : (255, 215,   0), #FFD700
"gold2"                       : (238, 201,   0), #EEC900
"gold3"                       : (205, 173,   0), #CDAD00
"gold4"                       : (139, 117,   0), #8B7500
"goldenrod"                   : (250, 194,   5), #FAC205
"goldenrod1"                  : (255, 193,  37), #FFC125
"goldenrod2"                  : (238, 180,  34), #EEB422
"goldenrod3"                  : (205, 155,  29), #CD9B1D
"goldenrod4"                  : (139, 105,  20), #8B6914
"gray"                        : (190, 190, 190), #BEBEBE
"gray0"                       : (  0,   0,   0), #000000
"gray1"                       : (  3,   3,   3), #030303
"gray2"                       : (  5,   5,   5), #050505
"gray3"                       : (  8,   8,   8), #080808
"gray4"                       : ( 10,  10,  10), #0A0A0A
"gray5"                       : ( 13,  13,  13), #0D0D0D
"gray6"                       : ( 15,  15,  15), #0F0F0F
"gray7"                       : ( 18,  18,  18), #121212
"gray8"                       : ( 20,  20,  20), #141414
"gray9"                       : ( 23,  23,  23), #171717
"gray10"                      : ( 26,  26,  26), #1A1A1A
"gray11"                      : ( 28,  28,  28), #1C1C1C
"gray12"                      : ( 31,  31,  31), #1F1F1F
"gray13"                      : ( 33,  33,  33), #212121
"gray14"                      : ( 36,  36,  36), #242424
"gray15"                      : ( 38,  38,  38), #262626
"gray16"                      : ( 41,  41,  41), #292929
"gray17"                      : ( 43,  43,  43), #2B2B2B
"gray18"                      : ( 46,  46,  46), #2E2E2E
"gray19"                      : ( 48,  48,  48), #303030
"gray20"                      : ( 51,  51,  51), #333333
"gray21"                      : ( 54,  54,  54), #363636
"gray22"                      : ( 56,  56,  56), #383838
"gray23"                      : ( 59,  59,  59), #3B3B3B
"gray24"                      : ( 61,  61,  61), #3D3D3D
"gray25"                      : ( 64,  64,  64), #404040
"gray26"                      : ( 66,  66,  66), #424242
"gray27"                      : ( 69,  69,  69), #454545
"gray28"                      : ( 71,  71,  71), #474747
"gray29"                      : ( 74,  74,  74), #4A4A4A
"gray30"                      : ( 77,  77,  77), #4D4D4D
"gray31"                      : ( 79,  79,  79), #4F4F4F
"gray32"                      : ( 82,  82,  82), #525252
"gray33"                      : ( 84,  84,  84), #545454
"gray34"                      : ( 87,  87,  87), #575757
"gray35"                      : ( 89,  89,  89), #595959
"gray36"                      : ( 92,  92,  92), #5C5C5C
"gray37"                      : ( 94,  94,  94), #5E5E5E
"gray38"                      : ( 97,  97,  97), #616161
"gray39"                      : ( 99,  99,  99), #636363
"gray40"                      : (102, 102, 102), #666666
"gray41"                      : (105, 105, 105), #696969
"gray42"                      : (107, 107, 107), #6B6B6B
"gray43"                      : (110, 110, 110), #6E6E6E
"gray44"                      : (112, 112, 112), #707070
"gray45"                      : (115, 115, 115), #737373
"gray46"                      : (117, 117, 117), #757575
"gray47"                      : (120, 120, 120), #787878
"gray48"                      : (122, 122, 122), #7A7A7A
"gray49"                      : (125, 125, 125), #7D7D7D
"gray50"                      : (127, 127, 127), #7F7F7F
"gray51"                      : (130, 130, 130), #828282
"gray52"                      : (133, 133, 133), #858585
"gray53"                      : (135, 135, 135), #878787
"gray54"                      : (138, 138, 138), #8A8A8A
"gray55"                      : (140, 140, 140), #8C8C8C
"gray56"                      : (143, 143, 143), #8F8F8F
"gray57"                      : (145, 145, 145), #919191
"gray58"                      : (148, 148, 148), #949494
"gray59"                      : (150, 150, 150), #969696
"gray60"                      : (153, 153, 153), #999999
"gray61"                      : (156, 156, 156), #9C9C9C
"gray62"                      : (158, 158, 158), #9E9E9E
"gray63"                      : (161, 161, 161), #A1A1A1
"gray64"                      : (163, 163, 163), #A3A3A3
"gray65"                      : (166, 166, 166), #A6A6A6
"gray66"                      : (168, 168, 168), #A8A8A8
"gray67"                      : (171, 171, 171), #ABABAB
"gray68"                      : (173, 173, 173), #ADADAD
"gray69"                      : (176, 176, 176), #B0B0B0
"gray70"                      : (179, 179, 179), #B3B3B3
"gray71"                      : (181, 181, 181), #B5B5B5
"gray72"                      : (184, 184, 184), #B8B8B8
"gray73"                      : (186, 186, 186), #BABABA
"gray74"                      : (189, 189, 189), #BDBDBD
"gray75"                      : (191, 191, 191), #BFBFBF
"gray76"                      : (194, 194, 194), #C2C2C2
"gray77"                      : (196, 196, 196), #C4C4C4
"gray78"                      : (199, 199, 199), #C7C7C7
"gray79"                      : (201, 201, 201), #C9C9C9
"gray80"                      : (204, 204, 204), #CCCCCC
"gray81"                      : (207, 207, 207), #CFCFCF
"gray82"                      : (209, 209, 209), #D1D1D1
"gray83"                      : (212, 212, 212), #D4D4D4
"gray84"                      : (214, 214, 214), #D6D6D6
"gray85"                      : (217, 217, 217), #D9D9D9
"gray86"                      : (219, 219, 219), #DBDBDB
"gray87"                      : (222, 222, 222), #DEDEDE
"gray88"                      : (224, 224, 224), #E0E0E0
"gray89"                      : (227, 227, 227), #E3E3E3
"gray90"                      : (229, 229, 229), #E5E5E5
"gray91"                      : (232, 232, 232), #E8E8E8
"gray92"                      : (235, 235, 235), #EBEBEB
"gray93"                      : (237, 237, 237), #EDEDED
"gray94"                      : (240, 240, 240), #F0F0F0
"gray95"                      : (242, 242, 242), #F2F2F2
"gray96"                      : (245, 245, 245), #F5F5F5
"gray97"                      : (247, 247, 247), #F7F7F7
"gray98"                      : (250, 250, 250), #FAFAFA
"gray99"                      : (252, 252, 252), #FCFCFC
"gray100"                     : (255, 255, 255), #FFFFFF
"green"                       : ( 21, 176,  26), #15B01A
"green1"                      : (  0, 255,   0), #00FF00
"green2"                      : (  0, 238,   0), #00EE00
"green3"                      : (  0, 205,   0), #00CD00
"green4"                      : (  0, 139,   0), #008B00
"greenyellow"                 : (173, 255,  47), #ADFF2F
"grey"                        : (146, 149, 145), #929591
"grey0"                       : (  0,   0,   0), #000000
"grey1"                       : (  3,   3,   3), #030303
"grey2"                       : (  5,   5,   5), #050505
"grey3"                       : (  8,   8,   8), #080808
"grey4"                       : ( 10,  10,  10), #0A0A0A
"grey5"                       : ( 13,  13,  13), #0D0D0D
"grey6"                       : ( 15,  15,  15), #0F0F0F
"grey7"                       : ( 18,  18,  18), #121212
"grey8"                       : ( 20,  20,  20), #141414
"grey9"                       : ( 23,  23,  23), #171717
"grey10"                      : ( 26,  26,  26), #1A1A1A
"grey11"                      : ( 28,  28,  28), #1C1C1C
"grey12"                      : ( 31,  31,  31), #1F1F1F
"grey13"                      : ( 33,  33,  33), #212121
"grey14"                      : ( 36,  36,  36), #242424
"grey15"                      : ( 38,  38,  38), #262626
"grey16"                      : ( 41,  41,  41), #292929
"grey17"                      : ( 43,  43,  43), #2B2B2B
"grey18"                      : ( 46,  46,  46), #2E2E2E
"grey19"                      : ( 48,  48,  48), #303030
"grey20"                      : ( 51,  51,  51), #333333
"grey21"                      : ( 54,  54,  54), #363636
"grey22"                      : ( 56,  56,  56), #383838
"grey23"                      : ( 59,  59,  59), #3B3B3B
"grey24"                      : ( 61,  61,  61), #3D3D3D
"grey25"                      : ( 64,  64,  64), #404040
"grey26"                      : ( 66,  66,  66), #424242
"grey27"                      : ( 69,  69,  69), #454545
"grey28"                      : ( 71,  71,  71), #474747
"grey29"                      : ( 74,  74,  74), #4A4A4A
"grey30"                      : ( 77,  77,  77), #4D4D4D
"grey31"                      : ( 79,  79,  79), #4F4F4F
"grey32"                      : ( 82,  82,  82), #525252
"grey33"                      : ( 84,  84,  84), #545454
"grey34"                      : ( 87,  87,  87), #575757
"grey35"                      : ( 89,  89,  89), #595959
"grey36"                      : ( 92,  92,  92), #5C5C5C
"grey37"                      : ( 94,  94,  94), #5E5E5E
"grey38"                      : ( 97,  97,  97), #616161
"grey39"                      : ( 99,  99,  99), #636363
"grey40"                      : (102, 102, 102), #666666
"grey41"                      : (105, 105, 105), #696969
"grey42"                      : (107, 107, 107), #6B6B6B
"grey43"                      : (110, 110, 110), #6E6E6E
"grey44"                      : (112, 112, 112), #707070
"grey45"                      : (115, 115, 115), #737373
"grey46"                      : (117, 117, 117), #757575
"grey47"                      : (120, 120, 120), #787878
"grey48"                      : (122, 122, 122), #7A7A7A
"grey49"                      : (125, 125, 125), #7D7D7D
"grey50"                      : (127, 127, 127), #7F7F7F
"grey51"                      : (130, 130, 130), #828282
"grey52"                      : (133, 133, 133), #858585
"grey53"                      : (135, 135, 135), #878787
"grey54"                      : (138, 138, 138), #8A8A8A
"grey55"                      : (140, 140, 140), #8C8C8C
"grey56"                      : (143, 143, 143), #8F8F8F
"grey57"                      : (145, 145, 145), #919191
"grey58"                      : (148, 148, 148), #949494
"grey59"                      : (150, 150, 150), #969696
"grey60"                      : (153, 153, 153), #999999
"grey61"                      : (156, 156, 156), #9C9C9C
"grey62"                      : (158, 158, 158), #9E9E9E
"grey63"                      : (161, 161, 161), #A1A1A1
"grey64"                      : (163, 163, 163), #A3A3A3
"grey65"                      : (166, 166, 166), #A6A6A6
"grey66"                      : (168, 168, 168), #A8A8A8
"grey67"                      : (171, 171, 171), #ABABAB
"grey68"                      : (173, 173, 173), #ADADAD
"grey69"                      : (176, 176, 176), #B0B0B0
"grey70"                      : (179, 179, 179), #B3B3B3
"grey71"                      : (181, 181, 181), #B5B5B5
"grey72"                      : (184, 184, 184), #B8B8B8
"grey73"                      : (186, 186, 186), #BABABA
"grey74"                      : (189, 189, 189), #BDBDBD
"grey75"                      : (191, 191, 191), #BFBFBF
"grey76"                      : (194, 194, 194), #C2C2C2
"grey77"                      : (196, 196, 196), #C4C4C4
"grey78"                      : (199, 199, 199), #C7C7C7
"grey79"                      : (201, 201, 201), #C9C9C9
"grey80"                      : (204, 204, 204), #CCCCCC
"grey81"                      : (207, 207, 207), #CFCFCF
"grey82"                      : (209, 209, 209), #D1D1D1
"grey83"                      : (212, 212, 212), #D4D4D4
"grey84"                      : (214, 214, 214), #D6D6D6
"grey85"                      : (217, 217, 217), #D9D9D9
"grey86"                      : (219, 219, 219), #DBDBDB
"grey87"                      : (222, 222, 222), #DEDEDE
"grey88"                      : (224, 224, 224), #E0E0E0
"grey89"                      : (227, 227, 227), #E3E3E3
"grey90"                      : (229, 229, 229), #E5E5E5
"grey91"                      : (232, 232, 232), #E8E8E8
"grey92"                      : (235, 235, 235), #EBEBEB
"grey93"                      : (237, 237, 237), #EDEDED
"grey94"                      : (240, 240, 240), #F0F0F0
"grey95"                      : (242, 242, 242), #F2F2F2
"grey96"                      : (245, 245, 245), #F5F5F5
"grey97"                      : (247, 247, 247), #F7F7F7
"grey98"                      : (250, 250, 250), #FAFAFA
"grey99"                      : (252, 252, 252), #FCFCFC
"grey100"                     : (255, 255, 255), #FFFFFF
"honeydew"                    : (240, 255, 240), #F0FFF0
"honeydew1"                   : (240, 255, 240), #F0FFF0
"honeydew2"                   : (224, 238, 224), #E0EEE0
"honeydew3"                   : (193, 205, 193), #C1CDC1
"honeydew4"                   : (131, 139, 131), #838B83
"hotpink"                     : (255, 105, 180), #FF69B4
"hotpink1"                    : (255, 110, 180), #FF6EB4
"hotpink2"                    : (238, 106, 167), #EE6AA7
"hotpink3"                    : (205,  96, 144), #CD6090
"hotpink4"                    : (139,  58,  98), #8B3A62
"indianred"                   : (205,  92,  92), #CD5C5C
"indianred1"                  : (255, 106, 106), #FF6A6A
"indianred2"                  : (238,  99,  99), #EE6363
"indianred3"                  : (205,  85,  85), #CD5555
"indianred4"                  : (139,  58,  58), #8B3A3A
"indigo"                      : ( 56,   2, 130), #380282
"ivory"                       : (255, 255, 203), #FFFFCB
"ivory1"                      : (255, 255, 240), #FFFFF0
"ivory2"                      : (238, 238, 224), #EEEEE0
"ivory3"                      : (205, 205, 193), #CDCDC1
"ivory4"                      : (139, 139, 131), #8B8B83
"khaki"                       : (170, 166,  98), #AAA662
"khaki1"                      : (255, 246, 143), #FFF68F
"khaki2"                      : (238, 230, 133), #EEE685
"khaki3"                      : (205, 198, 115), #CDC673
"khaki4"                      : (139, 134,  78), #8B864E
"lavender"                    : (199, 159, 239), #C79FEF
"lavenderblush"               : (255, 240, 245), #FFF0F5
"lavenderblush1"              : (255, 240, 245), #FFF0F5
"lavenderblush2"              : (238, 224, 229), #EEE0E5
"lavenderblush3"              : (205, 193, 197), #CDC1C5
"lavenderblush4"              : (139, 131, 134), #8B8386
"lawngreen"                   : (124, 252,   0), #7CFC00
"lemonchiffon"                : (255, 250, 205), #FFFACD
"lemonchiffon1"               : (255, 250, 205), #FFFACD
"lemonchiffon2"               : (238, 233, 191), #EEE9BF
"lemonchiffon3"               : (205, 201, 165), #CDC9A5
"lemonchiffon4"               : (139, 137, 112), #8B8970
"lightblue"                   : (123, 200, 246), #7BC8F6
"lightblue1"                  : (191, 239, 255), #BFEFFF
"lightblue2"                  : (178, 223, 238), #B2DFEE
"lightblue3"                  : (154, 192, 205), #9AC0CD
"lightblue4"                  : (104, 131, 139), #68838B
"lightcoral"                  : (240, 128, 128), #F08080
"lightcyan"                   : (224, 255, 255), #E0FFFF
"lightcyan1"                  : (224, 255, 255), #E0FFFF
"lightcyan2"                  : (209, 238, 238), #D1EEEE
"lightcyan3"                  : (180, 205, 205), #B4CDCD
"lightcyan4"                  : (122, 139, 139), #7A8B8B
"lightgoldenrod"              : (238, 221, 130), #EEDD82
"lightgoldenrod1"             : (255, 236, 139), #FFEC8B
"lightgoldenrod2"             : (238, 220, 130), #EEDC82
"lightgoldenrod3"             : (205, 190, 112), #CDBE70
"lightgoldenrod4"             : (139, 129,  76), #8B814C
"lightgoldenrodyellow"        : (250, 250, 210), #FAFAD2
"lightgray"                   : (211, 211, 211), #D3D3D3
"lightgreen"                  : (118, 255, 123), #76FF7B
"lightgrey"                   : (211, 211, 211), #D3D3D3
"lightpink"                   : (255, 182, 193), #FFB6C1
"lightpink1"                  : (255, 174, 185), #FFAEB9
"lightpink2"                  : (238, 162, 173), #EEA2AD
"lightpink3"                  : (205, 140, 149), #CD8C95
"lightpink4"                  : (139,  95, 101), #8B5F65
"lightsalmon"                 : (255, 160, 122), #FFA07A
"lightsalmon1"                : (255, 160, 122), #FFA07A
"lightsalmon2"                : (238, 149, 114), #EE9572
"lightsalmon3"                : (205, 129,  98), #CD8162
"lightsalmon4"                : (139,  87,  66), #8B5742
"lightseagreen"               : ( 32, 178, 170), #20B2AA
"lightskyblue"                : (135, 206, 250), #87CEFA
"lightskyblue1"               : (176, 226, 255), #B0E2FF
"lightskyblue2"               : (164, 211, 238), #A4D3EE
"lightskyblue3"               : (141, 182, 205), #8DB6CD
"lightskyblue4"               : ( 96, 123, 139), #607B8B
"lightslateblue"              : (132, 112, 255), #8470FF
"lightslategray"              : (119, 136, 153), #778899
"lightslategrey"              : (119, 136, 153), #778899
"lightsteelblue"              : (176, 196, 222), #B0C4DE
"lightsteelblue1"             : (202, 225, 255), #CAE1FF
"lightsteelblue2"             : (188, 210, 238), #BCD2EE
"lightsteelblue3"             : (162, 181, 205), #A2B5CD
"lightsteelblue4"             : (110, 123, 139), #6E7B8B
"lightyellow"                 : (255, 255, 224), #FFFFE0
"lightyellow1"                : (255, 255, 224), #FFFFE0
"lightyellow2"                : (238, 238, 209), #EEEED1
"lightyellow3"                : (205, 205, 180), #CDCDB4
"lightyellow4"                : (139, 139, 122), #8B8B7A
"linen"                       : (250, 240, 230), #FAF0E6
"lime"                        : (170, 255,  50), #AAFF32
"limegreen"                   : ( 50, 205,  50), #32CD32
"magenta"                     : (194,   0, 120), #C20078
"magenta1"                    : (255,   0, 255), #FF00FF
"magenta2"                    : (238,   0, 238), #EE00EE
"magenta3"                    : (205,   0, 205), #CD00CD
"magenta4"                    : (139,   0, 139), #8B008B
"maroon"                      : (101,   0,  33), #650021
"maroon1"                     : (255,  52, 179), #FF34B3
"maroon2"                     : (238,  48, 167), #EE30A7
"maroon3"                     : (205,  41, 144), #CD2990
"maroon4"                     : (139,  28,  98), #8B1C62
"mediumaquamarine"            : (102, 205, 170), #66CDAA
"mediumblue"                  : (  0,   0, 205), #0000CD
"mediumorchid"                : (186,  85, 211), #BA55D3
"mediumorchid1"               : (224, 102, 255), #E066FF
"mediumorchid2"               : (209,  95, 238), #D15FEE
"mediumorchid3"               : (180,  82, 205), #B452CD
"mediumorchid4"               : (122,  55, 139), #7A378B
"mediumpurple"                : (147, 112, 219), #9370DB
"mediumpurple1"               : (171, 130, 255), #AB82FF
"mediumpurple2"               : (159, 121, 238), #9F79EE
"mediumpurple3"               : (137, 104, 205), #8968CD
"mediumpurple4"               : ( 93,  71, 139), #5D478B
"mediumseagreen"              : ( 60, 179, 113), #3CB371
"mediumslateblue"             : (123, 104, 238), #7B68EE
"mediumspringgreen"           : (  0, 250, 154), #00FA9A
"mediumturquoise"             : ( 72, 209, 204), #48D1CC
"mediumvioletred"             : (199,  21, 133), #C71585
"midnightblue"                : ( 25,  25, 112), #191970
"mintcream"                   : (245, 255, 250), #F5FFFA
"mistyrose"                   : (255, 228, 225), #FFE4E1
"mistyrose1"                  : (255, 228, 225), #FFE4E1
"mistyrose2"                  : (238, 213, 210), #EED5D2
"mistyrose3"                  : (205, 183, 181), #CDB7B5
"mistyrose4"                  : (139, 125, 123), #8B7D7B
"moccasin"                    : (255, 228, 181), #FFE4B5
"navajowhite"                 : (255, 222, 173), #FFDEAD
"navajowhite1"                : (255, 222, 173), #FFDEAD
"navajowhite2"                : (238, 207, 161), #EECFA1
"navajowhite3"                : (205, 179, 139), #CDB38B
"navajowhite4"                : (139, 121,  94), #8B795E
"navy"                        : (  1,  21,  62), #01153E
"navyblue"                    : (  0,   0, 128), #000080
"oldlace"                     : (253, 245, 230), #FDF5E6
"olive"                       : (110, 117,  14), #6E750E
"olivedrab"                   : (107, 142,  35), #6B8E23
"olivedrab1"                  : (192, 255,  62), #C0FF3E
"olivedrab2"                  : (179, 238,  58), #B3EE3A
"olivedrab3"                  : (154, 205,  50), #9ACD32
"olivedrab4"                  : (105, 139,  34), #698B22
"orange"                      : (249, 115,   6), #F97306
"orange1"                     : (255, 165,   0), #FFA500
"orange2"                     : (238, 154,   0), #EE9A00
"orange3"                     : (205, 133,   0), #CD8500
"orange4"                     : (139,  90,   0), #8B5A00
"orangered"                   : (254,  66,  15), #FE420F
"orangered1"                  : (255,  69,   0), #FF4500
"orangered2"                  : (238,  64,   0), #EE4000
"orangered3"                  : (205,  55,   0), #CD3700
"orangered4"                  : (139,  37,   0), #8B2500
"orchid"                      : (200, 117, 196), #C875C4
"orchid1"                     : (255, 131, 250), #FF83FA
"orchid2"                     : (238, 122, 233), #EE7AE9
"orchid3"                     : (205, 105, 201), #CD69C9
"orchid4"                     : (139,  71, 137), #8B4789
"palegreen"                   : (152, 251, 152), #98FB98
"palegreen1"                  : (154, 255, 154), #9AFF9A
"palegreen2"                  : (144, 238, 144), #90EE90
"palegreen3"                  : (124, 205, 124), #7CCD7C
"palegreen4"                  : ( 84, 139,  84), #548B54
"palegoldenrod"               : (238, 232, 170), #EEE8AA
"paleturquoise"               : (175, 238, 238), #AFEEEE
"paleturquoise1"              : (187, 255, 255), #BBFFFF
"paleturquoise2"              : (174, 238, 238), #AEEEEE
"paleturquoise3"              : (150, 205, 205), #96CDCD
"paleturquoise4"              : (102, 139, 139), #668B8B
"palevioletred"               : (219, 112, 147), #DB7093
"palevioletred1"              : (255, 130, 171), #FF82AB
"palevioletred2"              : (238, 121, 159), #EE799F
"palevioletred3"              : (205, 104, 137), #CD6889
"palevioletred4"              : (139,  71,  93), #8B475D
"papayawhip"                  : (255, 239, 213), #FFEFD5
"peachpuff"                   : (255, 218, 185), #FFDAB9
"peachpuff1"                  : (255, 218, 185), #FFDAB9
"peachpuff2"                  : (238, 203, 173), #EECBAD
"peachpuff3"                  : (205, 175, 149), #CDAF95
"peachpuff4"                  : (139, 119, 101), #8B7765
"peru"                        : (205, 133,  63), #CD853F
"pink"                        : (255, 129, 192), #FF81C0
"pink1"                       : (255, 181, 197), #FFB5C5
"pink2"                       : (238, 169, 184), #EEA9B8
"pink3"                       : (205, 145, 158), #CD919E
"pink4"                       : (139,  99, 108), #8B636C
"plum"                        : ( 88,  15,  65), #580F41
"plum1"                       : (255, 187, 255), #FFBBFF
"plum2"                       : (238, 174, 238), #EEAEEE
"plum3"                       : (205, 150, 205), #CD96CD
"plum4"                       : (139, 102, 139), #8B668B
"powderblue"                  : (176, 224, 230), #B0E0E6
"purple"                      : (126,  30, 156), #7E1E9C
"purple1"                     : (155,  48, 255), #9B30FF
"purple2"                     : (145,  44, 238), #912CEE
"purple3"                     : (125,  38, 205), #7D26CD
"purple4"                     : ( 85,  26, 139), #551A8B
"red"                         : (229,   0,   0), #E50000
"red1"                        : (255,   0,   0), #FF0000
"red2"                        : (238,   0,   0), #EE0000
"red3"                        : (205,   0,   0), #CD0000
"red4"                        : (139,   0,   0), #8B0000
"rosybrown"                   : (188, 143, 143), #BC8F8F
"rosybrown1"                  : (255, 193, 193), #FFC1C1
"rosybrown2"                  : (238, 180, 180), #EEB4B4
"rosybrown3"                  : (205, 155, 155), #CD9B9B
"rosybrown4"                  : (139, 105, 105), #8B6969
"royalblue"                   : ( 65, 105, 225), #4169E1
"royalblue1"                  : ( 72, 118, 255), #4876FF
"royalblue2"                  : ( 67, 110, 238), #436EEE
"royalblue3"                  : ( 58,  95, 205), #3A5FCD
"royalblue4"                  : ( 39,  64, 139), #27408B
"salmon"                      : (255, 121, 108), #FF796C
"salmon1"                     : (255, 140, 105), #FF8C69
"salmon2"                     : (238, 130,  98), #EE8262
"salmon3"                     : (205, 112,  84), #CD7054
"salmon4"                     : (139,  76,  57), #8B4C39
"saddlebrown"                 : (139,  69,  19), #8B4513
"sandybrown"                  : (244, 164,  96), #F4A460
"seagreen"                    : ( 46, 139,  87), #2E8B57
"seagreen1"                   : ( 84, 255, 159), #54FF9F
"seagreen2"                   : ( 78, 238, 148), #4EEE94
"seagreen3"                   : ( 67, 205, 128), #43CD80
"seagreen4"                   : ( 46, 139,  87), #2E8B57
"seashell"                    : (255, 245, 238), #FFF5EE
"seashell1"                   : (255, 245, 238), #FFF5EE
"seashell2"                   : (238, 229, 222), #EEE5DE
"seashell3"                   : (205, 197, 191), #CDC5BF
"seashell4"                   : (139, 134, 130), #8B8682
"sienna"                      : (169,  86,  30), #A9561E
"sienna1"                     : (255, 130,  71), #FF8247
"sienna2"                     : (238, 121,  66), #EE7942
"sienna3"                     : (205, 104,  57), #CD6839
"sienna4"                     : (139,  71,  38), #8B4726
"silver"                      : (197, 201, 199), #C5C9C7
"skyblue"                     : (135, 206, 235), #87CEEB
"skyblue1"                    : (135, 206, 255), #87CEFF
"skyblue2"                    : (126, 192, 238), #7EC0EE
"skyblue3"                    : (108, 166, 205), #6CA6CD
"skyblue4"                    : ( 74, 112, 139), #4A708B
"slateblue"                   : (106,  90, 205), #6A5ACD
"slateblue1"                  : (131, 111, 255), #836FFF
"slateblue2"                  : (122, 103, 238), #7A67EE
"slateblue3"                  : (105,  89, 205), #6959CD
"slateblue4"                  : ( 71,  60, 139), #473C8B
"slategray"                   : (112, 128, 144), #708090
"slategray1"                  : (198, 226, 255), #C6E2FF
"slategray2"                  : (185, 211, 238), #B9D3EE
"slategray3"                  : (159, 182, 205), #9FB6CD
"slategray4"                  : (108, 123, 139), #6C7B8B
"slategrey"                   : (112, 128, 144), #708090
"snow"                        : (255, 250, 250), #FFFAFA
"snow1"                       : (255, 250, 250), #FFFAFA
"snow2"                       : (238, 233, 233), #EEE9E9
"snow3"                       : (205, 201, 201), #CDC9C9
"snow4"                       : (139, 137, 137), #8B8989
"springgreen"                 : (  0, 255, 127), #00FF7F
"springgreen1"                : (  0, 255, 127), #00FF7F
"springgreen2"                : (  0, 238, 118), #00EE76
"springgreen3"                : (  0, 205, 102), #00CD66
"springgreen4"                : (  0, 139,  69), #008B45
"steelblue"                   : ( 70, 130, 180), #4682B4
"steelblue1"                  : ( 99, 184, 255), #63B8FF
"steelblue2"                  : ( 92, 172, 238), #5CACEE
"steelblue3"                  : ( 79, 148, 205), #4F94CD
"steelblue4"                  : ( 54, 100, 139), #36648B
"tan"                         : (209, 178, 111), #D1B26F
"tan1"                        : (255, 165,  79), #FFA54F
"tan2"                        : (238, 154,  73), #EE9A49
"tan3"                        : (205, 133,  63), #CD853F
"tan4"                        : (139,  90,  43), #8B5A2B
"teal"                        : (  2, 147, 134), #029386
"thistle"                     : (216, 191, 216), #D8BFD8
"thistle1"                    : (255, 225, 255), #FFE1FF
"thistle2"                    : (238, 210, 238), #EED2EE
"thistle3"                    : (205, 181, 205), #CDB5CD
"thistle4"                    : (139, 123, 139), #8B7B8B
"tomato"                      : (239,  64,  38), #EF4026
"tomato1"                     : (255,  99,  71), #FF6347
"tomato2"                     : (238,  92,  66), #EE5C42
"tomato3"                     : (205,  79,  57), #CD4F39
"tomato4"                     : (139,  54,  38), #8B3626
"turquoise"                   : (  6, 194, 172), #06C2AC
"turquoise1"                  : (  0, 245, 255), #00F5FF
"turquoise2"                  : (  0, 229, 238), #00E5EE
"turquoise3"                  : (  0, 197, 205), #00C5CD
"turquoise4"                  : (  0, 134, 139), #00868B
"violet"                      : (154,  14, 234), #9A0EEA
"violetred"                   : (208,  32, 144), #D02090
"violetred1"                  : (255,  62, 150), #FF3E96
"violetred2"                  : (238,  58, 140), #EE3A8C
"violetred3"                  : (205,  50, 120), #CD3278
"violetred4"                  : (139,  34,  82), #8B2252
"wheat"                       : (251, 221, 126), #FBDD7E
"wheat1"                      : (255, 231, 186), #FFE7BA
"wheat2"                      : (238, 216, 174), #EED8AE
"wheat3"                      : (205, 186, 150), #CDBA96
"wheat4"                      : (139, 126, 102), #8B7E66
"white"                       : (255, 255, 255), #FFFFFF
"whitesmoke"                  : (245, 245, 245), #F5F5F5
"yellow"                      : (255, 255,  20), #FFFF14
"yellow1"                     : (255, 255,   0), #FFFF00
"yellow2"                     : (238, 238,   0), #EEEE00
"yellow3"                     : (205, 205,   0), #CDCD00
"yellow4"                     : (139, 139,   0), #8B8B00
"yellowgreen"                 : (187, 249,  15), #BBF90F
"acid green"                  : (143, 254,   9), #8FFE09
"adobe"                       : (189, 108,  72), #BD6C48
"algae"                       : ( 84, 172, 104), #54AC68
"algae green"                 : ( 33, 195, 111), #21C36F
"almost black"                : (  7,  13,  13), #070D0D
"amber"                       : (254, 179,   8), #FEB308
"amethyst"                    : (155,  95, 192), #9B5FC0
"apple"                       : (110, 203,  60), #6ECB3C
"apple green"                 : (118, 205,  38), #76CD26
"apricot"                     : (255, 177, 109), #FFB16D
"aqua blue"                   : (  2, 216, 233), #02D8E9
"aqua green"                  : ( 18, 225, 147), #12E193
"aqua marine"                 : ( 46, 232, 187), #2EE8BB
"army green"                  : ( 75,  93,  22), #4B5D16
"asparagus"                   : (119, 171,  86), #77AB56
"aubergine"                   : ( 61,   7,  52), #3D0734
"auburn"                      : (154,  48,   1), #9A3001
"avocado"                     : (144, 177,  52), #90B134
"avocado green"               : (135, 169,  34), #87A922
"azul"                        : ( 29,  93, 236), #1D5DEC
"baby blue"                   : (162, 207, 254), #A2CFFE
"baby green"                  : (140, 255, 158), #8CFF9E
"baby pink"                   : (255, 183, 206), #FFB7CE
"baby poo"                    : (171, 144,   4), #AB9004
"baby poop"                   : (147, 124,   0), #937C00
"baby poop green"             : (143, 152,   5), #8F9805
"baby puke green"             : (182, 196,   6), #B6C406
"baby purple"                 : (202, 155, 247), #CA9BF7
"baby shit brown"             : (173, 144,  13), #AD900D
"baby shit green"             : (136, 151,  23), #889717
"banana"                      : (255, 255, 126), #FFFF7E
"banana yellow"               : (250, 254,  75), #FAFE4B
"barbie pink"                 : (254,  70, 165), #FE46A5
"barf green"                  : (148, 172,   2), #94AC02
"barney"                      : (172,  29, 184), #AC1DB8
"barney purple"               : (160,   4, 152), #A00498
"battleship grey"             : (107, 124, 133), #6B7C85
"berry"                       : (153,  15,  75), #990F4B
"bile"                        : (181, 195,   6), #B5C306
"bland"                       : (175, 168, 139), #AFA88B
"blood"                       : (119,   0,   1), #770001
"blood orange"                : (254,  75,   3), #FE4B03
"blood red"                   : (152,   0,   2), #980002
"blue blue"                   : ( 34,  66, 199), #2242C7
"blue green"                  : ( 19, 126, 109), #137E6D
"blue grey"                   : ( 96, 124, 142), #607C8E
"blue purple"                 : ( 87,  41, 206), #5729CE
"blue violet"                 : ( 93,   6, 233), #5D06E9
"blue with a hint of purple"  : ( 83,  60, 198), #533CC6
"blue/green"                  : ( 15, 155, 142), #0F9B8E
"blue/grey"                   : (117, 141, 163), #758DA3
"blue/purple"                 : ( 90,   6, 239), #5A06EF
"blueberry"                   : ( 70,  65, 150), #464196
"bluegreen"                   : (  1, 122, 121), #017A79
"bluegrey"                    : (133, 163, 178), #85A3B2
"bluey green"                 : ( 43, 177, 121), #2BB179
"bluey grey"                  : (137, 160, 176), #89A0B0
"bluey purple"                : ( 98,  65, 199), #6241C7
"bluish"                      : ( 41, 118, 187), #2976BB
"bluish green"                : ( 16, 166, 116), #10A674
"bluish grey"                 : (116, 139, 151), #748B97
"bluish purple"               : (112,  59, 231), #703BE7
"blurple"                     : ( 85,  57, 204), #5539CC
"blush"                       : (242, 158, 142), #F29E8E
"blush pink"                  : (254, 130, 140), #FE828C
"booger"                      : (155, 181,  60), #9BB53C
"booger green"                : (150, 180,   3), #96B403
"bordeaux"                    : (123,   0,  44), #7B002C
"boring green"                : ( 99, 179, 101), #63B365
"bottle green"                : (  4,  74,   5), #044A05
"brick"                       : (160,  54,  35), #A03623
"brick orange"                : (193,  74,   9), #C14A09
"brick red"                   : (143,  20,   2), #8F1402
"bright aqua"                 : ( 11, 249, 234), #0BF9EA
"bright blue"                 : (  1, 101, 252), #0165FC
"bright cyan"                 : ( 65, 253, 254), #41FDFE
"bright green"                : (  1, 255,   7), #01FF07
"bright lavender"             : (199,  96, 255), #C760FF
"bright light blue"           : ( 38, 247, 253), #26F7FD
"bright light green"          : ( 45, 254,  84), #2DFE54
"bright lilac"                : (201,  94, 251), #C95EFB
"bright lime"                 : (135, 253,   5), #87FD05
"bright lime green"           : (101, 254,   8), #65FE08
"bright magenta"              : (255,   8, 232), #FF08E8
"bright olive"                : (156, 187,   4), #9CBB04
"bright orange"               : (255,  91,   0), #FF5B00
"bright pink"                 : (254,   1, 177), #FE01B1
"bright purple"               : (190,   3, 253), #BE03FD
"bright red"                  : (255,   0,  13), #FF000D
"bright sea green"            : (  5, 255, 166), #05FFA6
"bright sky blue"             : (  2, 204, 254), #02CCFE
"bright teal"                 : (  1, 249, 198), #01F9C6
"bright turquoise"            : ( 15, 254, 249), #0FFEF9
"bright violet"               : (173,  10, 253), #AD0AFD
"bright yellow"               : (255, 253,   1), #FFFD01
"bright yellow green"         : (157, 255,   0), #9DFF00
"british racing green"        : (  5,  72,  13), #05480D
"bronze"                      : (168, 121,   0), #A87900
"brown green"                 : (112, 108,  17), #706C11
"brown grey"                  : (141, 132, 104), #8D8468
"brown orange"                : (185, 105,   2), #B96902
"brown red"                   : (146,  43,   5), #922B05
"brown yellow"                : (178, 151,   5), #B29705
"brownish"                    : (156, 109,  87), #9C6D57
"brownish green"              : (106, 110,   9), #6A6E09
"brownish grey"               : (134, 119,  95), #86775F
"brownish orange"             : (203, 119,  35), #CB7723
"brownish pink"               : (194, 126, 121), #C27E79
"brownish purple"             : (118,  66,  78), #76424E
"brownish red"                : (158,  54,  35), #9E3623
"brownish yellow"             : (201, 176,   3), #C9B003
"browny green"                : (111, 108,  10), #6F6C0A
"browny orange"               : (202, 107,   2), #CA6B02
"bruise"                      : (126,  64, 113), #7E4071
"bubble gum pink"             : (255, 105, 175), #FF69AF
"bubblegum"                   : (255, 108, 181), #FF6CB5
"bubblegum pink"              : (254, 131, 204), #FE83CC
"buff"                        : (254, 246, 158), #FEF69E
"burgundy"                    : ( 97,   0,  35), #610023
"burnt orange"                : (192,  78,   1), #C04E01
"burnt red"                   : (159,  35,   5), #9F2305
"burnt siena"                 : (183,  82,   3), #B75203
"burnt sienna"                : (176,  78,  15), #B04E0F
"burnt umber"                 : (160,  69,  14), #A0450E
"burnt yellow"                : (213, 171,   9), #D5AB09
"burple"                      : (104,  50, 227), #6832E3
"butter"                      : (255, 255, 129), #FFFF81
"butter yellow"               : (255, 253, 116), #FFFD74
"butterscotch"                : (253, 177,  71), #FDB147
"cadet blue"                  : ( 78, 116, 150), #4E7496
"camel"                       : (198, 159,  89), #C69F59
"camo"                        : (127, 143,  78), #7F8F4E
"camo green"                  : ( 82, 101,  37), #526525
"camouflage green"            : ( 75,  97,  19), #4B6113
"canary"                      : (253, 255,  99), #FDFF63
"canary yellow"               : (255, 254,  64), #FFFE40
"candy pink"                  : (255,  99, 233), #FF63E9
"caramel"                     : (175, 111,   9), #AF6F09
"carmine"                     : (157,   2,  22), #9D0216
"carnation"                   : (253, 121, 143), #FD798F
"carnation pink"              : (255, 127, 167), #FF7FA7
"carolina blue"               : (138, 184, 254), #8AB8FE
"celadon"                     : (190, 253, 183), #BEFDB7
"celery"                      : (193, 253, 149), #C1FD95
"cement"                      : (165, 163, 145), #A5A391
"cerise"                      : (222,  12,  98), #DE0C62
"cerulean"                    : (  4, 133, 209), #0485D1
"cerulean blue"               : (  5, 110, 238), #056EEE
"charcoal"                    : ( 52,  56,  55), #343837
"charcoal grey"               : ( 60,  65,  66), #3C4142
"cherry"                      : (207,   2,  52), #CF0234
"cherry red"                  : (247,   2,  42), #F7022A
"chestnut"                    : (116,  40,   2), #742802
"chocolate brown"             : ( 65,  25,   0), #411900
"cinnamon"                    : (172,  79,   6), #AC4F06
"claret"                      : (104,   0,  24), #680018
"clay"                        : (182, 106,  80), #B66A50
"clay brown"                  : (178, 113,  61), #B2713D
"clear blue"                  : ( 36, 122, 253), #247AFD
"cloudy blue"                 : (172, 194, 217), #ACC2D9
"cobalt"                      : ( 30,  72, 143), #1E488F
"cobalt blue"                 : (  3,  10, 167), #030AA7
"cocoa"                       : (135,  95,  66), #875F42
"coffee"                      : (166, 129,  76), #A6814C
"cool blue"                   : ( 73, 132, 184), #4984B8
"cool green"                  : ( 51, 184, 100), #33B864
"cool grey"                   : (149, 163, 166), #95A3A6
"copper"                      : (182,  99,  37), #B66325
"coral pink"                  : (255,  97,  99), #FF6163
"cornflower"                  : (106, 121, 247), #6A79F7
"cornflower blue"             : ( 81, 112, 215), #5170D7
"cranberry"                   : (158,   0,  58), #9E003A
"cream"                       : (255, 255, 194), #FFFFC2
"creme"                       : (255, 255, 182), #FFFFB6
"custard"                     : (255, 253, 120), #FFFD78
"dandelion"                   : (254, 223,   8), #FEDF08
"dark"                        : ( 27,  36,  49), #1B2431
"dark aqua"                   : (  5, 105, 107), #05696B
"dark aquamarine"             : (  1, 115, 113), #017371
"dark beige"                  : (172, 147,  98), #AC9362
"dark blue"                   : (  0,   3,  91), #00035B
"dark blue green"             : (  0,  82,  73), #005249
"dark blue grey"              : ( 31,  59,  77), #1F3B4D
"dark brown"                  : ( 52,  28,   2), #341C02
"dark coral"                  : (207,  82,  78), #CF524E
"dark cream"                  : (255, 243, 154), #FFF39A
"dark cyan"                   : ( 10, 136, 138), #0A888A
"dark forest green"           : (  0,  45,   4), #002D04
"dark fuchsia"                : (157,   7,  89), #9D0759
"dark gold"                   : (181, 148,  16), #B59410
"dark grass green"            : ( 56, 128,   4), #388004
"dark green"                  : (  3,  53,   0), #033500
"dark green blue"             : ( 31,  99,  87), #1F6357
"dark grey"                   : ( 54,  55,  55), #363737
"dark grey blue"              : ( 41,  70,  91), #29465B
"dark hot pink"               : (217,   1, 102), #D90166
"dark indigo"                 : ( 31,   9,  84), #1F0954
"dark khaki"                  : (155, 143,  85), #9B8F55
"dark lavender"               : (133, 103, 152), #856798
"dark lilac"                  : (156, 109, 165), #9C6DA5
"dark lime"                   : (132, 183,   1), #84B701
"dark lime green"             : (126, 189,   1), #7EBD01
"dark magenta"                : (150,   0,  86), #960056
"dark maroon"                 : ( 60,   0,   8), #3C0008
"dark mauve"                  : (135,  76,  98), #874C62
"dark mint"                   : ( 72, 192, 114), #48C072
"dark mint green"             : ( 32, 192, 115), #20C073
"dark mustard"                : (168, 137,   5), #A88905
"dark navy"                   : (  0,   4,  53), #000435
"dark navy blue"              : (  0,   2,  46), #00022E
"dark olive"                  : ( 55,  62,   2), #373E02
"dark olive green"            : ( 60,  77,   3), #3C4D03
"dark orange"                 : (198,  81,   2), #C65102
"dark pastel green"           : ( 86, 174,  87), #56AE57
"dark peach"                  : (222, 126,  93), #DE7E5D
"dark periwinkle"             : (102,  95, 209), #665FD1
"dark pink"                   : (203,  65, 107), #CB416B
"dark plum"                   : ( 63,   1,  44), #3F012C
"dark purple"                 : ( 53,   6,  62), #35063E
"dark red"                    : (132,   0,   0), #840000
"dark rose"                   : (181,  72,  93), #B5485D
"dark royal blue"             : (  2,   6, 111), #02066F
"dark sage"                   : ( 89, 133,  86), #598556
"dark salmon"                 : (200,  90,  83), #C85A53
"dark sand"                   : (168, 143,  89), #A88F59
"dark sea green"              : ( 17, 135,  93), #11875D
"dark seafoam"                : ( 31, 181, 122), #1FB57A
"dark seafoam green"          : ( 62, 175, 118), #3EAF76
"dark sky blue"               : ( 68, 142, 228), #448EE4
"dark slate blue"             : ( 33,  71,  97), #214761
"dark tan"                    : (175, 136,  74), #AF884A
"dark taupe"                  : (127, 104,  78), #7F684E
"dark teal"                   : (  1,  77,  78), #014D4E
"dark turquoise"              : (  4,  92,  90), #045C5A
"dark violet"                 : ( 52,   1,  63), #34013F
"dark yellow"                 : (213, 182,  10), #D5B60A
"dark yellow green"           : (114, 143,   2), #728F02
"darkish blue"                : (  1,  65, 130), #014182
"darkish green"               : ( 40, 124,  55), #287C37
"darkish pink"                : (218,  70, 125), #DA467D
"darkish purple"              : (117,  25, 115), #751973
"darkish red"                 : (169,   3,   8), #A90308
"deep aqua"                   : (  8, 120, 127), #08787F
"deep blue"                   : (  4,   2, 115), #040273
"deep brown"                  : ( 65,   2,   0), #410200
"deep green"                  : (  2,  89,  15), #02590F
"deep lavender"               : (141,  94, 183), #8D5EB7
"deep lilac"                  : (150, 110, 189), #966EBD
"deep magenta"                : (160,   2,  92), #A0025C
"deep orange"                 : (220,  77,   1), #DC4D01
"deep pink"                   : (203,   1,  98), #CB0162
"deep purple"                 : ( 54,   1,  63), #36013F
"deep red"                    : (154,   2,   0), #9A0200
"deep rose"                   : (199,  71, 103), #C74767
"deep sea blue"               : (  1,  84, 130), #015482
"deep sky blue"               : ( 13, 117, 248), #0D75F8
"deep teal"                   : (  0,  85,  90), #00555A
"deep turquoise"              : (  1, 115, 116), #017374
"deep violet"                 : ( 73,   6,  72), #490648
"denim"                       : ( 59,  99, 140), #3B638C
"denim blue"                  : ( 59,  91, 146), #3B5B92
"desert"                      : (204, 173,  96), #CCAD60
"diarrhea"                    : (159, 131,   3), #9F8303
"dirt"                        : (138, 110,  69), #8A6E45
"dirt brown"                  : (131, 101,  57), #836539
"dirty blue"                  : ( 63, 130, 157), #3F829D
"dirty green"                 : (102, 126,  44), #667E2C
"dirty orange"                : (200, 118,   6), #C87606
"dirty pink"                  : (202, 123, 128), #CA7B80
"dirty purple"                : (115,  74, 101), #734A65
"dirty yellow"                : (205, 197,  10), #CDC50A
"dodger blue"                 : ( 62, 130, 252), #3E82FC
"drab"                        : (130, 131,  68), #828344
"drab green"                  : (116, 149,  81), #749551
"dried blood"                 : ( 75,   1,   1), #4B0101
"duck egg blue"               : (195, 251, 244), #C3FBF4
"dull blue"                   : ( 73, 117, 156), #49759C
"dull brown"                  : (135, 110,  75), #876E4B
"dull green"                  : (116, 166,  98), #74A662
"dull orange"                 : (216, 134,  59), #D8863B
"dull pink"                   : (213, 134, 157), #D5869D
"dull purple"                 : (132,  89, 126), #84597E
"dull red"                    : (187,  63,  63), #BB3F3F
"dull teal"                   : ( 95, 158, 143), #5F9E8F
"dull yellow"                 : (238, 220,  91), #EEDC5B
"dusk"                        : ( 78,  84, 129), #4E5481
"dusk blue"                   : ( 38,  83, 141), #26538D
"dusky blue"                  : ( 71,  95, 148), #475F94
"dusky pink"                  : (204, 122, 139), #CC7A8B
"dusky purple"                : (137,  91, 123), #895B7B
"dusky rose"                  : (186, 104, 115), #BA6873
"dust"                        : (178, 153, 110), #B2996E
"dusty blue"                  : ( 90, 134, 173), #5A86AD
"dusty green"                 : (118, 169, 115), #76A973
"dusty lavender"              : (172, 134, 168), #AC86A8
"dusty orange"                : (240, 131,  58), #F0833A
"dusty pink"                  : (213, 138, 148), #D58A94
"dusty purple"                : (130,  95, 135), #825F87
"dusty red"                   : (185,  72,  78), #B9484E
"dusty rose"                  : (192, 115, 122), #C0737A
"dusty teal"                  : ( 76, 144, 133), #4C9085
"earth"                       : (162, 101,  62), #A2653E
"easter green"                : (140, 253, 126), #8CFD7E
"easter purple"               : (192, 113, 254), #C071FE
"ecru"                        : (254, 255, 202), #FEFFCA
"egg shell"                   : (255, 252, 196), #FFFCC4
"eggplant"                    : ( 56,   8,  53), #380835
"eggplant purple"             : ( 67,   5,  65), #430541
"eggshell"                    : (255, 255, 212), #FFFFD4
"eggshell blue"               : (196, 255, 247), #C4FFF7
"electric blue"               : (  6,  82, 255), #0652FF
"electric green"              : ( 33, 252,  13), #21FC0D
"electric lime"               : (168, 255,   4), #A8FF04
"electric pink"               : (255,   4, 144), #FF0490
"electric purple"             : (170,  35, 255), #AA23FF
"emerald"                     : (  1, 160,  73), #01A049
"emerald green"               : (  2, 143,  30), #028F1E
"evergreen"                   : (  5,  71,  42), #05472A
"faded blue"                  : (101, 140, 187), #658CBB
"faded green"                 : (123, 178, 116), #7BB274
"faded orange"                : (240, 148,  77), #F0944D
"faded pink"                  : (222, 157, 172), #DE9DAC
"faded purple"                : (145, 110, 153), #916E99
"faded red"                   : (211,  73,  78), #D3494E
"faded yellow"                : (254, 255, 127), #FEFF7F
"fawn"                        : (207, 175, 123), #CFAF7B
"fern"                        : ( 99, 169,  80), #63A950
"fern green"                  : ( 84, 141,  68), #548D44
"fire engine red"             : (254,   0,   2), #FE0002
"flat blue"                   : ( 60, 115, 168), #3C73A8
"flat
上一篇:ElasticSearch初识


下一篇:第九节HarmonyOS 常用基础组件31-Toggle