progressbar.terminal.base module

progressbar.terminal.base.CLEAR_LINE = <progressbar.terminal.base.CSINoArg object>

Erase Line containing Cursor

progressbar.terminal.base.CLEAR_LINE_ALL = <progressbar.terminal.base.CSI object>

Erase in Line (EL)

progressbar.terminal.base.CLEAR_LINE_LEFT = <progressbar.terminal.base.CSINoArg object>

Erase in Line from Cursor to Beginning of Line

progressbar.terminal.base.CLEAR_LINE_RIGHT = <progressbar.terminal.base.CSINoArg object>

Erase in Line from Cursor to End of Line (default)

progressbar.terminal.base.CLEAR_SCREEN = <progressbar.terminal.base.CSI object>

Erase in Display (ED)

progressbar.terminal.base.CLEAR_SCREEN_ALL = <progressbar.terminal.base.CSINoArg object>

Erase whole screen

progressbar.terminal.base.CLEAR_SCREEN_ALL_AND_HISTORY = <progressbar.terminal.base.CSINoArg object>

Erase whole screen and history

progressbar.terminal.base.CLEAR_SCREEN_TILL_END = <progressbar.terminal.base.CSINoArg object>

Erase till end of screen

progressbar.terminal.base.CLEAR_SCREEN_TILL_START = <progressbar.terminal.base.CSINoArg object>

Erase till start of screen

progressbar.terminal.base.COLUMN = <progressbar.terminal.base.CSI object>

Cursor Character Absolute [column] (default = [row,1]) (CHA)

class progressbar.terminal.base.CSI(code, *default_args)[source]

Bases: object

class progressbar.terminal.base.CSINoArg(code, *default_args)[source]

Bases: CSI

progressbar.terminal.base.CUP = <progressbar.terminal.base.CSI object>

Cursor Position [row;column] (default = [1,1])

class progressbar.terminal.base.Color(rgb, hls, name, xterm)[source]

Bases: Color, ColorBase

Color base class.

This class contains the colors in RGB (Red, Green, Blue), HSL (Hue, Lightness, Saturation) and Xterm (8-bit) formats. It also contains the color name.

To make a custom color the only required arguments are the RGB values. The other values will be automatically interpolated from that if needed, but you can be more explicitly if you wish.

property ansi: str | None
property bg
property fg
interpolate(end: Color, step: float) Color[source]
property underline
class progressbar.terminal.base.ColorBase[source]

Bases: ABC

get_color(value: float) Color[source]
class progressbar.terminal.base.ColorGradient(*colors: ~progressbar.terminal.base.Color, interpolate=<bound method Colors.interpolate of <class 'progressbar.terminal.base.Colors'>>)[source]

Bases: ColorBase

get_color(value: float) Color[source]

Map a value from 0 to 1 to a color.

class progressbar.terminal.base.Colors[source]

Bases: object

by_hex: ClassVar[defaultdict[str, List[Color]]] = {'#000000': [((0, 0, 0), (0, 0, 0), 'Black', 0), ((0, 0, 0), (0, 0, 0), 'Grey0', 16)], '#00005f': [((0, 0, 95), (240, 100, 18), 'NavyBlue', 17)], '#000080': [((0, 0, 128), (240, 100, 25), 'Navy', 4)], '#000087': [((0, 0, 135), (240, 100, 26), 'DarkBlue', 18)], '#0000af': [((0, 0, 175), (240, 100, 34), 'Blue3', 19)], '#0000d7': [((0, 0, 215), (240, 100, 42), 'Blue3', 20)], '#0000ff': [((0, 0, 255), (240, 100, 50), 'Blue', 12), ((0, 0, 255), (240, 100, 50), 'Blue1', 21)], '#005f00': [((0, 95, 0), (120, 100, 18), 'DarkGreen', 22)], '#005f5f': [((0, 95, 95), (180, 100, 18), 'DeepSkyBlue4', 23)], '#005f87': [((0, 95, 135), (97, 100, 26), 'DeepSkyBlue4', 24)], '#005faf': [((0, 95, 175), (7, 100, 34), 'DeepSkyBlue4', 25)], '#005fd7': [((0, 95, 215), (13, 100, 42), 'DodgerBlue3', 26)], '#005fff': [((0, 95, 255), (17, 100, 50), 'DodgerBlue2', 27)], '#008000': [((0, 128, 0), (120, 100, 25), 'Green', 2)], '#008080': [((0, 128, 128), (180, 100, 25), 'Teal', 6)], '#008700': [((0, 135, 0), (120, 100, 26), 'Green4', 28)], '#00875f': [((0, 135, 95), (62, 100, 26), 'SpringGreen4', 29)], '#008787': [((0, 135, 135), (180, 100, 26), 'Turquoise4', 30)], '#0087af': [((0, 135, 175), (93, 100, 34), 'DeepSkyBlue3', 31)], '#0087d7': [((0, 135, 215), (2, 100, 42), 'DeepSkyBlue3', 32)], '#0087ff': [((0, 135, 255), (8, 100, 50), 'DodgerBlue1', 33)], '#00af00': [((0, 175, 0), (120, 100, 34), 'Green3', 34)], '#00af5f': [((0, 175, 95), (52, 100, 34), 'SpringGreen3', 35)], '#00af87': [((0, 175, 135), (66, 100, 34), 'DarkCyan', 36)], '#00afaf': [((0, 175, 175), (180, 100, 34), 'LightSeaGreen', 37)], '#00afd7': [((0, 175, 215), (91, 100, 42), 'DeepSkyBlue2', 38)], '#00afff': [((0, 175, 255), (98, 100, 50), 'DeepSkyBlue1', 39)], '#00d700': [((0, 215, 0), (120, 100, 42), 'Green3', 40)], '#00d75f': [((0, 215, 95), (46, 100, 42), 'SpringGreen3', 41)], '#00d787': [((0, 215, 135), (57, 100, 42), 'SpringGreen2', 42)], '#00d7af': [((0, 215, 175), (68, 100, 42), 'Cyan3', 43)], '#00d7d7': [((0, 215, 215), (180, 100, 42), 'DarkTurquoise', 44)], '#00d7ff': [((0, 215, 255), (89, 100, 50), 'Turquoise2', 45)], '#00ff00': [((0, 255, 0), (120, 100, 50), 'Lime', 10), ((0, 255, 0), (120, 100, 50), 'Green1', 46)], '#00ff5f': [((0, 255, 95), (42, 100, 50), 'SpringGreen2', 47)], '#00ff87': [((0, 255, 135), (51, 100, 50), 'SpringGreen1', 48)], '#00ffaf': [((0, 255, 175), (61, 100, 50), 'MediumSpringGreen', 49)], '#00ffd7': [((0, 255, 215), (70, 100, 50), 'Cyan2', 50)], '#00ffff': [((0, 255, 255), (180, 100, 50), 'Aqua', 14), ((0, 255, 255), (180, 100, 50), 'Cyan1', 51)], '#080808': [((8, 8, 8), (0, 0, 3), 'Grey3', 232)], '#121212': [((18, 18, 18), (0, 0, 7), 'Grey7', 233)], '#1c1c1c': [((28, 28, 28), (0, 0, 10), 'Grey11', 234)], '#262626': [((38, 38, 38), (0, 0, 14), 'Grey15', 235)], '#303030': [((48, 48, 48), (0, 0, 18), 'Grey19', 236)], '#3a3a3a': [((58, 58, 58), (0, 0, 22), 'Grey23', 237)], '#444444': [((68, 68, 68), (0, 0, 26), 'Grey27', 238)], '#4e4e4e': [((78, 78, 78), (0, 0, 30), 'Grey30', 239)], '#585858': [((88, 88, 88), (0, 0, 34), 'Grey35', 240)], '#5f0000': [((95, 0, 0), (0, 100, 18), 'DarkRed', 52)], '#5f005f': [((95, 0, 95), (300, 100, 18), 'DeepPink4', 53)], '#5f0087': [((95, 0, 135), (82, 100, 26), 'Purple4', 54)], '#5f00af': [((95, 0, 175), (72, 100, 34), 'Purple4', 55)], '#5f00d7': [((95, 0, 215), (66, 100, 42), 'Purple3', 56)], '#5f00ff': [((95, 0, 255), (62, 100, 50), 'BlueViolet', 57)], '#5f5f00': [((95, 95, 0), (60, 100, 18), 'Orange4', 58)], '#5f5f5f': [((95, 95, 95), (0, 0, 37), 'Grey37', 59)], '#5f5f87': [((95, 95, 135), (240, 17, 45), 'MediumPurple4', 60)], '#5f5faf': [((95, 95, 175), (240, 33, 52), 'SlateBlue3', 61)], '#5f5fd7': [((95, 95, 215), (240, 60, 60), 'SlateBlue3', 62)], '#5f5fff': [((95, 95, 255), (240, 100, 68), 'RoyalBlue1', 63)], '#5f8700': [((95, 135, 0), (7, 100, 26), 'Chartreuse4', 64)], '#5f875f': [((95, 135, 95), (120, 17, 45), 'DarkSeaGreen4', 65)], '#5f8787': [((95, 135, 135), (180, 17, 45), 'PaleTurquoise4', 66)], '#5f87af': [((95, 135, 175), (210, 33, 52), 'SteelBlue', 67)], '#5f87d7': [((95, 135, 215), (220, 60, 60), 'SteelBlue3', 68)], '#5f87ff': [((95, 135, 255), (225, 100, 68), 'CornflowerBlue', 69)], '#5faf00': [((95, 175, 0), (7, 100, 34), 'Chartreuse3', 70)], '#5faf5f': [((95, 175, 95), (120, 33, 52), 'DarkSeaGreen4', 71)], '#5faf87': [((95, 175, 135), (150, 33, 52), 'CadetBlue', 72)], '#5fafaf': [((95, 175, 175), (180, 33, 52), 'CadetBlue', 73)], '#5fafd7': [((95, 175, 215), (200, 60, 60), 'SkyBlue3', 74)], '#5fafff': [((95, 175, 255), (210, 100, 68), 'SteelBlue1', 75)], '#5fd700': [((95, 215, 0), (3, 100, 42), 'Chartreuse3', 76)], '#5fd75f': [((95, 215, 95), (120, 60, 60), 'PaleGreen3', 77)], '#5fd787': [((95, 215, 135), (140, 60, 60), 'SeaGreen3', 78)], '#5fd7af': [((95, 215, 175), (160, 60, 60), 'Aquamarine3', 79)], '#5fd7d7': [((95, 215, 215), (180, 60, 60), 'MediumTurquoise', 80)], '#5fd7ff': [((95, 215, 255), (195, 100, 68), 'SteelBlue1', 81)], '#5fff00': [((95, 255, 0), (7, 100, 50), 'Chartreuse2', 82)], '#5fff5f': [((95, 255, 95), (120, 100, 68), 'SeaGreen2', 83)], '#5fff87': [((95, 255, 135), (135, 100, 68), 'SeaGreen1', 84)], '#5fffaf': [((95, 255, 175), (150, 100, 68), 'SeaGreen1', 85)], '#5fffd7': [((95, 255, 215), (165, 100, 68), 'Aquamarine1', 86)], '#5fffff': [((95, 255, 255), (180, 100, 68), 'DarkSlateGray2', 87)], '#626262': [((98, 98, 98), (0, 0, 37), 'Grey39', 241)], '#6c6c6c': [((108, 108, 108), (0, 0, 40), 'Grey42', 242)], '#767676': [((118, 118, 118), (0, 0, 46), 'Grey46', 243)], '#800000': [((128, 0, 0), (0, 100, 25), 'Maroon', 1)], '#800080': [((128, 0, 128), (300, 100, 25), 'Purple', 5)], '#808000': [((128, 128, 0), (60, 100, 25), 'Olive', 3)], '#808080': [((128, 128, 128), (0, 0, 50), 'Grey', 8), ((128, 128, 128), (0, 0, 50), 'Grey50', 244)], '#870000': [((135, 0, 0), (0, 100, 26), 'DarkRed', 88)], '#87005f': [((135, 0, 95), (17, 100, 26), 'DeepPink4', 89)], '#870087': [((135, 0, 135), (300, 100, 26), 'DarkMagenta', 90)], '#8700af': [((135, 0, 175), (86, 100, 34), 'DarkMagenta', 91)], '#8700d7': [((135, 0, 215), (77, 100, 42), 'DarkViolet', 92)], '#8700ff': [((135, 0, 255), (71, 100, 50), 'Purple', 93)], '#875f00': [((135, 95, 0), (2, 100, 26), 'Orange4', 94)], '#875f5f': [((135, 95, 95), (0, 17, 45), 'LightPink4', 95)], '#875f87': [((135, 95, 135), (300, 17, 45), 'Plum4', 96)], '#875faf': [((135, 95, 175), (270, 33, 52), 'MediumPurple3', 97)], '#875fd7': [((135, 95, 215), (260, 60, 60), 'MediumPurple3', 98)], '#875fff': [((135, 95, 255), (255, 100, 68), 'SlateBlue1', 99)], '#878700': [((135, 135, 0), (60, 100, 26), 'Yellow4', 100)], '#87875f': [((135, 135, 95), (60, 17, 45), 'Wheat4', 101)], '#878787': [((135, 135, 135), (0, 0, 52), 'Grey53', 102)], '#8787af': [((135, 135, 175), (240, 20, 60), 'LightSlateGrey', 103)], '#8787d7': [((135, 135, 215), (240, 50, 68), 'MediumPurple', 104)], '#8787ff': [((135, 135, 255), (240, 100, 76), 'LightSlateBlue', 105)], '#87af00': [((135, 175, 0), (3, 100, 34), 'Yellow4', 106)], '#87af5f': [((135, 175, 95), (90, 33, 52), 'DarkOliveGreen3', 107)], '#87af87': [((135, 175, 135), (120, 20, 60), 'DarkSeaGreen', 108)], '#87afaf': [((135, 175, 175), (180, 20, 60), 'LightSkyBlue3', 109)], '#87afd7': [((135, 175, 215), (210, 50, 68), 'LightSkyBlue3', 110)], '#87afff': [((135, 175, 255), (220, 100, 76), 'SkyBlue2', 111)], '#87d700': [((135, 215, 0), (2, 100, 42), 'Chartreuse2', 112)], '#87d75f': [((135, 215, 95), (100, 60, 60), 'DarkOliveGreen3', 113)], '#87d787': [((135, 215, 135), (120, 50, 68), 'PaleGreen3', 114)], '#87d7af': [((135, 215, 175), (150, 50, 68), 'DarkSeaGreen3', 115)], '#87d7d7': [((135, 215, 215), (180, 50, 68), 'DarkSlateGray3', 116)], '#87d7ff': [((135, 215, 255), (200, 100, 76), 'SkyBlue1', 117)], '#87ff00': [((135, 255, 0), (8, 100, 50), 'Chartreuse1', 118)], '#87ff5f': [((135, 255, 95), (105, 100, 68), 'LightGreen', 119)], '#87ff87': [((135, 255, 135), (120, 100, 76), 'LightGreen', 120)], '#87ffaf': [((135, 255, 175), (140, 100, 76), 'PaleGreen1', 121)], '#87ffd7': [((135, 255, 215), (160, 100, 76), 'Aquamarine1', 122)], '#87ffff': [((135, 255, 255), (180, 100, 76), 'DarkSlateGray1', 123)], '#8a8a8a': [((138, 138, 138), (0, 0, 54), 'Grey54', 245)], '#949494': [((148, 148, 148), (0, 0, 58), 'Grey58', 246)], '#9e9e9e': [((158, 158, 158), (0, 0, 61), 'Grey62', 247)], '#a8a8a8': [((168, 168, 168), (0, 0, 65), 'Grey66', 248)], '#af0000': [((175, 0, 0), (0, 100, 34), 'Red3', 124)], '#af005f': [((175, 0, 95), (27, 100, 34), 'DeepPink4', 125)], '#af0087': [((175, 0, 135), (13, 100, 34), 'MediumVioletRed', 126)], '#af00af': [((175, 0, 175), (300, 100, 34), 'Magenta3', 127)], '#af00d7': [((175, 0, 215), (88, 100, 42), 'DarkViolet', 128)], '#af00ff': [((175, 0, 255), (81, 100, 50), 'Purple', 129)], '#af5f00': [((175, 95, 0), (2, 100, 34), 'DarkOrange3', 130)], '#af5f5f': [((175, 95, 95), (0, 33, 52), 'IndianRed', 131)], '#af5f87': [((175, 95, 135), (330, 33, 52), 'HotPink3', 132)], '#af5faf': [((175, 95, 175), (300, 33, 52), 'MediumOrchid3', 133)], '#af5fd7': [((175, 95, 215), (280, 60, 60), 'MediumOrchid', 134)], '#af5fff': [((175, 95, 255), (270, 100, 68), 'MediumPurple2', 135)], '#af8700': [((175, 135, 0), (6, 100, 34), 'DarkGoldenrod', 136)], '#af875f': [((175, 135, 95), (30, 33, 52), 'LightSalmon3', 137)], '#af8787': [((175, 135, 135), (0, 20, 60), 'RosyBrown', 138)], '#af87af': [((175, 135, 175), (300, 20, 60), 'Grey63', 139)], '#af87d7': [((175, 135, 215), (270, 50, 68), 'MediumPurple2', 140)], '#af87ff': [((175, 135, 255), (260, 100, 76), 'MediumPurple1', 141)], '#afaf00': [((175, 175, 0), (60, 100, 34), 'Gold3', 142)], '#afaf5f': [((175, 175, 95), (60, 33, 52), 'DarkKhaki', 143)], '#afaf87': [((175, 175, 135), (60, 20, 60), 'NavajoWhite3', 144)], '#afafaf': [((175, 175, 175), (0, 0, 68), 'Grey69', 145)], '#afafd7': [((175, 175, 215), (240, 33, 76), 'LightSteelBlue3', 146)], '#afafff': [((175, 175, 255), (240, 100, 84), 'LightSteelBlue', 147)], '#afd700': [((175, 215, 0), (1, 100, 42), 'Yellow3', 148)], '#afd75f': [((175, 215, 95), (80, 60, 60), 'DarkOliveGreen3', 149)], '#afd787': [((175, 215, 135), (90, 50, 68), 'DarkSeaGreen3', 150)], '#afd7af': [((175, 215, 175), (120, 33, 76), 'DarkSeaGreen2', 151)], '#afd7d7': [((175, 215, 215), (180, 33, 76), 'LightCyan3', 152)], '#afd7ff': [((175, 215, 255), (210, 100, 84), 'LightSkyBlue1', 153)], '#afff00': [((175, 255, 0), (8, 100, 50), 'GreenYellow', 154)], '#afff5f': [((175, 255, 95), (90, 100, 68), 'DarkOliveGreen2', 155)], '#afff87': [((175, 255, 135), (100, 100, 76), 'PaleGreen1', 156)], '#afffaf': [((175, 255, 175), (120, 100, 84), 'DarkSeaGreen2', 157)], '#afffd7': [((175, 255, 215), (150, 100, 84), 'DarkSeaGreen1', 158)], '#afffff': [((175, 255, 255), (180, 100, 84), 'PaleTurquoise1', 159)], '#b2b2b2': [((178, 178, 178), (0, 0, 69), 'Grey70', 249)], '#bcbcbc': [((188, 188, 188), (0, 0, 73), 'Grey74', 250)], '#c0c0c0': [((192, 192, 192), (0, 0, 75), 'Silver', 7)], '#c6c6c6': [((198, 198, 198), (0, 0, 77), 'Grey78', 251)], '#d0d0d0': [((208, 208, 208), (0, 0, 81), 'Grey82', 252)], '#d70000': [((215, 0, 0), (0, 100, 42), 'Red3', 160)], '#d7005f': [((215, 0, 95), (33, 100, 42), 'DeepPink3', 161)], '#d70087': [((215, 0, 135), (22, 100, 42), 'DeepPink3', 162)], '#d700af': [((215, 0, 175), (11, 100, 42), 'Magenta3', 163)], '#d700d7': [((215, 0, 215), (300, 100, 42), 'Magenta3', 164)], '#d700ff': [((215, 0, 255), (90, 100, 50), 'Magenta2', 165)], '#d75f00': [((215, 95, 0), (6, 100, 42), 'DarkOrange3', 166)], '#d75f5f': [((215, 95, 95), (0, 60, 60), 'IndianRed', 167)], '#d75f87': [((215, 95, 135), (340, 60, 60), 'HotPink3', 168)], '#d75faf': [((215, 95, 175), (320, 60, 60), 'HotPink2', 169)], '#d75fd7': [((215, 95, 215), (300, 60, 60), 'Orchid', 170)], '#d75fff': [((215, 95, 255), (285, 100, 68), 'MediumOrchid1', 171)], '#d78700': [((215, 135, 0), (7, 100, 42), 'Orange3', 172)], '#d7875f': [((215, 135, 95), (20, 60, 60), 'LightSalmon3', 173)], '#d78787': [((215, 135, 135), (0, 50, 68), 'LightPink3', 174)], '#d787af': [((215, 135, 175), (330, 50, 68), 'Pink3', 175)], '#d787d7': [((215, 135, 215), (300, 50, 68), 'Plum3', 176)], '#d787ff': [((215, 135, 255), (280, 100, 76), 'Violet', 177)], '#d7af00': [((215, 175, 0), (8, 100, 42), 'Gold3', 178)], '#d7af5f': [((215, 175, 95), (40, 60, 60), 'LightGoldenrod3', 179)], '#d7af87': [((215, 175, 135), (30, 50, 68), 'Tan', 180)], '#d7afaf': [((215, 175, 175), (0, 33, 76), 'MistyRose3', 181)], '#d7afd7': [((215, 175, 215), (300, 33, 76), 'Thistle3', 182)], '#d7afff': [((215, 175, 255), (270, 100, 84), 'Plum2', 183)], '#d7d700': [((215, 215, 0), (60, 100, 42), 'Yellow3', 184)], '#d7d75f': [((215, 215, 95), (60, 60, 60), 'Khaki3', 185)], '#d7d787': [((215, 215, 135), (60, 50, 68), 'LightGoldenrod2', 186)], '#d7d7af': [((215, 215, 175), (60, 33, 76), 'LightYellow3', 187)], '#d7d7d7': [((215, 215, 215), (0, 0, 84), 'Grey84', 188)], '#d7d7ff': [((215, 215, 255), (240, 100, 92), 'LightSteelBlue1', 189)], '#d7ff00': [((215, 255, 0), (9, 100, 50), 'Yellow2', 190)], '#d7ff5f': [((215, 255, 95), (75, 100, 68), 'DarkOliveGreen1', 191)], '#d7ff87': [((215, 255, 135), (80, 100, 76), 'DarkOliveGreen1', 192)], '#d7ffaf': [((215, 255, 175), (90, 100, 84), 'DarkSeaGreen1', 193)], '#d7ffd7': [((215, 255, 215), (120, 100, 92), 'Honeydew2', 194)], '#d7ffff': [((215, 255, 255), (180, 100, 92), 'LightCyan1', 195)], '#dadada': [((218, 218, 218), (0, 0, 85), 'Grey85', 253)], '#e4e4e4': [((228, 228, 228), (0, 0, 89), 'Grey89', 254)], '#eeeeee': [((238, 238, 238), (0, 0, 93), 'Grey93', 255)], '#ff0000': [((255, 0, 0), (0, 100, 50), 'Red', 9), ((255, 0, 0), (0, 100, 50), 'Red1', 196)], '#ff005f': [((255, 0, 95), (37, 100, 50), 'DeepPink2', 197)], '#ff0087': [((255, 0, 135), (28, 100, 50), 'DeepPink1', 198)], '#ff00af': [((255, 0, 175), (18, 100, 50), 'DeepPink1', 199)], '#ff00d7': [((255, 0, 215), (9, 100, 50), 'Magenta2', 200)], '#ff00ff': [((255, 0, 255), (300, 100, 50), 'Fuchsia', 13), ((255, 0, 255), (300, 100, 50), 'Magenta1', 201)], '#ff5f00': [((255, 95, 0), (2, 100, 50), 'OrangeRed1', 202)], '#ff5f5f': [((255, 95, 95), (0, 100, 68), 'IndianRed1', 203)], '#ff5f87': [((255, 95, 135), (345, 100, 68), 'IndianRed1', 204)], '#ff5faf': [((255, 95, 175), (330, 100, 68), 'HotPink', 205)], '#ff5fd7': [((255, 95, 215), (315, 100, 68), 'HotPink', 206)], '#ff5fff': [((255, 95, 255), (300, 100, 68), 'MediumOrchid1', 207)], '#ff8700': [((255, 135, 0), (1, 100, 50), 'DarkOrange', 208)], '#ff875f': [((255, 135, 95), (15, 100, 68), 'Salmon1', 209)], '#ff8787': [((255, 135, 135), (0, 100, 76), 'LightCoral', 210)], '#ff87af': [((255, 135, 175), (340, 100, 76), 'PaleVioletRed1', 211)], '#ff87d7': [((255, 135, 215), (320, 100, 76), 'Orchid2', 212)], '#ff87ff': [((255, 135, 255), (300, 100, 76), 'Orchid1', 213)], '#ffaf00': [((255, 175, 0), (1, 100, 50), 'Orange1', 214)], '#ffaf5f': [((255, 175, 95), (30, 100, 68), 'SandyBrown', 215)], '#ffaf87': [((255, 175, 135), (20, 100, 76), 'LightSalmon1', 216)], '#ffafaf': [((255, 175, 175), (0, 100, 84), 'LightPink1', 217)], '#ffafd7': [((255, 175, 215), (330, 100, 84), 'Pink1', 218)], '#ffafff': [((255, 175, 255), (300, 100, 84), 'Plum1', 219)], '#ffd700': [((255, 215, 0), (0, 100, 50), 'Gold1', 220)], '#ffd75f': [((255, 215, 95), (45, 100, 68), 'LightGoldenrod2', 221)], '#ffd787': [((255, 215, 135), (40, 100, 76), 'LightGoldenrod2', 222)], '#ffd7af': [((255, 215, 175), (30, 100, 84), 'NavajoWhite1', 223)], '#ffd7d7': [((255, 215, 215), (0, 100, 92), 'MistyRose1', 224)], '#ffd7ff': [((255, 215, 255), (300, 100, 92), 'Thistle1', 225)], '#ffff00': [((255, 255, 0), (60, 100, 50), 'Yellow', 11), ((255, 255, 0), (60, 100, 50), 'Yellow1', 226)], '#ffff5f': [((255, 255, 95), (60, 100, 68), 'LightGoldenrod1', 227)], '#ffff87': [((255, 255, 135), (60, 100, 76), 'Khaki1', 228)], '#ffffaf': [((255, 255, 175), (60, 100, 84), 'Wheat1', 229)], '#ffffd7': [((255, 255, 215), (60, 100, 92), 'Cornsilk1', 230)], '#ffffff': [((255, 255, 255), (0, 0, 100), 'White', 15), ((255, 255, 255), (0, 0, 100), 'Grey100', 231)]}
by_hls: ClassVar[defaultdict[HSL, List[Color]]] = {(0, 0, 0): [((0, 0, 0), (0, 0, 0), 'Black', 0), ((0, 0, 0), (0, 0, 0), 'Grey0', 16)], (0, 0, 3): [((8, 8, 8), (0, 0, 3), 'Grey3', 232)], (0, 0, 7): [((18, 18, 18), (0, 0, 7), 'Grey7', 233)], (0, 0, 10): [((28, 28, 28), (0, 0, 10), 'Grey11', 234)], (0, 0, 14): [((38, 38, 38), (0, 0, 14), 'Grey15', 235)], (0, 0, 18): [((48, 48, 48), (0, 0, 18), 'Grey19', 236)], (0, 0, 22): [((58, 58, 58), (0, 0, 22), 'Grey23', 237)], (0, 0, 26): [((68, 68, 68), (0, 0, 26), 'Grey27', 238)], (0, 0, 30): [((78, 78, 78), (0, 0, 30), 'Grey30', 239)], (0, 0, 34): [((88, 88, 88), (0, 0, 34), 'Grey35', 240)], (0, 0, 37): [((95, 95, 95), (0, 0, 37), 'Grey37', 59), ((98, 98, 98), (0, 0, 37), 'Grey39', 241)], (0, 0, 40): [((108, 108, 108), (0, 0, 40), 'Grey42', 242)], (0, 0, 46): [((118, 118, 118), (0, 0, 46), 'Grey46', 243)], (0, 0, 50): [((128, 128, 128), (0, 0, 50), 'Grey', 8), ((128, 128, 128), (0, 0, 50), 'Grey50', 244)], (0, 0, 52): [((135, 135, 135), (0, 0, 52), 'Grey53', 102)], (0, 0, 54): [((138, 138, 138), (0, 0, 54), 'Grey54', 245)], (0, 0, 58): [((148, 148, 148), (0, 0, 58), 'Grey58', 246)], (0, 0, 61): [((158, 158, 158), (0, 0, 61), 'Grey62', 247)], (0, 0, 65): [((168, 168, 168), (0, 0, 65), 'Grey66', 248)], (0, 0, 68): [((175, 175, 175), (0, 0, 68), 'Grey69', 145)], (0, 0, 69): [((178, 178, 178), (0, 0, 69), 'Grey70', 249)], (0, 0, 73): [((188, 188, 188), (0, 0, 73), 'Grey74', 250)], (0, 0, 75): [((192, 192, 192), (0, 0, 75), 'Silver', 7)], (0, 0, 77): [((198, 198, 198), (0, 0, 77), 'Grey78', 251)], (0, 0, 81): [((208, 208, 208), (0, 0, 81), 'Grey82', 252)], (0, 0, 84): [((215, 215, 215), (0, 0, 84), 'Grey84', 188)], (0, 0, 85): [((218, 218, 218), (0, 0, 85), 'Grey85', 253)], (0, 0, 89): [((228, 228, 228), (0, 0, 89), 'Grey89', 254)], (0, 0, 93): [((238, 238, 238), (0, 0, 93), 'Grey93', 255)], (0, 0, 100): [((255, 255, 255), (0, 0, 100), 'White', 15), ((255, 255, 255), (0, 0, 100), 'Grey100', 231)], (0, 17, 45): [((135, 95, 95), (0, 17, 45), 'LightPink4', 95)], (0, 20, 60): [((175, 135, 135), (0, 20, 60), 'RosyBrown', 138)], (0, 33, 52): [((175, 95, 95), (0, 33, 52), 'IndianRed', 131)], (0, 33, 76): [((215, 175, 175), (0, 33, 76), 'MistyRose3', 181)], (0, 50, 68): [((215, 135, 135), (0, 50, 68), 'LightPink3', 174)], (0, 60, 60): [((215, 95, 95), (0, 60, 60), 'IndianRed', 167)], (0, 100, 18): [((95, 0, 0), (0, 100, 18), 'DarkRed', 52)], (0, 100, 25): [((128, 0, 0), (0, 100, 25), 'Maroon', 1)], (0, 100, 26): [((135, 0, 0), (0, 100, 26), 'DarkRed', 88)], (0, 100, 34): [((175, 0, 0), (0, 100, 34), 'Red3', 124)], (0, 100, 42): [((215, 0, 0), (0, 100, 42), 'Red3', 160)], (0, 100, 50): [((255, 0, 0), (0, 100, 50), 'Red', 9), ((255, 0, 0), (0, 100, 50), 'Red1', 196), ((255, 215, 0), (0, 100, 50), 'Gold1', 220)], (0, 100, 68): [((255, 95, 95), (0, 100, 68), 'IndianRed1', 203)], (0, 100, 76): [((255, 135, 135), (0, 100, 76), 'LightCoral', 210)], (0, 100, 84): [((255, 175, 175), (0, 100, 84), 'LightPink1', 217)], (0, 100, 92): [((255, 215, 215), (0, 100, 92), 'MistyRose1', 224)], (1, 100, 42): [((175, 215, 0), (1, 100, 42), 'Yellow3', 148)], (1, 100, 50): [((255, 135, 0), (1, 100, 50), 'DarkOrange', 208), ((255, 175, 0), (1, 100, 50), 'Orange1', 214)], (2, 100, 26): [((135, 95, 0), (2, 100, 26), 'Orange4', 94)], (2, 100, 34): [((175, 95, 0), (2, 100, 34), 'DarkOrange3', 130)], (2, 100, 42): [((0, 135, 215), (2, 100, 42), 'DeepSkyBlue3', 32), ((135, 215, 0), (2, 100, 42), 'Chartreuse2', 112)], (2, 100, 50): [((255, 95, 0), (2, 100, 50), 'OrangeRed1', 202)], (3, 100, 34): [((135, 175, 0), (3, 100, 34), 'Yellow4', 106)], (3, 100, 42): [((95, 215, 0), (3, 100, 42), 'Chartreuse3', 76)], (6, 100, 34): [((175, 135, 0), (6, 100, 34), 'DarkGoldenrod', 136)], (6, 100, 42): [((215, 95, 0), (6, 100, 42), 'DarkOrange3', 166)], (7, 100, 26): [((95, 135, 0), (7, 100, 26), 'Chartreuse4', 64)], (7, 100, 34): [((0, 95, 175), (7, 100, 34), 'DeepSkyBlue4', 25), ((95, 175, 0), (7, 100, 34), 'Chartreuse3', 70)], (7, 100, 42): [((215, 135, 0), (7, 100, 42), 'Orange3', 172)], (7, 100, 50): [((95, 255, 0), (7, 100, 50), 'Chartreuse2', 82)], (8, 100, 42): [((215, 175, 0), (8, 100, 42), 'Gold3', 178)], (8, 100, 50): [((0, 135, 255), (8, 100, 50), 'DodgerBlue1', 33), ((135, 255, 0), (8, 100, 50), 'Chartreuse1', 118), ((175, 255, 0), (8, 100, 50), 'GreenYellow', 154)], (9, 100, 50): [((215, 255, 0), (9, 100, 50), 'Yellow2', 190), ((255, 0, 215), (9, 100, 50), 'Magenta2', 200)], (11, 100, 42): [((215, 0, 175), (11, 100, 42), 'Magenta3', 163)], (13, 100, 34): [((175, 0, 135), (13, 100, 34), 'MediumVioletRed', 126)], (13, 100, 42): [((0, 95, 215), (13, 100, 42), 'DodgerBlue3', 26)], (15, 100, 68): [((255, 135, 95), (15, 100, 68), 'Salmon1', 209)], (17, 100, 26): [((135, 0, 95), (17, 100, 26), 'DeepPink4', 89)], (17, 100, 50): [((0, 95, 255), (17, 100, 50), 'DodgerBlue2', 27)], (18, 100, 50): [((255, 0, 175), (18, 100, 50), 'DeepPink1', 199)], (20, 60, 60): [((215, 135, 95), (20, 60, 60), 'LightSalmon3', 173)], (20, 100, 76): [((255, 175, 135), (20, 100, 76), 'LightSalmon1', 216)], (22, 100, 42): [((215, 0, 135), (22, 100, 42), 'DeepPink3', 162)], (27, 100, 34): [((175, 0, 95), (27, 100, 34), 'DeepPink4', 125)], (28, 100, 50): [((255, 0, 135), (28, 100, 50), 'DeepPink1', 198)], (30, 33, 52): [((175, 135, 95), (30, 33, 52), 'LightSalmon3', 137)], (30, 50, 68): [((215, 175, 135), (30, 50, 68), 'Tan', 180)], (30, 100, 68): [((255, 175, 95), (30, 100, 68), 'SandyBrown', 215)], (30, 100, 84): [((255, 215, 175), (30, 100, 84), 'NavajoWhite1', 223)], (33, 100, 42): [((215, 0, 95), (33, 100, 42), 'DeepPink3', 161)], (37, 100, 50): [((255, 0, 95), (37, 100, 50), 'DeepPink2', 197)], (40, 60, 60): [((215, 175, 95), (40, 60, 60), 'LightGoldenrod3', 179)], (40, 100, 76): [((255, 215, 135), (40, 100, 76), 'LightGoldenrod2', 222)], (42, 100, 50): [((0, 255, 95), (42, 100, 50), 'SpringGreen2', 47)], (45, 100, 68): [((255, 215, 95), (45, 100, 68), 'LightGoldenrod2', 221)], (46, 100, 42): [((0, 215, 95), (46, 100, 42), 'SpringGreen3', 41)], (51, 100, 50): [((0, 255, 135), (51, 100, 50), 'SpringGreen1', 48)], (52, 100, 34): [((0, 175, 95), (52, 100, 34), 'SpringGreen3', 35)], (57, 100, 42): [((0, 215, 135), (57, 100, 42), 'SpringGreen2', 42)], (60, 17, 45): [((135, 135, 95), (60, 17, 45), 'Wheat4', 101)], (60, 20, 60): [((175, 175, 135), (60, 20, 60), 'NavajoWhite3', 144)], (60, 33, 52): [((175, 175, 95), (60, 33, 52), 'DarkKhaki', 143)], (60, 33, 76): [((215, 215, 175), (60, 33, 76), 'LightYellow3', 187)], (60, 50, 68): [((215, 215, 135), (60, 50, 68), 'LightGoldenrod2', 186)], (60, 60, 60): [((215, 215, 95), (60, 60, 60), 'Khaki3', 185)], (60, 100, 18): [((95, 95, 0), (60, 100, 18), 'Orange4', 58)], (60, 100, 25): [((128, 128, 0), (60, 100, 25), 'Olive', 3)], (60, 100, 26): [((135, 135, 0), (60, 100, 26), 'Yellow4', 100)], (60, 100, 34): [((175, 175, 0), (60, 100, 34), 'Gold3', 142)], (60, 100, 42): [((215, 215, 0), (60, 100, 42), 'Yellow3', 184)], (60, 100, 50): [((255, 255, 0), (60, 100, 50), 'Yellow', 11), ((255, 255, 0), (60, 100, 50), 'Yellow1', 226)], (60, 100, 68): [((255, 255, 95), (60, 100, 68), 'LightGoldenrod1', 227)], (60, 100, 76): [((255, 255, 135), (60, 100, 76), 'Khaki1', 228)], (60, 100, 84): [((255, 255, 175), (60, 100, 84), 'Wheat1', 229)], (60, 100, 92): [((255, 255, 215), (60, 100, 92), 'Cornsilk1', 230)], (61, 100, 50): [((0, 255, 175), (61, 100, 50), 'MediumSpringGreen', 49)], (62, 100, 26): [((0, 135, 95), (62, 100, 26), 'SpringGreen4', 29)], (62, 100, 50): [((95, 0, 255), (62, 100, 50), 'BlueViolet', 57)], (66, 100, 34): [((0, 175, 135), (66, 100, 34), 'DarkCyan', 36)], (66, 100, 42): [((95, 0, 215), (66, 100, 42), 'Purple3', 56)], (68, 100, 42): [((0, 215, 175), (68, 100, 42), 'Cyan3', 43)], (70, 100, 50): [((0, 255, 215), (70, 100, 50), 'Cyan2', 50)], (71, 100, 50): [((135, 0, 255), (71, 100, 50), 'Purple', 93)], (72, 100, 34): [((95, 0, 175), (72, 100, 34), 'Purple4', 55)], (75, 100, 68): [((215, 255, 95), (75, 100, 68), 'DarkOliveGreen1', 191)], (77, 100, 42): [((135, 0, 215), (77, 100, 42), 'DarkViolet', 92)], (80, 60, 60): [((175, 215, 95), (80, 60, 60), 'DarkOliveGreen3', 149)], (80, 100, 76): [((215, 255, 135), (80, 100, 76), 'DarkOliveGreen1', 192)], (81, 100, 50): [((175, 0, 255), (81, 100, 50), 'Purple', 129)], (82, 100, 26): [((95, 0, 135), (82, 100, 26), 'Purple4', 54)], (86, 100, 34): [((135, 0, 175), (86, 100, 34), 'DarkMagenta', 91)], (88, 100, 42): [((175, 0, 215), (88, 100, 42), 'DarkViolet', 128)], (89, 100, 50): [((0, 215, 255), (89, 100, 50), 'Turquoise2', 45)], (90, 33, 52): [((135, 175, 95), (90, 33, 52), 'DarkOliveGreen3', 107)], (90, 50, 68): [((175, 215, 135), (90, 50, 68), 'DarkSeaGreen3', 150)], (90, 100, 50): [((215, 0, 255), (90, 100, 50), 'Magenta2', 165)], (90, 100, 68): [((175, 255, 95), (90, 100, 68), 'DarkOliveGreen2', 155)], (90, 100, 84): [((215, 255, 175), (90, 100, 84), 'DarkSeaGreen1', 193)], (91, 100, 42): [((0, 175, 215), (91, 100, 42), 'DeepSkyBlue2', 38)], (93, 100, 34): [((0, 135, 175), (93, 100, 34), 'DeepSkyBlue3', 31)], (97, 100, 26): [((0, 95, 135), (97, 100, 26), 'DeepSkyBlue4', 24)], (98, 100, 50): [((0, 175, 255), (98, 100, 50), 'DeepSkyBlue1', 39)], (100, 60, 60): [((135, 215, 95), (100, 60, 60), 'DarkOliveGreen3', 113)], (100, 100, 76): [((175, 255, 135), (100, 100, 76), 'PaleGreen1', 156)], (105, 100, 68): [((135, 255, 95), (105, 100, 68), 'LightGreen', 119)], (120, 17, 45): [((95, 135, 95), (120, 17, 45), 'DarkSeaGreen4', 65)], (120, 20, 60): [((135, 175, 135), (120, 20, 60), 'DarkSeaGreen', 108)], (120, 33, 52): [((95, 175, 95), (120, 33, 52), 'DarkSeaGreen4', 71)], (120, 33, 76): [((175, 215, 175), (120, 33, 76), 'DarkSeaGreen2', 151)], (120, 50, 68): [((135, 215, 135), (120, 50, 68), 'PaleGreen3', 114)], (120, 60, 60): [((95, 215, 95), (120, 60, 60), 'PaleGreen3', 77)], (120, 100, 18): [((0, 95, 0), (120, 100, 18), 'DarkGreen', 22)], (120, 100, 25): [((0, 128, 0), (120, 100, 25), 'Green', 2)], (120, 100, 26): [((0, 135, 0), (120, 100, 26), 'Green4', 28)], (120, 100, 34): [((0, 175, 0), (120, 100, 34), 'Green3', 34)], (120, 100, 42): [((0, 215, 0), (120, 100, 42), 'Green3', 40)], (120, 100, 50): [((0, 255, 0), (120, 100, 50), 'Lime', 10), ((0, 255, 0), (120, 100, 50), 'Green1', 46)], (120, 100, 68): [((95, 255, 95), (120, 100, 68), 'SeaGreen2', 83)], (120, 100, 76): [((135, 255, 135), (120, 100, 76), 'LightGreen', 120)], (120, 100, 84): [((175, 255, 175), (120, 100, 84), 'DarkSeaGreen2', 157)], (120, 100, 92): [((215, 255, 215), (120, 100, 92), 'Honeydew2', 194)], (135, 100, 68): [((95, 255, 135), (135, 100, 68), 'SeaGreen1', 84)], (140, 60, 60): [((95, 215, 135), (140, 60, 60), 'SeaGreen3', 78)], (140, 100, 76): [((135, 255, 175), (140, 100, 76), 'PaleGreen1', 121)], (150, 33, 52): [((95, 175, 135), (150, 33, 52), 'CadetBlue', 72)], (150, 50, 68): [((135, 215, 175), (150, 50, 68), 'DarkSeaGreen3', 115)], (150, 100, 68): [((95, 255, 175), (150, 100, 68), 'SeaGreen1', 85)], (150, 100, 84): [((175, 255, 215), (150, 100, 84), 'DarkSeaGreen1', 158)], (160, 60, 60): [((95, 215, 175), (160, 60, 60), 'Aquamarine3', 79)], (160, 100, 76): [((135, 255, 215), (160, 100, 76), 'Aquamarine1', 122)], (165, 100, 68): [((95, 255, 215), (165, 100, 68), 'Aquamarine1', 86)], (180, 17, 45): [((95, 135, 135), (180, 17, 45), 'PaleTurquoise4', 66)], (180, 20, 60): [((135, 175, 175), (180, 20, 60), 'LightSkyBlue3', 109)], (180, 33, 52): [((95, 175, 175), (180, 33, 52), 'CadetBlue', 73)], (180, 33, 76): [((175, 215, 215), (180, 33, 76), 'LightCyan3', 152)], (180, 50, 68): [((135, 215, 215), (180, 50, 68), 'DarkSlateGray3', 116)], (180, 60, 60): [((95, 215, 215), (180, 60, 60), 'MediumTurquoise', 80)], (180, 100, 18): [((0, 95, 95), (180, 100, 18), 'DeepSkyBlue4', 23)], (180, 100, 25): [((0, 128, 128), (180, 100, 25), 'Teal', 6)], (180, 100, 26): [((0, 135, 135), (180, 100, 26), 'Turquoise4', 30)], (180, 100, 34): [((0, 175, 175), (180, 100, 34), 'LightSeaGreen', 37)], (180, 100, 42): [((0, 215, 215), (180, 100, 42), 'DarkTurquoise', 44)], (180, 100, 50): [((0, 255, 255), (180, 100, 50), 'Aqua', 14), ((0, 255, 255), (180, 100, 50), 'Cyan1', 51)], (180, 100, 68): [((95, 255, 255), (180, 100, 68), 'DarkSlateGray2', 87)], (180, 100, 76): [((135, 255, 255), (180, 100, 76), 'DarkSlateGray1', 123)], (180, 100, 84): [((175, 255, 255), (180, 100, 84), 'PaleTurquoise1', 159)], (180, 100, 92): [((215, 255, 255), (180, 100, 92), 'LightCyan1', 195)], (195, 100, 68): [((95, 215, 255), (195, 100, 68), 'SteelBlue1', 81)], (200, 60, 60): [((95, 175, 215), (200, 60, 60), 'SkyBlue3', 74)], (200, 100, 76): [((135, 215, 255), (200, 100, 76), 'SkyBlue1', 117)], (210, 33, 52): [((95, 135, 175), (210, 33, 52), 'SteelBlue', 67)], (210, 50, 68): [((135, 175, 215), (210, 50, 68), 'LightSkyBlue3', 110)], (210, 100, 68): [((95, 175, 255), (210, 100, 68), 'SteelBlue1', 75)], (210, 100, 84): [((175, 215, 255), (210, 100, 84), 'LightSkyBlue1', 153)], (220, 60, 60): [((95, 135, 215), (220, 60, 60), 'SteelBlue3', 68)], (220, 100, 76): [((135, 175, 255), (220, 100, 76), 'SkyBlue2', 111)], (225, 100, 68): [((95, 135, 255), (225, 100, 68), 'CornflowerBlue', 69)], (240, 17, 45): [((95, 95, 135), (240, 17, 45), 'MediumPurple4', 60)], (240, 20, 60): [((135, 135, 175), (240, 20, 60), 'LightSlateGrey', 103)], (240, 33, 52): [((95, 95, 175), (240, 33, 52), 'SlateBlue3', 61)], (240, 33, 76): [((175, 175, 215), (240, 33, 76), 'LightSteelBlue3', 146)], (240, 50, 68): [((135, 135, 215), (240, 50, 68), 'MediumPurple', 104)], (240, 60, 60): [((95, 95, 215), (240, 60, 60), 'SlateBlue3', 62)], (240, 100, 18): [((0, 0, 95), (240, 100, 18), 'NavyBlue', 17)], (240, 100, 25): [((0, 0, 128), (240, 100, 25), 'Navy', 4)], (240, 100, 26): [((0, 0, 135), (240, 100, 26), 'DarkBlue', 18)], (240, 100, 34): [((0, 0, 175), (240, 100, 34), 'Blue3', 19)], (240, 100, 42): [((0, 0, 215), (240, 100, 42), 'Blue3', 20)], (240, 100, 50): [((0, 0, 255), (240, 100, 50), 'Blue', 12), ((0, 0, 255), (240, 100, 50), 'Blue1', 21)], (240, 100, 68): [((95, 95, 255), (240, 100, 68), 'RoyalBlue1', 63)], (240, 100, 76): [((135, 135, 255), (240, 100, 76), 'LightSlateBlue', 105)], (240, 100, 84): [((175, 175, 255), (240, 100, 84), 'LightSteelBlue', 147)], (240, 100, 92): [((215, 215, 255), (240, 100, 92), 'LightSteelBlue1', 189)], (255, 100, 68): [((135, 95, 255), (255, 100, 68), 'SlateBlue1', 99)], (260, 60, 60): [((135, 95, 215), (260, 60, 60), 'MediumPurple3', 98)], (260, 100, 76): [((175, 135, 255), (260, 100, 76), 'MediumPurple1', 141)], (270, 33, 52): [((135, 95, 175), (270, 33, 52), 'MediumPurple3', 97)], (270, 50, 68): [((175, 135, 215), (270, 50, 68), 'MediumPurple2', 140)], (270, 100, 68): [((175, 95, 255), (270, 100, 68), 'MediumPurple2', 135)], (270, 100, 84): [((215, 175, 255), (270, 100, 84), 'Plum2', 183)], (280, 60, 60): [((175, 95, 215), (280, 60, 60), 'MediumOrchid', 134)], (280, 100, 76): [((215, 135, 255), (280, 100, 76), 'Violet', 177)], (285, 100, 68): [((215, 95, 255), (285, 100, 68), 'MediumOrchid1', 171)], (300, 17, 45): [((135, 95, 135), (300, 17, 45), 'Plum4', 96)], (300, 20, 60): [((175, 135, 175), (300, 20, 60), 'Grey63', 139)], (300, 33, 52): [((175, 95, 175), (300, 33, 52), 'MediumOrchid3', 133)], (300, 33, 76): [((215, 175, 215), (300, 33, 76), 'Thistle3', 182)], (300, 50, 68): [((215, 135, 215), (300, 50, 68), 'Plum3', 176)], (300, 60, 60): [((215, 95, 215), (300, 60, 60), 'Orchid', 170)], (300, 100, 18): [((95, 0, 95), (300, 100, 18), 'DeepPink4', 53)], (300, 100, 25): [((128, 0, 128), (300, 100, 25), 'Purple', 5)], (300, 100, 26): [((135, 0, 135), (300, 100, 26), 'DarkMagenta', 90)], (300, 100, 34): [((175, 0, 175), (300, 100, 34), 'Magenta3', 127)], (300, 100, 42): [((215, 0, 215), (300, 100, 42), 'Magenta3', 164)], (300, 100, 50): [((255, 0, 255), (300, 100, 50), 'Fuchsia', 13), ((255, 0, 255), (300, 100, 50), 'Magenta1', 201)], (300, 100, 68): [((255, 95, 255), (300, 100, 68), 'MediumOrchid1', 207)], (300, 100, 76): [((255, 135, 255), (300, 100, 76), 'Orchid1', 213)], (300, 100, 84): [((255, 175, 255), (300, 100, 84), 'Plum1', 219)], (300, 100, 92): [((255, 215, 255), (300, 100, 92), 'Thistle1', 225)], (315, 100, 68): [((255, 95, 215), (315, 100, 68), 'HotPink', 206)], (320, 60, 60): [((215, 95, 175), (320, 60, 60), 'HotPink2', 169)], (320, 100, 76): [((255, 135, 215), (320, 100, 76), 'Orchid2', 212)], (330, 33, 52): [((175, 95, 135), (330, 33, 52), 'HotPink3', 132)], (330, 50, 68): [((215, 135, 175), (330, 50, 68), 'Pink3', 175)], (330, 100, 68): [((255, 95, 175), (330, 100, 68), 'HotPink', 205)], (330, 100, 84): [((255, 175, 215), (330, 100, 84), 'Pink1', 218)], (340, 60, 60): [((215, 95, 135), (340, 60, 60), 'HotPink3', 168)], (340, 100, 76): [((255, 135, 175), (340, 100, 76), 'PaleVioletRed1', 211)], (345, 100, 68): [((255, 95, 135), (345, 100, 68), 'IndianRed1', 204)]}
by_lowername: ClassVar[defaultdict[str, List[Color]]] = {'aqua': [((0, 255, 255), (180, 100, 50), 'Aqua', 14)], 'aquamarine1': [((95, 255, 215), (165, 100, 68), 'Aquamarine1', 86), ((135, 255, 215), (160, 100, 76), 'Aquamarine1', 122)], 'aquamarine3': [((95, 215, 175), (160, 60, 60), 'Aquamarine3', 79)], 'black': [((0, 0, 0), (0, 0, 0), 'Black', 0)], 'blue': [((0, 0, 255), (240, 100, 50), 'Blue', 12)], 'blue1': [((0, 0, 255), (240, 100, 50), 'Blue1', 21)], 'blue3': [((0, 0, 175), (240, 100, 34), 'Blue3', 19), ((0, 0, 215), (240, 100, 42), 'Blue3', 20)], 'blueviolet': [((95, 0, 255), (62, 100, 50), 'BlueViolet', 57)], 'cadetblue': [((95, 175, 135), (150, 33, 52), 'CadetBlue', 72), ((95, 175, 175), (180, 33, 52), 'CadetBlue', 73)], 'chartreuse1': [((135, 255, 0), (8, 100, 50), 'Chartreuse1', 118)], 'chartreuse2': [((95, 255, 0), (7, 100, 50), 'Chartreuse2', 82), ((135, 215, 0), (2, 100, 42), 'Chartreuse2', 112)], 'chartreuse3': [((95, 175, 0), (7, 100, 34), 'Chartreuse3', 70), ((95, 215, 0), (3, 100, 42), 'Chartreuse3', 76)], 'chartreuse4': [((95, 135, 0), (7, 100, 26), 'Chartreuse4', 64)], 'cornflowerblue': [((95, 135, 255), (225, 100, 68), 'CornflowerBlue', 69)], 'cornsilk1': [((255, 255, 215), (60, 100, 92), 'Cornsilk1', 230)], 'cyan1': [((0, 255, 255), (180, 100, 50), 'Cyan1', 51)], 'cyan2': [((0, 255, 215), (70, 100, 50), 'Cyan2', 50)], 'cyan3': [((0, 215, 175), (68, 100, 42), 'Cyan3', 43)], 'darkblue': [((0, 0, 135), (240, 100, 26), 'DarkBlue', 18)], 'darkcyan': [((0, 175, 135), (66, 100, 34), 'DarkCyan', 36)], 'darkgoldenrod': [((175, 135, 0), (6, 100, 34), 'DarkGoldenrod', 136)], 'darkgreen': [((0, 95, 0), (120, 100, 18), 'DarkGreen', 22)], 'darkkhaki': [((175, 175, 95), (60, 33, 52), 'DarkKhaki', 143)], 'darkmagenta': [((135, 0, 135), (300, 100, 26), 'DarkMagenta', 90), ((135, 0, 175), (86, 100, 34), 'DarkMagenta', 91)], 'darkolivegreen1': [((215, 255, 95), (75, 100, 68), 'DarkOliveGreen1', 191), ((215, 255, 135), (80, 100, 76), 'DarkOliveGreen1', 192)], 'darkolivegreen2': [((175, 255, 95), (90, 100, 68), 'DarkOliveGreen2', 155)], 'darkolivegreen3': [((135, 175, 95), (90, 33, 52), 'DarkOliveGreen3', 107), ((135, 215, 95), (100, 60, 60), 'DarkOliveGreen3', 113), ((175, 215, 95), (80, 60, 60), 'DarkOliveGreen3', 149)], 'darkorange': [((255, 135, 0), (1, 100, 50), 'DarkOrange', 208)], 'darkorange3': [((175, 95, 0), (2, 100, 34), 'DarkOrange3', 130), ((215, 95, 0), (6, 100, 42), 'DarkOrange3', 166)], 'darkred': [((95, 0, 0), (0, 100, 18), 'DarkRed', 52), ((135, 0, 0), (0, 100, 26), 'DarkRed', 88)], 'darkseagreen': [((135, 175, 135), (120, 20, 60), 'DarkSeaGreen', 108)], 'darkseagreen1': [((175, 255, 215), (150, 100, 84), 'DarkSeaGreen1', 158), ((215, 255, 175), (90, 100, 84), 'DarkSeaGreen1', 193)], 'darkseagreen2': [((175, 215, 175), (120, 33, 76), 'DarkSeaGreen2', 151), ((175, 255, 175), (120, 100, 84), 'DarkSeaGreen2', 157)], 'darkseagreen3': [((135, 215, 175), (150, 50, 68), 'DarkSeaGreen3', 115), ((175, 215, 135), (90, 50, 68), 'DarkSeaGreen3', 150)], 'darkseagreen4': [((95, 135, 95), (120, 17, 45), 'DarkSeaGreen4', 65), ((95, 175, 95), (120, 33, 52), 'DarkSeaGreen4', 71)], 'darkslategray1': [((135, 255, 255), (180, 100, 76), 'DarkSlateGray1', 123)], 'darkslategray2': [((95, 255, 255), (180, 100, 68), 'DarkSlateGray2', 87)], 'darkslategray3': [((135, 215, 215), (180, 50, 68), 'DarkSlateGray3', 116)], 'darkturquoise': [((0, 215, 215), (180, 100, 42), 'DarkTurquoise', 44)], 'darkviolet': [((135, 0, 215), (77, 100, 42), 'DarkViolet', 92), ((175, 0, 215), (88, 100, 42), 'DarkViolet', 128)], 'deeppink1': [((255, 0, 135), (28, 100, 50), 'DeepPink1', 198), ((255, 0, 175), (18, 100, 50), 'DeepPink1', 199)], 'deeppink2': [((255, 0, 95), (37, 100, 50), 'DeepPink2', 197)], 'deeppink3': [((215, 0, 95), (33, 100, 42), 'DeepPink3', 161), ((215, 0, 135), (22, 100, 42), 'DeepPink3', 162)], 'deeppink4': [((95, 0, 95), (300, 100, 18), 'DeepPink4', 53), ((135, 0, 95), (17, 100, 26), 'DeepPink4', 89), ((175, 0, 95), (27, 100, 34), 'DeepPink4', 125)], 'deepskyblue1': [((0, 175, 255), (98, 100, 50), 'DeepSkyBlue1', 39)], 'deepskyblue2': [((0, 175, 215), (91, 100, 42), 'DeepSkyBlue2', 38)], 'deepskyblue3': [((0, 135, 175), (93, 100, 34), 'DeepSkyBlue3', 31), ((0, 135, 215), (2, 100, 42), 'DeepSkyBlue3', 32)], 'deepskyblue4': [((0, 95, 95), (180, 100, 18), 'DeepSkyBlue4', 23), ((0, 95, 135), (97, 100, 26), 'DeepSkyBlue4', 24), ((0, 95, 175), (7, 100, 34), 'DeepSkyBlue4', 25)], 'dodgerblue1': [((0, 135, 255), (8, 100, 50), 'DodgerBlue1', 33)], 'dodgerblue2': [((0, 95, 255), (17, 100, 50), 'DodgerBlue2', 27)], 'dodgerblue3': [((0, 95, 215), (13, 100, 42), 'DodgerBlue3', 26)], 'fuchsia': [((255, 0, 255), (300, 100, 50), 'Fuchsia', 13)], 'gold1': [((255, 215, 0), (0, 100, 50), 'Gold1', 220)], 'gold3': [((175, 175, 0), (60, 100, 34), 'Gold3', 142), ((215, 175, 0), (8, 100, 42), 'Gold3', 178)], 'green': [((0, 128, 0), (120, 100, 25), 'Green', 2)], 'green1': [((0, 255, 0), (120, 100, 50), 'Green1', 46)], 'green3': [((0, 175, 0), (120, 100, 34), 'Green3', 34), ((0, 215, 0), (120, 100, 42), 'Green3', 40)], 'green4': [((0, 135, 0), (120, 100, 26), 'Green4', 28)], 'greenyellow': [((175, 255, 0), (8, 100, 50), 'GreenYellow', 154)], 'grey': [((128, 128, 128), (0, 0, 50), 'Grey', 8)], 'grey0': [((0, 0, 0), (0, 0, 0), 'Grey0', 16)], 'grey100': [((255, 255, 255), (0, 0, 100), 'Grey100', 231)], 'grey11': [((28, 28, 28), (0, 0, 10), 'Grey11', 234)], 'grey15': [((38, 38, 38), (0, 0, 14), 'Grey15', 235)], 'grey19': [((48, 48, 48), (0, 0, 18), 'Grey19', 236)], 'grey23': [((58, 58, 58), (0, 0, 22), 'Grey23', 237)], 'grey27': [((68, 68, 68), (0, 0, 26), 'Grey27', 238)], 'grey3': [((8, 8, 8), (0, 0, 3), 'Grey3', 232)], 'grey30': [((78, 78, 78), (0, 0, 30), 'Grey30', 239)], 'grey35': [((88, 88, 88), (0, 0, 34), 'Grey35', 240)], 'grey37': [((95, 95, 95), (0, 0, 37), 'Grey37', 59)], 'grey39': [((98, 98, 98), (0, 0, 37), 'Grey39', 241)], 'grey42': [((108, 108, 108), (0, 0, 40), 'Grey42', 242)], 'grey46': [((118, 118, 118), (0, 0, 46), 'Grey46', 243)], 'grey50': [((128, 128, 128), (0, 0, 50), 'Grey50', 244)], 'grey53': [((135, 135, 135), (0, 0, 52), 'Grey53', 102)], 'grey54': [((138, 138, 138), (0, 0, 54), 'Grey54', 245)], 'grey58': [((148, 148, 148), (0, 0, 58), 'Grey58', 246)], 'grey62': [((158, 158, 158), (0, 0, 61), 'Grey62', 247)], 'grey63': [((175, 135, 175), (300, 20, 60), 'Grey63', 139)], 'grey66': [((168, 168, 168), (0, 0, 65), 'Grey66', 248)], 'grey69': [((175, 175, 175), (0, 0, 68), 'Grey69', 145)], 'grey7': [((18, 18, 18), (0, 0, 7), 'Grey7', 233)], 'grey70': [((178, 178, 178), (0, 0, 69), 'Grey70', 249)], 'grey74': [((188, 188, 188), (0, 0, 73), 'Grey74', 250)], 'grey78': [((198, 198, 198), (0, 0, 77), 'Grey78', 251)], 'grey82': [((208, 208, 208), (0, 0, 81), 'Grey82', 252)], 'grey84': [((215, 215, 215), (0, 0, 84), 'Grey84', 188)], 'grey85': [((218, 218, 218), (0, 0, 85), 'Grey85', 253)], 'grey89': [((228, 228, 228), (0, 0, 89), 'Grey89', 254)], 'grey93': [((238, 238, 238), (0, 0, 93), 'Grey93', 255)], 'honeydew2': [((215, 255, 215), (120, 100, 92), 'Honeydew2', 194)], 'hotpink': [((255, 95, 175), (330, 100, 68), 'HotPink', 205), ((255, 95, 215), (315, 100, 68), 'HotPink', 206)], 'hotpink2': [((215, 95, 175), (320, 60, 60), 'HotPink2', 169)], 'hotpink3': [((175, 95, 135), (330, 33, 52), 'HotPink3', 132), ((215, 95, 135), (340, 60, 60), 'HotPink3', 168)], 'indianred': [((175, 95, 95), (0, 33, 52), 'IndianRed', 131), ((215, 95, 95), (0, 60, 60), 'IndianRed', 167)], 'indianred1': [((255, 95, 95), (0, 100, 68), 'IndianRed1', 203), ((255, 95, 135), (345, 100, 68), 'IndianRed1', 204)], 'khaki1': [((255, 255, 135), (60, 100, 76), 'Khaki1', 228)], 'khaki3': [((215, 215, 95), (60, 60, 60), 'Khaki3', 185)], 'lightcoral': [((255, 135, 135), (0, 100, 76), 'LightCoral', 210)], 'lightcyan1': [((215, 255, 255), (180, 100, 92), 'LightCyan1', 195)], 'lightcyan3': [((175, 215, 215), (180, 33, 76), 'LightCyan3', 152)], 'lightgoldenrod1': [((255, 255, 95), (60, 100, 68), 'LightGoldenrod1', 227)], 'lightgoldenrod2': [((215, 215, 135), (60, 50, 68), 'LightGoldenrod2', 186), ((255, 215, 95), (45, 100, 68), 'LightGoldenrod2', 221), ((255, 215, 135), (40, 100, 76), 'LightGoldenrod2', 222)], 'lightgoldenrod3': [((215, 175, 95), (40, 60, 60), 'LightGoldenrod3', 179)], 'lightgreen': [((135, 255, 95), (105, 100, 68), 'LightGreen', 119), ((135, 255, 135), (120, 100, 76), 'LightGreen', 120)], 'lightpink1': [((255, 175, 175), (0, 100, 84), 'LightPink1', 217)], 'lightpink3': [((215, 135, 135), (0, 50, 68), 'LightPink3', 174)], 'lightpink4': [((135, 95, 95), (0, 17, 45), 'LightPink4', 95)], 'lightsalmon1': [((255, 175, 135), (20, 100, 76), 'LightSalmon1', 216)], 'lightsalmon3': [((175, 135, 95), (30, 33, 52), 'LightSalmon3', 137), ((215, 135, 95), (20, 60, 60), 'LightSalmon3', 173)], 'lightseagreen': [((0, 175, 175), (180, 100, 34), 'LightSeaGreen', 37)], 'lightskyblue1': [((175, 215, 255), (210, 100, 84), 'LightSkyBlue1', 153)], 'lightskyblue3': [((135, 175, 175), (180, 20, 60), 'LightSkyBlue3', 109), ((135, 175, 215), (210, 50, 68), 'LightSkyBlue3', 110)], 'lightslateblue': [((135, 135, 255), (240, 100, 76), 'LightSlateBlue', 105)], 'lightslategrey': [((135, 135, 175), (240, 20, 60), 'LightSlateGrey', 103)], 'lightsteelblue': [((175, 175, 255), (240, 100, 84), 'LightSteelBlue', 147)], 'lightsteelblue1': [((215, 215, 255), (240, 100, 92), 'LightSteelBlue1', 189)], 'lightsteelblue3': [((175, 175, 215), (240, 33, 76), 'LightSteelBlue3', 146)], 'lightyellow3': [((215, 215, 175), (60, 33, 76), 'LightYellow3', 187)], 'lime': [((0, 255, 0), (120, 100, 50), 'Lime', 10)], 'magenta1': [((255, 0, 255), (300, 100, 50), 'Magenta1', 201)], 'magenta2': [((215, 0, 255), (90, 100, 50), 'Magenta2', 165), ((255, 0, 215), (9, 100, 50), 'Magenta2', 200)], 'magenta3': [((175, 0, 175), (300, 100, 34), 'Magenta3', 127), ((215, 0, 175), (11, 100, 42), 'Magenta3', 163), ((215, 0, 215), (300, 100, 42), 'Magenta3', 164)], 'maroon': [((128, 0, 0), (0, 100, 25), 'Maroon', 1)], 'mediumorchid': [((175, 95, 215), (280, 60, 60), 'MediumOrchid', 134)], 'mediumorchid1': [((215, 95, 255), (285, 100, 68), 'MediumOrchid1', 171), ((255, 95, 255), (300, 100, 68), 'MediumOrchid1', 207)], 'mediumorchid3': [((175, 95, 175), (300, 33, 52), 'MediumOrchid3', 133)], 'mediumpurple': [((135, 135, 215), (240, 50, 68), 'MediumPurple', 104)], 'mediumpurple1': [((175, 135, 255), (260, 100, 76), 'MediumPurple1', 141)], 'mediumpurple2': [((175, 95, 255), (270, 100, 68), 'MediumPurple2', 135), ((175, 135, 215), (270, 50, 68), 'MediumPurple2', 140)], 'mediumpurple3': [((135, 95, 175), (270, 33, 52), 'MediumPurple3', 97), ((135, 95, 215), (260, 60, 60), 'MediumPurple3', 98)], 'mediumpurple4': [((95, 95, 135), (240, 17, 45), 'MediumPurple4', 60)], 'mediumspringgreen': [((0, 255, 175), (61, 100, 50), 'MediumSpringGreen', 49)], 'mediumturquoise': [((95, 215, 215), (180, 60, 60), 'MediumTurquoise', 80)], 'mediumvioletred': [((175, 0, 135), (13, 100, 34), 'MediumVioletRed', 126)], 'mistyrose1': [((255, 215, 215), (0, 100, 92), 'MistyRose1', 224)], 'mistyrose3': [((215, 175, 175), (0, 33, 76), 'MistyRose3', 181)], 'navajowhite1': [((255, 215, 175), (30, 100, 84), 'NavajoWhite1', 223)], 'navajowhite3': [((175, 175, 135), (60, 20, 60), 'NavajoWhite3', 144)], 'navy': [((0, 0, 128), (240, 100, 25), 'Navy', 4)], 'navyblue': [((0, 0, 95), (240, 100, 18), 'NavyBlue', 17)], 'olive': [((128, 128, 0), (60, 100, 25), 'Olive', 3)], 'orange1': [((255, 175, 0), (1, 100, 50), 'Orange1', 214)], 'orange3': [((215, 135, 0), (7, 100, 42), 'Orange3', 172)], 'orange4': [((95, 95, 0), (60, 100, 18), 'Orange4', 58), ((135, 95, 0), (2, 100, 26), 'Orange4', 94)], 'orangered1': [((255, 95, 0), (2, 100, 50), 'OrangeRed1', 202)], 'orchid': [((215, 95, 215), (300, 60, 60), 'Orchid', 170)], 'orchid1': [((255, 135, 255), (300, 100, 76), 'Orchid1', 213)], 'orchid2': [((255, 135, 215), (320, 100, 76), 'Orchid2', 212)], 'palegreen1': [((135, 255, 175), (140, 100, 76), 'PaleGreen1', 121), ((175, 255, 135), (100, 100, 76), 'PaleGreen1', 156)], 'palegreen3': [((95, 215, 95), (120, 60, 60), 'PaleGreen3', 77), ((135, 215, 135), (120, 50, 68), 'PaleGreen3', 114)], 'paleturquoise1': [((175, 255, 255), (180, 100, 84), 'PaleTurquoise1', 159)], 'paleturquoise4': [((95, 135, 135), (180, 17, 45), 'PaleTurquoise4', 66)], 'palevioletred1': [((255, 135, 175), (340, 100, 76), 'PaleVioletRed1', 211)], 'pink1': [((255, 175, 215), (330, 100, 84), 'Pink1', 218)], 'pink3': [((215, 135, 175), (330, 50, 68), 'Pink3', 175)], 'plum1': [((255, 175, 255), (300, 100, 84), 'Plum1', 219)], 'plum2': [((215, 175, 255), (270, 100, 84), 'Plum2', 183)], 'plum3': [((215, 135, 215), (300, 50, 68), 'Plum3', 176)], 'plum4': [((135, 95, 135), (300, 17, 45), 'Plum4', 96)], 'purple': [((128, 0, 128), (300, 100, 25), 'Purple', 5), ((135, 0, 255), (71, 100, 50), 'Purple', 93), ((175, 0, 255), (81, 100, 50), 'Purple', 129)], 'purple3': [((95, 0, 215), (66, 100, 42), 'Purple3', 56)], 'purple4': [((95, 0, 135), (82, 100, 26), 'Purple4', 54), ((95, 0, 175), (72, 100, 34), 'Purple4', 55)], 'red': [((255, 0, 0), (0, 100, 50), 'Red', 9)], 'red1': [((255, 0, 0), (0, 100, 50), 'Red1', 196)], 'red3': [((175, 0, 0), (0, 100, 34), 'Red3', 124), ((215, 0, 0), (0, 100, 42), 'Red3', 160)], 'rosybrown': [((175, 135, 135), (0, 20, 60), 'RosyBrown', 138)], 'royalblue1': [((95, 95, 255), (240, 100, 68), 'RoyalBlue1', 63)], 'salmon1': [((255, 135, 95), (15, 100, 68), 'Salmon1', 209)], 'sandybrown': [((255, 175, 95), (30, 100, 68), 'SandyBrown', 215)], 'seagreen1': [((95, 255, 135), (135, 100, 68), 'SeaGreen1', 84), ((95, 255, 175), (150, 100, 68), 'SeaGreen1', 85)], 'seagreen2': [((95, 255, 95), (120, 100, 68), 'SeaGreen2', 83)], 'seagreen3': [((95, 215, 135), (140, 60, 60), 'SeaGreen3', 78)], 'silver': [((192, 192, 192), (0, 0, 75), 'Silver', 7)], 'skyblue1': [((135, 215, 255), (200, 100, 76), 'SkyBlue1', 117)], 'skyblue2': [((135, 175, 255), (220, 100, 76), 'SkyBlue2', 111)], 'skyblue3': [((95, 175, 215), (200, 60, 60), 'SkyBlue3', 74)], 'slateblue1': [((135, 95, 255), (255, 100, 68), 'SlateBlue1', 99)], 'slateblue3': [((95, 95, 175), (240, 33, 52), 'SlateBlue3', 61), ((95, 95, 215), (240, 60, 60), 'SlateBlue3', 62)], 'springgreen1': [((0, 255, 135), (51, 100, 50), 'SpringGreen1', 48)], 'springgreen2': [((0, 215, 135), (57, 100, 42), 'SpringGreen2', 42), ((0, 255, 95), (42, 100, 50), 'SpringGreen2', 47)], 'springgreen3': [((0, 175, 95), (52, 100, 34), 'SpringGreen3', 35), ((0, 215, 95), (46, 100, 42), 'SpringGreen3', 41)], 'springgreen4': [((0, 135, 95), (62, 100, 26), 'SpringGreen4', 29)], 'steelblue': [((95, 135, 175), (210, 33, 52), 'SteelBlue', 67)], 'steelblue1': [((95, 175, 255), (210, 100, 68), 'SteelBlue1', 75), ((95, 215, 255), (195, 100, 68), 'SteelBlue1', 81)], 'steelblue3': [((95, 135, 215), (220, 60, 60), 'SteelBlue3', 68)], 'tan': [((215, 175, 135), (30, 50, 68), 'Tan', 180)], 'teal': [((0, 128, 128), (180, 100, 25), 'Teal', 6)], 'thistle1': [((255, 215, 255), (300, 100, 92), 'Thistle1', 225)], 'thistle3': [((215, 175, 215), (300, 33, 76), 'Thistle3', 182)], 'turquoise2': [((0, 215, 255), (89, 100, 50), 'Turquoise2', 45)], 'turquoise4': [((0, 135, 135), (180, 100, 26), 'Turquoise4', 30)], 'violet': [((215, 135, 255), (280, 100, 76), 'Violet', 177)], 'wheat1': [((255, 255, 175), (60, 100, 84), 'Wheat1', 229)], 'wheat4': [((135, 135, 95), (60, 17, 45), 'Wheat4', 101)], 'white': [((255, 255, 255), (0, 0, 100), 'White', 15)], 'yellow': [((255, 255, 0), (60, 100, 50), 'Yellow', 11)], 'yellow1': [((255, 255, 0), (60, 100, 50), 'Yellow1', 226)], 'yellow2': [((215, 255, 0), (9, 100, 50), 'Yellow2', 190)], 'yellow3': [((175, 215, 0), (1, 100, 42), 'Yellow3', 148), ((215, 215, 0), (60, 100, 42), 'Yellow3', 184)], 'yellow4': [((135, 135, 0), (60, 100, 26), 'Yellow4', 100), ((135, 175, 0), (3, 100, 34), 'Yellow4', 106)]}
by_name: ClassVar[defaultdict[str, List[Color]]] = {'Aqua': [((0, 255, 255), (180, 100, 50), 'Aqua', 14)], 'Aquamarine1': [((95, 255, 215), (165, 100, 68), 'Aquamarine1', 86), ((135, 255, 215), (160, 100, 76), 'Aquamarine1', 122)], 'Aquamarine3': [((95, 215, 175), (160, 60, 60), 'Aquamarine3', 79)], 'Black': [((0, 0, 0), (0, 0, 0), 'Black', 0)], 'Blue': [((0, 0, 255), (240, 100, 50), 'Blue', 12)], 'Blue1': [((0, 0, 255), (240, 100, 50), 'Blue1', 21)], 'Blue3': [((0, 0, 175), (240, 100, 34), 'Blue3', 19), ((0, 0, 215), (240, 100, 42), 'Blue3', 20)], 'BlueViolet': [((95, 0, 255), (62, 100, 50), 'BlueViolet', 57)], 'CadetBlue': [((95, 175, 135), (150, 33, 52), 'CadetBlue', 72), ((95, 175, 175), (180, 33, 52), 'CadetBlue', 73)], 'Chartreuse1': [((135, 255, 0), (8, 100, 50), 'Chartreuse1', 118)], 'Chartreuse2': [((95, 255, 0), (7, 100, 50), 'Chartreuse2', 82), ((135, 215, 0), (2, 100, 42), 'Chartreuse2', 112)], 'Chartreuse3': [((95, 175, 0), (7, 100, 34), 'Chartreuse3', 70), ((95, 215, 0), (3, 100, 42), 'Chartreuse3', 76)], 'Chartreuse4': [((95, 135, 0), (7, 100, 26), 'Chartreuse4', 64)], 'CornflowerBlue': [((95, 135, 255), (225, 100, 68), 'CornflowerBlue', 69)], 'Cornsilk1': [((255, 255, 215), (60, 100, 92), 'Cornsilk1', 230)], 'Cyan1': [((0, 255, 255), (180, 100, 50), 'Cyan1', 51)], 'Cyan2': [((0, 255, 215), (70, 100, 50), 'Cyan2', 50)], 'Cyan3': [((0, 215, 175), (68, 100, 42), 'Cyan3', 43)], 'DarkBlue': [((0, 0, 135), (240, 100, 26), 'DarkBlue', 18)], 'DarkCyan': [((0, 175, 135), (66, 100, 34), 'DarkCyan', 36)], 'DarkGoldenrod': [((175, 135, 0), (6, 100, 34), 'DarkGoldenrod', 136)], 'DarkGreen': [((0, 95, 0), (120, 100, 18), 'DarkGreen', 22)], 'DarkKhaki': [((175, 175, 95), (60, 33, 52), 'DarkKhaki', 143)], 'DarkMagenta': [((135, 0, 135), (300, 100, 26), 'DarkMagenta', 90), ((135, 0, 175), (86, 100, 34), 'DarkMagenta', 91)], 'DarkOliveGreen1': [((215, 255, 95), (75, 100, 68), 'DarkOliveGreen1', 191), ((215, 255, 135), (80, 100, 76), 'DarkOliveGreen1', 192)], 'DarkOliveGreen2': [((175, 255, 95), (90, 100, 68), 'DarkOliveGreen2', 155)], 'DarkOliveGreen3': [((135, 175, 95), (90, 33, 52), 'DarkOliveGreen3', 107), ((135, 215, 95), (100, 60, 60), 'DarkOliveGreen3', 113), ((175, 215, 95), (80, 60, 60), 'DarkOliveGreen3', 149)], 'DarkOrange': [((255, 135, 0), (1, 100, 50), 'DarkOrange', 208)], 'DarkOrange3': [((175, 95, 0), (2, 100, 34), 'DarkOrange3', 130), ((215, 95, 0), (6, 100, 42), 'DarkOrange3', 166)], 'DarkRed': [((95, 0, 0), (0, 100, 18), 'DarkRed', 52), ((135, 0, 0), (0, 100, 26), 'DarkRed', 88)], 'DarkSeaGreen': [((135, 175, 135), (120, 20, 60), 'DarkSeaGreen', 108)], 'DarkSeaGreen1': [((175, 255, 215), (150, 100, 84), 'DarkSeaGreen1', 158), ((215, 255, 175), (90, 100, 84), 'DarkSeaGreen1', 193)], 'DarkSeaGreen2': [((175, 215, 175), (120, 33, 76), 'DarkSeaGreen2', 151), ((175, 255, 175), (120, 100, 84), 'DarkSeaGreen2', 157)], 'DarkSeaGreen3': [((135, 215, 175), (150, 50, 68), 'DarkSeaGreen3', 115), ((175, 215, 135), (90, 50, 68), 'DarkSeaGreen3', 150)], 'DarkSeaGreen4': [((95, 135, 95), (120, 17, 45), 'DarkSeaGreen4', 65), ((95, 175, 95), (120, 33, 52), 'DarkSeaGreen4', 71)], 'DarkSlateGray1': [((135, 255, 255), (180, 100, 76), 'DarkSlateGray1', 123)], 'DarkSlateGray2': [((95, 255, 255), (180, 100, 68), 'DarkSlateGray2', 87)], 'DarkSlateGray3': [((135, 215, 215), (180, 50, 68), 'DarkSlateGray3', 116)], 'DarkTurquoise': [((0, 215, 215), (180, 100, 42), 'DarkTurquoise', 44)], 'DarkViolet': [((135, 0, 215), (77, 100, 42), 'DarkViolet', 92), ((175, 0, 215), (88, 100, 42), 'DarkViolet', 128)], 'DeepPink1': [((255, 0, 135), (28, 100, 50), 'DeepPink1', 198), ((255, 0, 175), (18, 100, 50), 'DeepPink1', 199)], 'DeepPink2': [((255, 0, 95), (37, 100, 50), 'DeepPink2', 197)], 'DeepPink3': [((215, 0, 95), (33, 100, 42), 'DeepPink3', 161), ((215, 0, 135), (22, 100, 42), 'DeepPink3', 162)], 'DeepPink4': [((95, 0, 95), (300, 100, 18), 'DeepPink4', 53), ((135, 0, 95), (17, 100, 26), 'DeepPink4', 89), ((175, 0, 95), (27, 100, 34), 'DeepPink4', 125)], 'DeepSkyBlue1': [((0, 175, 255), (98, 100, 50), 'DeepSkyBlue1', 39)], 'DeepSkyBlue2': [((0, 175, 215), (91, 100, 42), 'DeepSkyBlue2', 38)], 'DeepSkyBlue3': [((0, 135, 175), (93, 100, 34), 'DeepSkyBlue3', 31), ((0, 135, 215), (2, 100, 42), 'DeepSkyBlue3', 32)], 'DeepSkyBlue4': [((0, 95, 95), (180, 100, 18), 'DeepSkyBlue4', 23), ((0, 95, 135), (97, 100, 26), 'DeepSkyBlue4', 24), ((0, 95, 175), (7, 100, 34), 'DeepSkyBlue4', 25)], 'DodgerBlue1': [((0, 135, 255), (8, 100, 50), 'DodgerBlue1', 33)], 'DodgerBlue2': [((0, 95, 255), (17, 100, 50), 'DodgerBlue2', 27)], 'DodgerBlue3': [((0, 95, 215), (13, 100, 42), 'DodgerBlue3', 26)], 'Fuchsia': [((255, 0, 255), (300, 100, 50), 'Fuchsia', 13)], 'Gold1': [((255, 215, 0), (0, 100, 50), 'Gold1', 220)], 'Gold3': [((175, 175, 0), (60, 100, 34), 'Gold3', 142), ((215, 175, 0), (8, 100, 42), 'Gold3', 178)], 'Green': [((0, 128, 0), (120, 100, 25), 'Green', 2)], 'Green1': [((0, 255, 0), (120, 100, 50), 'Green1', 46)], 'Green3': [((0, 175, 0), (120, 100, 34), 'Green3', 34), ((0, 215, 0), (120, 100, 42), 'Green3', 40)], 'Green4': [((0, 135, 0), (120, 100, 26), 'Green4', 28)], 'GreenYellow': [((175, 255, 0), (8, 100, 50), 'GreenYellow', 154)], 'Grey': [((128, 128, 128), (0, 0, 50), 'Grey', 8)], 'Grey0': [((0, 0, 0), (0, 0, 0), 'Grey0', 16)], 'Grey100': [((255, 255, 255), (0, 0, 100), 'Grey100', 231)], 'Grey11': [((28, 28, 28), (0, 0, 10), 'Grey11', 234)], 'Grey15': [((38, 38, 38), (0, 0, 14), 'Grey15', 235)], 'Grey19': [((48, 48, 48), (0, 0, 18), 'Grey19', 236)], 'Grey23': [((58, 58, 58), (0, 0, 22), 'Grey23', 237)], 'Grey27': [((68, 68, 68), (0, 0, 26), 'Grey27', 238)], 'Grey3': [((8, 8, 8), (0, 0, 3), 'Grey3', 232)], 'Grey30': [((78, 78, 78), (0, 0, 30), 'Grey30', 239)], 'Grey35': [((88, 88, 88), (0, 0, 34), 'Grey35', 240)], 'Grey37': [((95, 95, 95), (0, 0, 37), 'Grey37', 59)], 'Grey39': [((98, 98, 98), (0, 0, 37), 'Grey39', 241)], 'Grey42': [((108, 108, 108), (0, 0, 40), 'Grey42', 242)], 'Grey46': [((118, 118, 118), (0, 0, 46), 'Grey46', 243)], 'Grey50': [((128, 128, 128), (0, 0, 50), 'Grey50', 244)], 'Grey53': [((135, 135, 135), (0, 0, 52), 'Grey53', 102)], 'Grey54': [((138, 138, 138), (0, 0, 54), 'Grey54', 245)], 'Grey58': [((148, 148, 148), (0, 0, 58), 'Grey58', 246)], 'Grey62': [((158, 158, 158), (0, 0, 61), 'Grey62', 247)], 'Grey63': [((175, 135, 175), (300, 20, 60), 'Grey63', 139)], 'Grey66': [((168, 168, 168), (0, 0, 65), 'Grey66', 248)], 'Grey69': [((175, 175, 175), (0, 0, 68), 'Grey69', 145)], 'Grey7': [((18, 18, 18), (0, 0, 7), 'Grey7', 233)], 'Grey70': [((178, 178, 178), (0, 0, 69), 'Grey70', 249)], 'Grey74': [((188, 188, 188), (0, 0, 73), 'Grey74', 250)], 'Grey78': [((198, 198, 198), (0, 0, 77), 'Grey78', 251)], 'Grey82': [((208, 208, 208), (0, 0, 81), 'Grey82', 252)], 'Grey84': [((215, 215, 215), (0, 0, 84), 'Grey84', 188)], 'Grey85': [((218, 218, 218), (0, 0, 85), 'Grey85', 253)], 'Grey89': [((228, 228, 228), (0, 0, 89), 'Grey89', 254)], 'Grey93': [((238, 238, 238), (0, 0, 93), 'Grey93', 255)], 'Honeydew2': [((215, 255, 215), (120, 100, 92), 'Honeydew2', 194)], 'HotPink': [((255, 95, 175), (330, 100, 68), 'HotPink', 205), ((255, 95, 215), (315, 100, 68), 'HotPink', 206)], 'HotPink2': [((215, 95, 175), (320, 60, 60), 'HotPink2', 169)], 'HotPink3': [((175, 95, 135), (330, 33, 52), 'HotPink3', 132), ((215, 95, 135), (340, 60, 60), 'HotPink3', 168)], 'IndianRed': [((175, 95, 95), (0, 33, 52), 'IndianRed', 131), ((215, 95, 95), (0, 60, 60), 'IndianRed', 167)], 'IndianRed1': [((255, 95, 95), (0, 100, 68), 'IndianRed1', 203), ((255, 95, 135), (345, 100, 68), 'IndianRed1', 204)], 'Khaki1': [((255, 255, 135), (60, 100, 76), 'Khaki1', 228)], 'Khaki3': [((215, 215, 95), (60, 60, 60), 'Khaki3', 185)], 'LightCoral': [((255, 135, 135), (0, 100, 76), 'LightCoral', 210)], 'LightCyan1': [((215, 255, 255), (180, 100, 92), 'LightCyan1', 195)], 'LightCyan3': [((175, 215, 215), (180, 33, 76), 'LightCyan3', 152)], 'LightGoldenrod1': [((255, 255, 95), (60, 100, 68), 'LightGoldenrod1', 227)], 'LightGoldenrod2': [((215, 215, 135), (60, 50, 68), 'LightGoldenrod2', 186), ((255, 215, 95), (45, 100, 68), 'LightGoldenrod2', 221), ((255, 215, 135), (40, 100, 76), 'LightGoldenrod2', 222)], 'LightGoldenrod3': [((215, 175, 95), (40, 60, 60), 'LightGoldenrod3', 179)], 'LightGreen': [((135, 255, 95), (105, 100, 68), 'LightGreen', 119), ((135, 255, 135), (120, 100, 76), 'LightGreen', 120)], 'LightPink1': [((255, 175, 175), (0, 100, 84), 'LightPink1', 217)], 'LightPink3': [((215, 135, 135), (0, 50, 68), 'LightPink3', 174)], 'LightPink4': [((135, 95, 95), (0, 17, 45), 'LightPink4', 95)], 'LightSalmon1': [((255, 175, 135), (20, 100, 76), 'LightSalmon1', 216)], 'LightSalmon3': [((175, 135, 95), (30, 33, 52), 'LightSalmon3', 137), ((215, 135, 95), (20, 60, 60), 'LightSalmon3', 173)], 'LightSeaGreen': [((0, 175, 175), (180, 100, 34), 'LightSeaGreen', 37)], 'LightSkyBlue1': [((175, 215, 255), (210, 100, 84), 'LightSkyBlue1', 153)], 'LightSkyBlue3': [((135, 175, 175), (180, 20, 60), 'LightSkyBlue3', 109), ((135, 175, 215), (210, 50, 68), 'LightSkyBlue3', 110)], 'LightSlateBlue': [((135, 135, 255), (240, 100, 76), 'LightSlateBlue', 105)], 'LightSlateGrey': [((135, 135, 175), (240, 20, 60), 'LightSlateGrey', 103)], 'LightSteelBlue': [((175, 175, 255), (240, 100, 84), 'LightSteelBlue', 147)], 'LightSteelBlue1': [((215, 215, 255), (240, 100, 92), 'LightSteelBlue1', 189)], 'LightSteelBlue3': [((175, 175, 215), (240, 33, 76), 'LightSteelBlue3', 146)], 'LightYellow3': [((215, 215, 175), (60, 33, 76), 'LightYellow3', 187)], 'Lime': [((0, 255, 0), (120, 100, 50), 'Lime', 10)], 'Magenta1': [((255, 0, 255), (300, 100, 50), 'Magenta1', 201)], 'Magenta2': [((215, 0, 255), (90, 100, 50), 'Magenta2', 165), ((255, 0, 215), (9, 100, 50), 'Magenta2', 200)], 'Magenta3': [((175, 0, 175), (300, 100, 34), 'Magenta3', 127), ((215, 0, 175), (11, 100, 42), 'Magenta3', 163), ((215, 0, 215), (300, 100, 42), 'Magenta3', 164)], 'Maroon': [((128, 0, 0), (0, 100, 25), 'Maroon', 1)], 'MediumOrchid': [((175, 95, 215), (280, 60, 60), 'MediumOrchid', 134)], 'MediumOrchid1': [((215, 95, 255), (285, 100, 68), 'MediumOrchid1', 171), ((255, 95, 255), (300, 100, 68), 'MediumOrchid1', 207)], 'MediumOrchid3': [((175, 95, 175), (300, 33, 52), 'MediumOrchid3', 133)], 'MediumPurple': [((135, 135, 215), (240, 50, 68), 'MediumPurple', 104)], 'MediumPurple1': [((175, 135, 255), (260, 100, 76), 'MediumPurple1', 141)], 'MediumPurple2': [((175, 95, 255), (270, 100, 68), 'MediumPurple2', 135), ((175, 135, 215), (270, 50, 68), 'MediumPurple2', 140)], 'MediumPurple3': [((135, 95, 175), (270, 33, 52), 'MediumPurple3', 97), ((135, 95, 215), (260, 60, 60), 'MediumPurple3', 98)], 'MediumPurple4': [((95, 95, 135), (240, 17, 45), 'MediumPurple4', 60)], 'MediumSpringGreen': [((0, 255, 175), (61, 100, 50), 'MediumSpringGreen', 49)], 'MediumTurquoise': [((95, 215, 215), (180, 60, 60), 'MediumTurquoise', 80)], 'MediumVioletRed': [((175, 0, 135), (13, 100, 34), 'MediumVioletRed', 126)], 'MistyRose1': [((255, 215, 215), (0, 100, 92), 'MistyRose1', 224)], 'MistyRose3': [((215, 175, 175), (0, 33, 76), 'MistyRose3', 181)], 'NavajoWhite1': [((255, 215, 175), (30, 100, 84), 'NavajoWhite1', 223)], 'NavajoWhite3': [((175, 175, 135), (60, 20, 60), 'NavajoWhite3', 144)], 'Navy': [((0, 0, 128), (240, 100, 25), 'Navy', 4)], 'NavyBlue': [((0, 0, 95), (240, 100, 18), 'NavyBlue', 17)], 'Olive': [((128, 128, 0), (60, 100, 25), 'Olive', 3)], 'Orange1': [((255, 175, 0), (1, 100, 50), 'Orange1', 214)], 'Orange3': [((215, 135, 0), (7, 100, 42), 'Orange3', 172)], 'Orange4': [((95, 95, 0), (60, 100, 18), 'Orange4', 58), ((135, 95, 0), (2, 100, 26), 'Orange4', 94)], 'OrangeRed1': [((255, 95, 0), (2, 100, 50), 'OrangeRed1', 202)], 'Orchid': [((215, 95, 215), (300, 60, 60), 'Orchid', 170)], 'Orchid1': [((255, 135, 255), (300, 100, 76), 'Orchid1', 213)], 'Orchid2': [((255, 135, 215), (320, 100, 76), 'Orchid2', 212)], 'PaleGreen1': [((135, 255, 175), (140, 100, 76), 'PaleGreen1', 121), ((175, 255, 135), (100, 100, 76), 'PaleGreen1', 156)], 'PaleGreen3': [((95, 215, 95), (120, 60, 60), 'PaleGreen3', 77), ((135, 215, 135), (120, 50, 68), 'PaleGreen3', 114)], 'PaleTurquoise1': [((175, 255, 255), (180, 100, 84), 'PaleTurquoise1', 159)], 'PaleTurquoise4': [((95, 135, 135), (180, 17, 45), 'PaleTurquoise4', 66)], 'PaleVioletRed1': [((255, 135, 175), (340, 100, 76), 'PaleVioletRed1', 211)], 'Pink1': [((255, 175, 215), (330, 100, 84), 'Pink1', 218)], 'Pink3': [((215, 135, 175), (330, 50, 68), 'Pink3', 175)], 'Plum1': [((255, 175, 255), (300, 100, 84), 'Plum1', 219)], 'Plum2': [((215, 175, 255), (270, 100, 84), 'Plum2', 183)], 'Plum3': [((215, 135, 215), (300, 50, 68), 'Plum3', 176)], 'Plum4': [((135, 95, 135), (300, 17, 45), 'Plum4', 96)], 'Purple': [((128, 0, 128), (300, 100, 25), 'Purple', 5), ((135, 0, 255), (71, 100, 50), 'Purple', 93), ((175, 0, 255), (81, 100, 50), 'Purple', 129)], 'Purple3': [((95, 0, 215), (66, 100, 42), 'Purple3', 56)], 'Purple4': [((95, 0, 135), (82, 100, 26), 'Purple4', 54), ((95, 0, 175), (72, 100, 34), 'Purple4', 55)], 'Red': [((255, 0, 0), (0, 100, 50), 'Red', 9)], 'Red1': [((255, 0, 0), (0, 100, 50), 'Red1', 196)], 'Red3': [((175, 0, 0), (0, 100, 34), 'Red3', 124), ((215, 0, 0), (0, 100, 42), 'Red3', 160)], 'RosyBrown': [((175, 135, 135), (0, 20, 60), 'RosyBrown', 138)], 'RoyalBlue1': [((95, 95, 255), (240, 100, 68), 'RoyalBlue1', 63)], 'Salmon1': [((255, 135, 95), (15, 100, 68), 'Salmon1', 209)], 'SandyBrown': [((255, 175, 95), (30, 100, 68), 'SandyBrown', 215)], 'SeaGreen1': [((95, 255, 135), (135, 100, 68), 'SeaGreen1', 84), ((95, 255, 175), (150, 100, 68), 'SeaGreen1', 85)], 'SeaGreen2': [((95, 255, 95), (120, 100, 68), 'SeaGreen2', 83)], 'SeaGreen3': [((95, 215, 135), (140, 60, 60), 'SeaGreen3', 78)], 'Silver': [((192, 192, 192), (0, 0, 75), 'Silver', 7)], 'SkyBlue1': [((135, 215, 255), (200, 100, 76), 'SkyBlue1', 117)], 'SkyBlue2': [((135, 175, 255), (220, 100, 76), 'SkyBlue2', 111)], 'SkyBlue3': [((95, 175, 215), (200, 60, 60), 'SkyBlue3', 74)], 'SlateBlue1': [((135, 95, 255), (255, 100, 68), 'SlateBlue1', 99)], 'SlateBlue3': [((95, 95, 175), (240, 33, 52), 'SlateBlue3', 61), ((95, 95, 215), (240, 60, 60), 'SlateBlue3', 62)], 'SpringGreen1': [((0, 255, 135), (51, 100, 50), 'SpringGreen1', 48)], 'SpringGreen2': [((0, 215, 135), (57, 100, 42), 'SpringGreen2', 42), ((0, 255, 95), (42, 100, 50), 'SpringGreen2', 47)], 'SpringGreen3': [((0, 175, 95), (52, 100, 34), 'SpringGreen3', 35), ((0, 215, 95), (46, 100, 42), 'SpringGreen3', 41)], 'SpringGreen4': [((0, 135, 95), (62, 100, 26), 'SpringGreen4', 29)], 'SteelBlue': [((95, 135, 175), (210, 33, 52), 'SteelBlue', 67)], 'SteelBlue1': [((95, 175, 255), (210, 100, 68), 'SteelBlue1', 75), ((95, 215, 255), (195, 100, 68), 'SteelBlue1', 81)], 'SteelBlue3': [((95, 135, 215), (220, 60, 60), 'SteelBlue3', 68)], 'Tan': [((215, 175, 135), (30, 50, 68), 'Tan', 180)], 'Teal': [((0, 128, 128), (180, 100, 25), 'Teal', 6)], 'Thistle1': [((255, 215, 255), (300, 100, 92), 'Thistle1', 225)], 'Thistle3': [((215, 175, 215), (300, 33, 76), 'Thistle3', 182)], 'Turquoise2': [((0, 215, 255), (89, 100, 50), 'Turquoise2', 45)], 'Turquoise4': [((0, 135, 135), (180, 100, 26), 'Turquoise4', 30)], 'Violet': [((215, 135, 255), (280, 100, 76), 'Violet', 177)], 'Wheat1': [((255, 255, 175), (60, 100, 84), 'Wheat1', 229)], 'Wheat4': [((135, 135, 95), (60, 17, 45), 'Wheat4', 101)], 'White': [((255, 255, 255), (0, 0, 100), 'White', 15)], 'Yellow': [((255, 255, 0), (60, 100, 50), 'Yellow', 11)], 'Yellow1': [((255, 255, 0), (60, 100, 50), 'Yellow1', 226)], 'Yellow2': [((215, 255, 0), (9, 100, 50), 'Yellow2', 190)], 'Yellow3': [((175, 215, 0), (1, 100, 42), 'Yellow3', 148), ((215, 215, 0), (60, 100, 42), 'Yellow3', 184)], 'Yellow4': [((135, 135, 0), (60, 100, 26), 'Yellow4', 100), ((135, 175, 0), (3, 100, 34), 'Yellow4', 106)]}
by_rgb: ClassVar[defaultdict[RGB, List[Color]]] = {(0, 0, 0): [((0, 0, 0), (0, 0, 0), 'Black', 0), ((0, 0, 0), (0, 0, 0), 'Grey0', 16)], (0, 0, 95): [((0, 0, 95), (240, 100, 18), 'NavyBlue', 17)], (0, 0, 128): [((0, 0, 128), (240, 100, 25), 'Navy', 4)], (0, 0, 135): [((0, 0, 135), (240, 100, 26), 'DarkBlue', 18)], (0, 0, 175): [((0, 0, 175), (240, 100, 34), 'Blue3', 19)], (0, 0, 215): [((0, 0, 215), (240, 100, 42), 'Blue3', 20)], (0, 0, 255): [((0, 0, 255), (240, 100, 50), 'Blue', 12), ((0, 0, 255), (240, 100, 50), 'Blue1', 21)], (0, 95, 0): [((0, 95, 0), (120, 100, 18), 'DarkGreen', 22)], (0, 95, 95): [((0, 95, 95), (180, 100, 18), 'DeepSkyBlue4', 23)], (0, 95, 135): [((0, 95, 135), (97, 100, 26), 'DeepSkyBlue4', 24)], (0, 95, 175): [((0, 95, 175), (7, 100, 34), 'DeepSkyBlue4', 25)], (0, 95, 215): [((0, 95, 215), (13, 100, 42), 'DodgerBlue3', 26)], (0, 95, 255): [((0, 95, 255), (17, 100, 50), 'DodgerBlue2', 27)], (0, 128, 0): [((0, 128, 0), (120, 100, 25), 'Green', 2)], (0, 128, 128): [((0, 128, 128), (180, 100, 25), 'Teal', 6)], (0, 135, 0): [((0, 135, 0), (120, 100, 26), 'Green4', 28)], (0, 135, 95): [((0, 135, 95), (62, 100, 26), 'SpringGreen4', 29)], (0, 135, 135): [((0, 135, 135), (180, 100, 26), 'Turquoise4', 30)], (0, 135, 175): [((0, 135, 175), (93, 100, 34), 'DeepSkyBlue3', 31)], (0, 135, 215): [((0, 135, 215), (2, 100, 42), 'DeepSkyBlue3', 32)], (0, 135, 255): [((0, 135, 255), (8, 100, 50), 'DodgerBlue1', 33)], (0, 175, 0): [((0, 175, 0), (120, 100, 34), 'Green3', 34)], (0, 175, 95): [((0, 175, 95), (52, 100, 34), 'SpringGreen3', 35)], (0, 175, 135): [((0, 175, 135), (66, 100, 34), 'DarkCyan', 36)], (0, 175, 175): [((0, 175, 175), (180, 100, 34), 'LightSeaGreen', 37)], (0, 175, 215): [((0, 175, 215), (91, 100, 42), 'DeepSkyBlue2', 38)], (0, 175, 255): [((0, 175, 255), (98, 100, 50), 'DeepSkyBlue1', 39)], (0, 215, 0): [((0, 215, 0), (120, 100, 42), 'Green3', 40)], (0, 215, 95): [((0, 215, 95), (46, 100, 42), 'SpringGreen3', 41)], (0, 215, 135): [((0, 215, 135), (57, 100, 42), 'SpringGreen2', 42)], (0, 215, 175): [((0, 215, 175), (68, 100, 42), 'Cyan3', 43)], (0, 215, 215): [((0, 215, 215), (180, 100, 42), 'DarkTurquoise', 44)], (0, 215, 255): [((0, 215, 255), (89, 100, 50), 'Turquoise2', 45)], (0, 255, 0): [((0, 255, 0), (120, 100, 50), 'Lime', 10), ((0, 255, 0), (120, 100, 50), 'Green1', 46)], (0, 255, 95): [((0, 255, 95), (42, 100, 50), 'SpringGreen2', 47)], (0, 255, 135): [((0, 255, 135), (51, 100, 50), 'SpringGreen1', 48)], (0, 255, 175): [((0, 255, 175), (61, 100, 50), 'MediumSpringGreen', 49)], (0, 255, 215): [((0, 255, 215), (70, 100, 50), 'Cyan2', 50)], (0, 255, 255): [((0, 255, 255), (180, 100, 50), 'Aqua', 14), ((0, 255, 255), (180, 100, 50), 'Cyan1', 51)], (8, 8, 8): [((8, 8, 8), (0, 0, 3), 'Grey3', 232)], (18, 18, 18): [((18, 18, 18), (0, 0, 7), 'Grey7', 233)], (28, 28, 28): [((28, 28, 28), (0, 0, 10), 'Grey11', 234)], (38, 38, 38): [((38, 38, 38), (0, 0, 14), 'Grey15', 235)], (48, 48, 48): [((48, 48, 48), (0, 0, 18), 'Grey19', 236)], (58, 58, 58): [((58, 58, 58), (0, 0, 22), 'Grey23', 237)], (68, 68, 68): [((68, 68, 68), (0, 0, 26), 'Grey27', 238)], (78, 78, 78): [((78, 78, 78), (0, 0, 30), 'Grey30', 239)], (88, 88, 88): [((88, 88, 88), (0, 0, 34), 'Grey35', 240)], (95, 0, 0): [((95, 0, 0), (0, 100, 18), 'DarkRed', 52)], (95, 0, 95): [((95, 0, 95), (300, 100, 18), 'DeepPink4', 53)], (95, 0, 135): [((95, 0, 135), (82, 100, 26), 'Purple4', 54)], (95, 0, 175): [((95, 0, 175), (72, 100, 34), 'Purple4', 55)], (95, 0, 215): [((95, 0, 215), (66, 100, 42), 'Purple3', 56)], (95, 0, 255): [((95, 0, 255), (62, 100, 50), 'BlueViolet', 57)], (95, 95, 0): [((95, 95, 0), (60, 100, 18), 'Orange4', 58)], (95, 95, 95): [((95, 95, 95), (0, 0, 37), 'Grey37', 59)], (95, 95, 135): [((95, 95, 135), (240, 17, 45), 'MediumPurple4', 60)], (95, 95, 175): [((95, 95, 175), (240, 33, 52), 'SlateBlue3', 61)], (95, 95, 215): [((95, 95, 215), (240, 60, 60), 'SlateBlue3', 62)], (95, 95, 255): [((95, 95, 255), (240, 100, 68), 'RoyalBlue1', 63)], (95, 135, 0): [((95, 135, 0), (7, 100, 26), 'Chartreuse4', 64)], (95, 135, 95): [((95, 135, 95), (120, 17, 45), 'DarkSeaGreen4', 65)], (95, 135, 135): [((95, 135, 135), (180, 17, 45), 'PaleTurquoise4', 66)], (95, 135, 175): [((95, 135, 175), (210, 33, 52), 'SteelBlue', 67)], (95, 135, 215): [((95, 135, 215), (220, 60, 60), 'SteelBlue3', 68)], (95, 135, 255): [((95, 135, 255), (225, 100, 68), 'CornflowerBlue', 69)], (95, 175, 0): [((95, 175, 0), (7, 100, 34), 'Chartreuse3', 70)], (95, 175, 95): [((95, 175, 95), (120, 33, 52), 'DarkSeaGreen4', 71)], (95, 175, 135): [((95, 175, 135), (150, 33, 52), 'CadetBlue', 72)], (95, 175, 175): [((95, 175, 175), (180, 33, 52), 'CadetBlue', 73)], (95, 175, 215): [((95, 175, 215), (200, 60, 60), 'SkyBlue3', 74)], (95, 175, 255): [((95, 175, 255), (210, 100, 68), 'SteelBlue1', 75)], (95, 215, 0): [((95, 215, 0), (3, 100, 42), 'Chartreuse3', 76)], (95, 215, 95): [((95, 215, 95), (120, 60, 60), 'PaleGreen3', 77)], (95, 215, 135): [((95, 215, 135), (140, 60, 60), 'SeaGreen3', 78)], (95, 215, 175): [((95, 215, 175), (160, 60, 60), 'Aquamarine3', 79)], (95, 215, 215): [((95, 215, 215), (180, 60, 60), 'MediumTurquoise', 80)], (95, 215, 255): [((95, 215, 255), (195, 100, 68), 'SteelBlue1', 81)], (95, 255, 0): [((95, 255, 0), (7, 100, 50), 'Chartreuse2', 82)], (95, 255, 95): [((95, 255, 95), (120, 100, 68), 'SeaGreen2', 83)], (95, 255, 135): [((95, 255, 135), (135, 100, 68), 'SeaGreen1', 84)], (95, 255, 175): [((95, 255, 175), (150, 100, 68), 'SeaGreen1', 85)], (95, 255, 215): [((95, 255, 215), (165, 100, 68), 'Aquamarine1', 86)], (95, 255, 255): [((95, 255, 255), (180, 100, 68), 'DarkSlateGray2', 87)], (98, 98, 98): [((98, 98, 98), (0, 0, 37), 'Grey39', 241)], (108, 108, 108): [((108, 108, 108), (0, 0, 40), 'Grey42', 242)], (118, 118, 118): [((118, 118, 118), (0, 0, 46), 'Grey46', 243)], (128, 0, 0): [((128, 0, 0), (0, 100, 25), 'Maroon', 1)], (128, 0, 128): [((128, 0, 128), (300, 100, 25), 'Purple', 5)], (128, 128, 0): [((128, 128, 0), (60, 100, 25), 'Olive', 3)], (128, 128, 128): [((128, 128, 128), (0, 0, 50), 'Grey', 8), ((128, 128, 128), (0, 0, 50), 'Grey50', 244)], (135, 0, 0): [((135, 0, 0), (0, 100, 26), 'DarkRed', 88)], (135, 0, 95): [((135, 0, 95), (17, 100, 26), 'DeepPink4', 89)], (135, 0, 135): [((135, 0, 135), (300, 100, 26), 'DarkMagenta', 90)], (135, 0, 175): [((135, 0, 175), (86, 100, 34), 'DarkMagenta', 91)], (135, 0, 215): [((135, 0, 215), (77, 100, 42), 'DarkViolet', 92)], (135, 0, 255): [((135, 0, 255), (71, 100, 50), 'Purple', 93)], (135, 95, 0): [((135, 95, 0), (2, 100, 26), 'Orange4', 94)], (135, 95, 95): [((135, 95, 95), (0, 17, 45), 'LightPink4', 95)], (135, 95, 135): [((135, 95, 135), (300, 17, 45), 'Plum4', 96)], (135, 95, 175): [((135, 95, 175), (270, 33, 52), 'MediumPurple3', 97)], (135, 95, 215): [((135, 95, 215), (260, 60, 60), 'MediumPurple3', 98)], (135, 95, 255): [((135, 95, 255), (255, 100, 68), 'SlateBlue1', 99)], (135, 135, 0): [((135, 135, 0), (60, 100, 26), 'Yellow4', 100)], (135, 135, 95): [((135, 135, 95), (60, 17, 45), 'Wheat4', 101)], (135, 135, 135): [((135, 135, 135), (0, 0, 52), 'Grey53', 102)], (135, 135, 175): [((135, 135, 175), (240, 20, 60), 'LightSlateGrey', 103)], (135, 135, 215): [((135, 135, 215), (240, 50, 68), 'MediumPurple', 104)], (135, 135, 255): [((135, 135, 255), (240, 100, 76), 'LightSlateBlue', 105)], (135, 175, 0): [((135, 175, 0), (3, 100, 34), 'Yellow4', 106)], (135, 175, 95): [((135, 175, 95), (90, 33, 52), 'DarkOliveGreen3', 107)], (135, 175, 135): [((135, 175, 135), (120, 20, 60), 'DarkSeaGreen', 108)], (135, 175, 175): [((135, 175, 175), (180, 20, 60), 'LightSkyBlue3', 109)], (135, 175, 215): [((135, 175, 215), (210, 50, 68), 'LightSkyBlue3', 110)], (135, 175, 255): [((135, 175, 255), (220, 100, 76), 'SkyBlue2', 111)], (135, 215, 0): [((135, 215, 0), (2, 100, 42), 'Chartreuse2', 112)], (135, 215, 95): [((135, 215, 95), (100, 60, 60), 'DarkOliveGreen3', 113)], (135, 215, 135): [((135, 215, 135), (120, 50, 68), 'PaleGreen3', 114)], (135, 215, 175): [((135, 215, 175), (150, 50, 68), 'DarkSeaGreen3', 115)], (135, 215, 215): [((135, 215, 215), (180, 50, 68), 'DarkSlateGray3', 116)], (135, 215, 255): [((135, 215, 255), (200, 100, 76), 'SkyBlue1', 117)], (135, 255, 0): [((135, 255, 0), (8, 100, 50), 'Chartreuse1', 118)], (135, 255, 95): [((135, 255, 95), (105, 100, 68), 'LightGreen', 119)], (135, 255, 135): [((135, 255, 135), (120, 100, 76), 'LightGreen', 120)], (135, 255, 175): [((135, 255, 175), (140, 100, 76), 'PaleGreen1', 121)], (135, 255, 215): [((135, 255, 215), (160, 100, 76), 'Aquamarine1', 122)], (135, 255, 255): [((135, 255, 255), (180, 100, 76), 'DarkSlateGray1', 123)], (138, 138, 138): [((138, 138, 138), (0, 0, 54), 'Grey54', 245)], (148, 148, 148): [((148, 148, 148), (0, 0, 58), 'Grey58', 246)], (158, 158, 158): [((158, 158, 158), (0, 0, 61), 'Grey62', 247)], (168, 168, 168): [((168, 168, 168), (0, 0, 65), 'Grey66', 248)], (175, 0, 0): [((175, 0, 0), (0, 100, 34), 'Red3', 124)], (175, 0, 95): [((175, 0, 95), (27, 100, 34), 'DeepPink4', 125)], (175, 0, 135): [((175, 0, 135), (13, 100, 34), 'MediumVioletRed', 126)], (175, 0, 175): [((175, 0, 175), (300, 100, 34), 'Magenta3', 127)], (175, 0, 215): [((175, 0, 215), (88, 100, 42), 'DarkViolet', 128)], (175, 0, 255): [((175, 0, 255), (81, 100, 50), 'Purple', 129)], (175, 95, 0): [((175, 95, 0), (2, 100, 34), 'DarkOrange3', 130)], (175, 95, 95): [((175, 95, 95), (0, 33, 52), 'IndianRed', 131)], (175, 95, 135): [((175, 95, 135), (330, 33, 52), 'HotPink3', 132)], (175, 95, 175): [((175, 95, 175), (300, 33, 52), 'MediumOrchid3', 133)], (175, 95, 215): [((175, 95, 215), (280, 60, 60), 'MediumOrchid', 134)], (175, 95, 255): [((175, 95, 255), (270, 100, 68), 'MediumPurple2', 135)], (175, 135, 0): [((175, 135, 0), (6, 100, 34), 'DarkGoldenrod', 136)], (175, 135, 95): [((175, 135, 95), (30, 33, 52), 'LightSalmon3', 137)], (175, 135, 135): [((175, 135, 135), (0, 20, 60), 'RosyBrown', 138)], (175, 135, 175): [((175, 135, 175), (300, 20, 60), 'Grey63', 139)], (175, 135, 215): [((175, 135, 215), (270, 50, 68), 'MediumPurple2', 140)], (175, 135, 255): [((175, 135, 255), (260, 100, 76), 'MediumPurple1', 141)], (175, 175, 0): [((175, 175, 0), (60, 100, 34), 'Gold3', 142)], (175, 175, 95): [((175, 175, 95), (60, 33, 52), 'DarkKhaki', 143)], (175, 175, 135): [((175, 175, 135), (60, 20, 60), 'NavajoWhite3', 144)], (175, 175, 175): [((175, 175, 175), (0, 0, 68), 'Grey69', 145)], (175, 175, 215): [((175, 175, 215), (240, 33, 76), 'LightSteelBlue3', 146)], (175, 175, 255): [((175, 175, 255), (240, 100, 84), 'LightSteelBlue', 147)], (175, 215, 0): [((175, 215, 0), (1, 100, 42), 'Yellow3', 148)], (175, 215, 95): [((175, 215, 95), (80, 60, 60), 'DarkOliveGreen3', 149)], (175, 215, 135): [((175, 215, 135), (90, 50, 68), 'DarkSeaGreen3', 150)], (175, 215, 175): [((175, 215, 175), (120, 33, 76), 'DarkSeaGreen2', 151)], (175, 215, 215): [((175, 215, 215), (180, 33, 76), 'LightCyan3', 152)], (175, 215, 255): [((175, 215, 255), (210, 100, 84), 'LightSkyBlue1', 153)], (175, 255, 0): [((175, 255, 0), (8, 100, 50), 'GreenYellow', 154)], (175, 255, 95): [((175, 255, 95), (90, 100, 68), 'DarkOliveGreen2', 155)], (175, 255, 135): [((175, 255, 135), (100, 100, 76), 'PaleGreen1', 156)], (175, 255, 175): [((175, 255, 175), (120, 100, 84), 'DarkSeaGreen2', 157)], (175, 255, 215): [((175, 255, 215), (150, 100, 84), 'DarkSeaGreen1', 158)], (175, 255, 255): [((175, 255, 255), (180, 100, 84), 'PaleTurquoise1', 159)], (178, 178, 178): [((178, 178, 178), (0, 0, 69), 'Grey70', 249)], (188, 188, 188): [((188, 188, 188), (0, 0, 73), 'Grey74', 250)], (192, 192, 192): [((192, 192, 192), (0, 0, 75), 'Silver', 7)], (198, 198, 198): [((198, 198, 198), (0, 0, 77), 'Grey78', 251)], (208, 208, 208): [((208, 208, 208), (0, 0, 81), 'Grey82', 252)], (215, 0, 0): [((215, 0, 0), (0, 100, 42), 'Red3', 160)], (215, 0, 95): [((215, 0, 95), (33, 100, 42), 'DeepPink3', 161)], (215, 0, 135): [((215, 0, 135), (22, 100, 42), 'DeepPink3', 162)], (215, 0, 175): [((215, 0, 175), (11, 100, 42), 'Magenta3', 163)], (215, 0, 215): [((215, 0, 215), (300, 100, 42), 'Magenta3', 164)], (215, 0, 255): [((215, 0, 255), (90, 100, 50), 'Magenta2', 165)], (215, 95, 0): [((215, 95, 0), (6, 100, 42), 'DarkOrange3', 166)], (215, 95, 95): [((215, 95, 95), (0, 60, 60), 'IndianRed', 167)], (215, 95, 135): [((215, 95, 135), (340, 60, 60), 'HotPink3', 168)], (215, 95, 175): [((215, 95, 175), (320, 60, 60), 'HotPink2', 169)], (215, 95, 215): [((215, 95, 215), (300, 60, 60), 'Orchid', 170)], (215, 95, 255): [((215, 95, 255), (285, 100, 68), 'MediumOrchid1', 171)], (215, 135, 0): [((215, 135, 0), (7, 100, 42), 'Orange3', 172)], (215, 135, 95): [((215, 135, 95), (20, 60, 60), 'LightSalmon3', 173)], (215, 135, 135): [((215, 135, 135), (0, 50, 68), 'LightPink3', 174)], (215, 135, 175): [((215, 135, 175), (330, 50, 68), 'Pink3', 175)], (215, 135, 215): [((215, 135, 215), (300, 50, 68), 'Plum3', 176)], (215, 135, 255): [((215, 135, 255), (280, 100, 76), 'Violet', 177)], (215, 175, 0): [((215, 175, 0), (8, 100, 42), 'Gold3', 178)], (215, 175, 95): [((215, 175, 95), (40, 60, 60), 'LightGoldenrod3', 179)], (215, 175, 135): [((215, 175, 135), (30, 50, 68), 'Tan', 180)], (215, 175, 175): [((215, 175, 175), (0, 33, 76), 'MistyRose3', 181)], (215, 175, 215): [((215, 175, 215), (300, 33, 76), 'Thistle3', 182)], (215, 175, 255): [((215, 175, 255), (270, 100, 84), 'Plum2', 183)], (215, 215, 0): [((215, 215, 0), (60, 100, 42), 'Yellow3', 184)], (215, 215, 95): [((215, 215, 95), (60, 60, 60), 'Khaki3', 185)], (215, 215, 135): [((215, 215, 135), (60, 50, 68), 'LightGoldenrod2', 186)], (215, 215, 175): [((215, 215, 175), (60, 33, 76), 'LightYellow3', 187)], (215, 215, 215): [((215, 215, 215), (0, 0, 84), 'Grey84', 188)], (215, 215, 255): [((215, 215, 255), (240, 100, 92), 'LightSteelBlue1', 189)], (215, 255, 0): [((215, 255, 0), (9, 100, 50), 'Yellow2', 190)], (215, 255, 95): [((215, 255, 95), (75, 100, 68), 'DarkOliveGreen1', 191)], (215, 255, 135): [((215, 255, 135), (80, 100, 76), 'DarkOliveGreen1', 192)], (215, 255, 175): [((215, 255, 175), (90, 100, 84), 'DarkSeaGreen1', 193)], (215, 255, 215): [((215, 255, 215), (120, 100, 92), 'Honeydew2', 194)], (215, 255, 255): [((215, 255, 255), (180, 100, 92), 'LightCyan1', 195)], (218, 218, 218): [((218, 218, 218), (0, 0, 85), 'Grey85', 253)], (228, 228, 228): [((228, 228, 228), (0, 0, 89), 'Grey89', 254)], (238, 238, 238): [((238, 238, 238), (0, 0, 93), 'Grey93', 255)], (255, 0, 0): [((255, 0, 0), (0, 100, 50), 'Red', 9), ((255, 0, 0), (0, 100, 50), 'Red1', 196)], (255, 0, 95): [((255, 0, 95), (37, 100, 50), 'DeepPink2', 197)], (255, 0, 135): [((255, 0, 135), (28, 100, 50), 'DeepPink1', 198)], (255, 0, 175): [((255, 0, 175), (18, 100, 50), 'DeepPink1', 199)], (255, 0, 215): [((255, 0, 215), (9, 100, 50), 'Magenta2', 200)], (255, 0, 255): [((255, 0, 255), (300, 100, 50), 'Fuchsia', 13), ((255, 0, 255), (300, 100, 50), 'Magenta1', 201)], (255, 95, 0): [((255, 95, 0), (2, 100, 50), 'OrangeRed1', 202)], (255, 95, 95): [((255, 95, 95), (0, 100, 68), 'IndianRed1', 203)], (255, 95, 135): [((255, 95, 135), (345, 100, 68), 'IndianRed1', 204)], (255, 95, 175): [((255, 95, 175), (330, 100, 68), 'HotPink', 205)], (255, 95, 215): [((255, 95, 215), (315, 100, 68), 'HotPink', 206)], (255, 95, 255): [((255, 95, 255), (300, 100, 68), 'MediumOrchid1', 207)], (255, 135, 0): [((255, 135, 0), (1, 100, 50), 'DarkOrange', 208)], (255, 135, 95): [((255, 135, 95), (15, 100, 68), 'Salmon1', 209)], (255, 135, 135): [((255, 135, 135), (0, 100, 76), 'LightCoral', 210)], (255, 135, 175): [((255, 135, 175), (340, 100, 76), 'PaleVioletRed1', 211)], (255, 135, 215): [((255, 135, 215), (320, 100, 76), 'Orchid2', 212)], (255, 135, 255): [((255, 135, 255), (300, 100, 76), 'Orchid1', 213)], (255, 175, 0): [((255, 175, 0), (1, 100, 50), 'Orange1', 214)], (255, 175, 95): [((255, 175, 95), (30, 100, 68), 'SandyBrown', 215)], (255, 175, 135): [((255, 175, 135), (20, 100, 76), 'LightSalmon1', 216)], (255, 175, 175): [((255, 175, 175), (0, 100, 84), 'LightPink1', 217)], (255, 175, 215): [((255, 175, 215), (330, 100, 84), 'Pink1', 218)], (255, 175, 255): [((255, 175, 255), (300, 100, 84), 'Plum1', 219)], (255, 215, 0): [((255, 215, 0), (0, 100, 50), 'Gold1', 220)], (255, 215, 95): [((255, 215, 95), (45, 100, 68), 'LightGoldenrod2', 221)], (255, 215, 135): [((255, 215, 135), (40, 100, 76), 'LightGoldenrod2', 222)], (255, 215, 175): [((255, 215, 175), (30, 100, 84), 'NavajoWhite1', 223)], (255, 215, 215): [((255, 215, 215), (0, 100, 92), 'MistyRose1', 224)], (255, 215, 255): [((255, 215, 255), (300, 100, 92), 'Thistle1', 225)], (255, 255, 0): [((255, 255, 0), (60, 100, 50), 'Yellow', 11), ((255, 255, 0), (60, 100, 50), 'Yellow1', 226)], (255, 255, 95): [((255, 255, 95), (60, 100, 68), 'LightGoldenrod1', 227)], (255, 255, 135): [((255, 255, 135), (60, 100, 76), 'Khaki1', 228)], (255, 255, 175): [((255, 255, 175), (60, 100, 84), 'Wheat1', 229)], (255, 255, 215): [((255, 255, 215), (60, 100, 92), 'Cornsilk1', 230)], (255, 255, 255): [((255, 255, 255), (0, 0, 100), 'White', 15), ((255, 255, 255), (0, 0, 100), 'Grey100', 231)]}
by_xterm: ClassVar[dict[int, Color]] = {0: ((0, 0, 0), (0, 0, 0), 'Black', 0), 1: ((128, 0, 0), (0, 100, 25), 'Maroon', 1), 2: ((0, 128, 0), (120, 100, 25), 'Green', 2), 3: ((128, 128, 0), (60, 100, 25), 'Olive', 3), 4: ((0, 0, 128), (240, 100, 25), 'Navy', 4), 5: ((128, 0, 128), (300, 100, 25), 'Purple', 5), 6: ((0, 128, 128), (180, 100, 25), 'Teal', 6), 7: ((192, 192, 192), (0, 0, 75), 'Silver', 7), 8: ((128, 128, 128), (0, 0, 50), 'Grey', 8), 9: ((255, 0, 0), (0, 100, 50), 'Red', 9), 10: ((0, 255, 0), (120, 100, 50), 'Lime', 10), 11: ((255, 255, 0), (60, 100, 50), 'Yellow', 11), 12: ((0, 0, 255), (240, 100, 50), 'Blue', 12), 13: ((255, 0, 255), (300, 100, 50), 'Fuchsia', 13), 14: ((0, 255, 255), (180, 100, 50), 'Aqua', 14), 15: ((255, 255, 255), (0, 0, 100), 'White', 15), 16: ((0, 0, 0), (0, 0, 0), 'Grey0', 16), 17: ((0, 0, 95), (240, 100, 18), 'NavyBlue', 17), 18: ((0, 0, 135), (240, 100, 26), 'DarkBlue', 18), 19: ((0, 0, 175), (240, 100, 34), 'Blue3', 19), 20: ((0, 0, 215), (240, 100, 42), 'Blue3', 20), 21: ((0, 0, 255), (240, 100, 50), 'Blue1', 21), 22: ((0, 95, 0), (120, 100, 18), 'DarkGreen', 22), 23: ((0, 95, 95), (180, 100, 18), 'DeepSkyBlue4', 23), 24: ((0, 95, 135), (97, 100, 26), 'DeepSkyBlue4', 24), 25: ((0, 95, 175), (7, 100, 34), 'DeepSkyBlue4', 25), 26: ((0, 95, 215), (13, 100, 42), 'DodgerBlue3', 26), 27: ((0, 95, 255), (17, 100, 50), 'DodgerBlue2', 27), 28: ((0, 135, 0), (120, 100, 26), 'Green4', 28), 29: ((0, 135, 95), (62, 100, 26), 'SpringGreen4', 29), 30: ((0, 135, 135), (180, 100, 26), 'Turquoise4', 30), 31: ((0, 135, 175), (93, 100, 34), 'DeepSkyBlue3', 31), 32: ((0, 135, 215), (2, 100, 42), 'DeepSkyBlue3', 32), 33: ((0, 135, 255), (8, 100, 50), 'DodgerBlue1', 33), 34: ((0, 175, 0), (120, 100, 34), 'Green3', 34), 35: ((0, 175, 95), (52, 100, 34), 'SpringGreen3', 35), 36: ((0, 175, 135), (66, 100, 34), 'DarkCyan', 36), 37: ((0, 175, 175), (180, 100, 34), 'LightSeaGreen', 37), 38: ((0, 175, 215), (91, 100, 42), 'DeepSkyBlue2', 38), 39: ((0, 175, 255), (98, 100, 50), 'DeepSkyBlue1', 39), 40: ((0, 215, 0), (120, 100, 42), 'Green3', 40), 41: ((0, 215, 95), (46, 100, 42), 'SpringGreen3', 41), 42: ((0, 215, 135), (57, 100, 42), 'SpringGreen2', 42), 43: ((0, 215, 175), (68, 100, 42), 'Cyan3', 43), 44: ((0, 215, 215), (180, 100, 42), 'DarkTurquoise', 44), 45: ((0, 215, 255), (89, 100, 50), 'Turquoise2', 45), 46: ((0, 255, 0), (120, 100, 50), 'Green1', 46), 47: ((0, 255, 95), (42, 100, 50), 'SpringGreen2', 47), 48: ((0, 255, 135), (51, 100, 50), 'SpringGreen1', 48), 49: ((0, 255, 175), (61, 100, 50), 'MediumSpringGreen', 49), 50: ((0, 255, 215), (70, 100, 50), 'Cyan2', 50), 51: ((0, 255, 255), (180, 100, 50), 'Cyan1', 51), 52: ((95, 0, 0), (0, 100, 18), 'DarkRed', 52), 53: ((95, 0, 95), (300, 100, 18), 'DeepPink4', 53), 54: ((95, 0, 135), (82, 100, 26), 'Purple4', 54), 55: ((95, 0, 175), (72, 100, 34), 'Purple4', 55), 56: ((95, 0, 215), (66, 100, 42), 'Purple3', 56), 57: ((95, 0, 255), (62, 100, 50), 'BlueViolet', 57), 58: ((95, 95, 0), (60, 100, 18), 'Orange4', 58), 59: ((95, 95, 95), (0, 0, 37), 'Grey37', 59), 60: ((95, 95, 135), (240, 17, 45), 'MediumPurple4', 60), 61: ((95, 95, 175), (240, 33, 52), 'SlateBlue3', 61), 62: ((95, 95, 215), (240, 60, 60), 'SlateBlue3', 62), 63: ((95, 95, 255), (240, 100, 68), 'RoyalBlue1', 63), 64: ((95, 135, 0), (7, 100, 26), 'Chartreuse4', 64), 65: ((95, 135, 95), (120, 17, 45), 'DarkSeaGreen4', 65), 66: ((95, 135, 135), (180, 17, 45), 'PaleTurquoise4', 66), 67: ((95, 135, 175), (210, 33, 52), 'SteelBlue', 67), 68: ((95, 135, 215), (220, 60, 60), 'SteelBlue3', 68), 69: ((95, 135, 255), (225, 100, 68), 'CornflowerBlue', 69), 70: ((95, 175, 0), (7, 100, 34), 'Chartreuse3', 70), 71: ((95, 175, 95), (120, 33, 52), 'DarkSeaGreen4', 71), 72: ((95, 175, 135), (150, 33, 52), 'CadetBlue', 72), 73: ((95, 175, 175), (180, 33, 52), 'CadetBlue', 73), 74: ((95, 175, 215), (200, 60, 60), 'SkyBlue3', 74), 75: ((95, 175, 255), (210, 100, 68), 'SteelBlue1', 75), 76: ((95, 215, 0), (3, 100, 42), 'Chartreuse3', 76), 77: ((95, 215, 95), (120, 60, 60), 'PaleGreen3', 77), 78: ((95, 215, 135), (140, 60, 60), 'SeaGreen3', 78), 79: ((95, 215, 175), (160, 60, 60), 'Aquamarine3', 79), 80: ((95, 215, 215), (180, 60, 60), 'MediumTurquoise', 80), 81: ((95, 215, 255), (195, 100, 68), 'SteelBlue1', 81), 82: ((95, 255, 0), (7, 100, 50), 'Chartreuse2', 82), 83: ((95, 255, 95), (120, 100, 68), 'SeaGreen2', 83), 84: ((95, 255, 135), (135, 100, 68), 'SeaGreen1', 84), 85: ((95, 255, 175), (150, 100, 68), 'SeaGreen1', 85), 86: ((95, 255, 215), (165, 100, 68), 'Aquamarine1', 86), 87: ((95, 255, 255), (180, 100, 68), 'DarkSlateGray2', 87), 88: ((135, 0, 0), (0, 100, 26), 'DarkRed', 88), 89: ((135, 0, 95), (17, 100, 26), 'DeepPink4', 89), 90: ((135, 0, 135), (300, 100, 26), 'DarkMagenta', 90), 91: ((135, 0, 175), (86, 100, 34), 'DarkMagenta', 91), 92: ((135, 0, 215), (77, 100, 42), 'DarkViolet', 92), 93: ((135, 0, 255), (71, 100, 50), 'Purple', 93), 94: ((135, 95, 0), (2, 100, 26), 'Orange4', 94), 95: ((135, 95, 95), (0, 17, 45), 'LightPink4', 95), 96: ((135, 95, 135), (300, 17, 45), 'Plum4', 96), 97: ((135, 95, 175), (270, 33, 52), 'MediumPurple3', 97), 98: ((135, 95, 215), (260, 60, 60), 'MediumPurple3', 98), 99: ((135, 95, 255), (255, 100, 68), 'SlateBlue1', 99), 100: ((135, 135, 0), (60, 100, 26), 'Yellow4', 100), 101: ((135, 135, 95), (60, 17, 45), 'Wheat4', 101), 102: ((135, 135, 135), (0, 0, 52), 'Grey53', 102), 103: ((135, 135, 175), (240, 20, 60), 'LightSlateGrey', 103), 104: ((135, 135, 215), (240, 50, 68), 'MediumPurple', 104), 105: ((135, 135, 255), (240, 100, 76), 'LightSlateBlue', 105), 106: ((135, 175, 0), (3, 100, 34), 'Yellow4', 106), 107: ((135, 175, 95), (90, 33, 52), 'DarkOliveGreen3', 107), 108: ((135, 175, 135), (120, 20, 60), 'DarkSeaGreen', 108), 109: ((135, 175, 175), (180, 20, 60), 'LightSkyBlue3', 109), 110: ((135, 175, 215), (210, 50, 68), 'LightSkyBlue3', 110), 111: ((135, 175, 255), (220, 100, 76), 'SkyBlue2', 111), 112: ((135, 215, 0), (2, 100, 42), 'Chartreuse2', 112), 113: ((135, 215, 95), (100, 60, 60), 'DarkOliveGreen3', 113), 114: ((135, 215, 135), (120, 50, 68), 'PaleGreen3', 114), 115: ((135, 215, 175), (150, 50, 68), 'DarkSeaGreen3', 115), 116: ((135, 215, 215), (180, 50, 68), 'DarkSlateGray3', 116), 117: ((135, 215, 255), (200, 100, 76), 'SkyBlue1', 117), 118: ((135, 255, 0), (8, 100, 50), 'Chartreuse1', 118), 119: ((135, 255, 95), (105, 100, 68), 'LightGreen', 119), 120: ((135, 255, 135), (120, 100, 76), 'LightGreen', 120), 121: ((135, 255, 175), (140, 100, 76), 'PaleGreen1', 121), 122: ((135, 255, 215), (160, 100, 76), 'Aquamarine1', 122), 123: ((135, 255, 255), (180, 100, 76), 'DarkSlateGray1', 123), 124: ((175, 0, 0), (0, 100, 34), 'Red3', 124), 125: ((175, 0, 95), (27, 100, 34), 'DeepPink4', 125), 126: ((175, 0, 135), (13, 100, 34), 'MediumVioletRed', 126), 127: ((175, 0, 175), (300, 100, 34), 'Magenta3', 127), 128: ((175, 0, 215), (88, 100, 42), 'DarkViolet', 128), 129: ((175, 0, 255), (81, 100, 50), 'Purple', 129), 130: ((175, 95, 0), (2, 100, 34), 'DarkOrange3', 130), 131: ((175, 95, 95), (0, 33, 52), 'IndianRed', 131), 132: ((175, 95, 135), (330, 33, 52), 'HotPink3', 132), 133: ((175, 95, 175), (300, 33, 52), 'MediumOrchid3', 133), 134: ((175, 95, 215), (280, 60, 60), 'MediumOrchid', 134), 135: ((175, 95, 255), (270, 100, 68), 'MediumPurple2', 135), 136: ((175, 135, 0), (6, 100, 34), 'DarkGoldenrod', 136), 137: ((175, 135, 95), (30, 33, 52), 'LightSalmon3', 137), 138: ((175, 135, 135), (0, 20, 60), 'RosyBrown', 138), 139: ((175, 135, 175), (300, 20, 60), 'Grey63', 139), 140: ((175, 135, 215), (270, 50, 68), 'MediumPurple2', 140), 141: ((175, 135, 255), (260, 100, 76), 'MediumPurple1', 141), 142: ((175, 175, 0), (60, 100, 34), 'Gold3', 142), 143: ((175, 175, 95), (60, 33, 52), 'DarkKhaki', 143), 144: ((175, 175, 135), (60, 20, 60), 'NavajoWhite3', 144), 145: ((175, 175, 175), (0, 0, 68), 'Grey69', 145), 146: ((175, 175, 215), (240, 33, 76), 'LightSteelBlue3', 146), 147: ((175, 175, 255), (240, 100, 84), 'LightSteelBlue', 147), 148: ((175, 215, 0), (1, 100, 42), 'Yellow3', 148), 149: ((175, 215, 95), (80, 60, 60), 'DarkOliveGreen3', 149), 150: ((175, 215, 135), (90, 50, 68), 'DarkSeaGreen3', 150), 151: ((175, 215, 175), (120, 33, 76), 'DarkSeaGreen2', 151), 152: ((175, 215, 215), (180, 33, 76), 'LightCyan3', 152), 153: ((175, 215, 255), (210, 100, 84), 'LightSkyBlue1', 153), 154: ((175, 255, 0), (8, 100, 50), 'GreenYellow', 154), 155: ((175, 255, 95), (90, 100, 68), 'DarkOliveGreen2', 155), 156: ((175, 255, 135), (100, 100, 76), 'PaleGreen1', 156), 157: ((175, 255, 175), (120, 100, 84), 'DarkSeaGreen2', 157), 158: ((175, 255, 215), (150, 100, 84), 'DarkSeaGreen1', 158), 159: ((175, 255, 255), (180, 100, 84), 'PaleTurquoise1', 159), 160: ((215, 0, 0), (0, 100, 42), 'Red3', 160), 161: ((215, 0, 95), (33, 100, 42), 'DeepPink3', 161), 162: ((215, 0, 135), (22, 100, 42), 'DeepPink3', 162), 163: ((215, 0, 175), (11, 100, 42), 'Magenta3', 163), 164: ((215, 0, 215), (300, 100, 42), 'Magenta3', 164), 165: ((215, 0, 255), (90, 100, 50), 'Magenta2', 165), 166: ((215, 95, 0), (6, 100, 42), 'DarkOrange3', 166), 167: ((215, 95, 95), (0, 60, 60), 'IndianRed', 167), 168: ((215, 95, 135), (340, 60, 60), 'HotPink3', 168), 169: ((215, 95, 175), (320, 60, 60), 'HotPink2', 169), 170: ((215, 95, 215), (300, 60, 60), 'Orchid', 170), 171: ((215, 95, 255), (285, 100, 68), 'MediumOrchid1', 171), 172: ((215, 135, 0), (7, 100, 42), 'Orange3', 172), 173: ((215, 135, 95), (20, 60, 60), 'LightSalmon3', 173), 174: ((215, 135, 135), (0, 50, 68), 'LightPink3', 174), 175: ((215, 135, 175), (330, 50, 68), 'Pink3', 175), 176: ((215, 135, 215), (300, 50, 68), 'Plum3', 176), 177: ((215, 135, 255), (280, 100, 76), 'Violet', 177), 178: ((215, 175, 0), (8, 100, 42), 'Gold3', 178), 179: ((215, 175, 95), (40, 60, 60), 'LightGoldenrod3', 179), 180: ((215, 175, 135), (30, 50, 68), 'Tan', 180), 181: ((215, 175, 175), (0, 33, 76), 'MistyRose3', 181), 182: ((215, 175, 215), (300, 33, 76), 'Thistle3', 182), 183: ((215, 175, 255), (270, 100, 84), 'Plum2', 183), 184: ((215, 215, 0), (60, 100, 42), 'Yellow3', 184), 185: ((215, 215, 95), (60, 60, 60), 'Khaki3', 185), 186: ((215, 215, 135), (60, 50, 68), 'LightGoldenrod2', 186), 187: ((215, 215, 175), (60, 33, 76), 'LightYellow3', 187), 188: ((215, 215, 215), (0, 0, 84), 'Grey84', 188), 189: ((215, 215, 255), (240, 100, 92), 'LightSteelBlue1', 189), 190: ((215, 255, 0), (9, 100, 50), 'Yellow2', 190), 191: ((215, 255, 95), (75, 100, 68), 'DarkOliveGreen1', 191), 192: ((215, 255, 135), (80, 100, 76), 'DarkOliveGreen1', 192), 193: ((215, 255, 175), (90, 100, 84), 'DarkSeaGreen1', 193), 194: ((215, 255, 215), (120, 100, 92), 'Honeydew2', 194), 195: ((215, 255, 255), (180, 100, 92), 'LightCyan1', 195), 196: ((255, 0, 0), (0, 100, 50), 'Red1', 196), 197: ((255, 0, 95), (37, 100, 50), 'DeepPink2', 197), 198: ((255, 0, 135), (28, 100, 50), 'DeepPink1', 198), 199: ((255, 0, 175), (18, 100, 50), 'DeepPink1', 199), 200: ((255, 0, 215), (9, 100, 50), 'Magenta2', 200), 201: ((255, 0, 255), (300, 100, 50), 'Magenta1', 201), 202: ((255, 95, 0), (2, 100, 50), 'OrangeRed1', 202), 203: ((255, 95, 95), (0, 100, 68), 'IndianRed1', 203), 204: ((255, 95, 135), (345, 100, 68), 'IndianRed1', 204), 205: ((255, 95, 175), (330, 100, 68), 'HotPink', 205), 206: ((255, 95, 215), (315, 100, 68), 'HotPink', 206), 207: ((255, 95, 255), (300, 100, 68), 'MediumOrchid1', 207), 208: ((255, 135, 0), (1, 100, 50), 'DarkOrange', 208), 209: ((255, 135, 95), (15, 100, 68), 'Salmon1', 209), 210: ((255, 135, 135), (0, 100, 76), 'LightCoral', 210), 211: ((255, 135, 175), (340, 100, 76), 'PaleVioletRed1', 211), 212: ((255, 135, 215), (320, 100, 76), 'Orchid2', 212), 213: ((255, 135, 255), (300, 100, 76), 'Orchid1', 213), 214: ((255, 175, 0), (1, 100, 50), 'Orange1', 214), 215: ((255, 175, 95), (30, 100, 68), 'SandyBrown', 215), 216: ((255, 175, 135), (20, 100, 76), 'LightSalmon1', 216), 217: ((255, 175, 175), (0, 100, 84), 'LightPink1', 217), 218: ((255, 175, 215), (330, 100, 84), 'Pink1', 218), 219: ((255, 175, 255), (300, 100, 84), 'Plum1', 219), 220: ((255, 215, 0), (0, 100, 50), 'Gold1', 220), 221: ((255, 215, 95), (45, 100, 68), 'LightGoldenrod2', 221), 222: ((255, 215, 135), (40, 100, 76), 'LightGoldenrod2', 222), 223: ((255, 215, 175), (30, 100, 84), 'NavajoWhite1', 223), 224: ((255, 215, 215), (0, 100, 92), 'MistyRose1', 224), 225: ((255, 215, 255), (300, 100, 92), 'Thistle1', 225), 226: ((255, 255, 0), (60, 100, 50), 'Yellow1', 226), 227: ((255, 255, 95), (60, 100, 68), 'LightGoldenrod1', 227), 228: ((255, 255, 135), (60, 100, 76), 'Khaki1', 228), 229: ((255, 255, 175), (60, 100, 84), 'Wheat1', 229), 230: ((255, 255, 215), (60, 100, 92), 'Cornsilk1', 230), 231: ((255, 255, 255), (0, 0, 100), 'Grey100', 231), 232: ((8, 8, 8), (0, 0, 3), 'Grey3', 232), 233: ((18, 18, 18), (0, 0, 7), 'Grey7', 233), 234: ((28, 28, 28), (0, 0, 10), 'Grey11', 234), 235: ((38, 38, 38), (0, 0, 14), 'Grey15', 235), 236: ((48, 48, 48), (0, 0, 18), 'Grey19', 236), 237: ((58, 58, 58), (0, 0, 22), 'Grey23', 237), 238: ((68, 68, 68), (0, 0, 26), 'Grey27', 238), 239: ((78, 78, 78), (0, 0, 30), 'Grey30', 239), 240: ((88, 88, 88), (0, 0, 34), 'Grey35', 240), 241: ((98, 98, 98), (0, 0, 37), 'Grey39', 241), 242: ((108, 108, 108), (0, 0, 40), 'Grey42', 242), 243: ((118, 118, 118), (0, 0, 46), 'Grey46', 243), 244: ((128, 128, 128), (0, 0, 50), 'Grey50', 244), 245: ((138, 138, 138), (0, 0, 54), 'Grey54', 245), 246: ((148, 148, 148), (0, 0, 58), 'Grey58', 246), 247: ((158, 158, 158), (0, 0, 61), 'Grey62', 247), 248: ((168, 168, 168), (0, 0, 65), 'Grey66', 248), 249: ((178, 178, 178), (0, 0, 69), 'Grey70', 249), 250: ((188, 188, 188), (0, 0, 73), 'Grey74', 250), 251: ((198, 198, 198), (0, 0, 77), 'Grey78', 251), 252: ((208, 208, 208), (0, 0, 81), 'Grey82', 252), 253: ((218, 218, 218), (0, 0, 85), 'Grey85', 253), 254: ((228, 228, 228), (0, 0, 89), 'Grey89', 254), 255: ((238, 238, 238), (0, 0, 93), 'Grey93', 255)}
classmethod interpolate(color_a: Color, color_b: Color, step: float) Color[source]
classmethod register(rgb: RGB, hls: HSL | None = None, name: str | None = None, xterm: int | None = None) Color[source]
progressbar.terminal.base.DOWN = <progressbar.terminal.base.CSI object>

Cursor Down Ps Times (default = 1) (CUD)

class progressbar.terminal.base.DummyColor[source]

Bases: object

progressbar.terminal.base.HIDE_CURSOR = <progressbar.terminal.base.CSINoArg object>

Cursor Visibility (DECTCEM)

class progressbar.terminal.base.HSL(hue, saturation, lightness)[source]

Bases: HSL

Hue, Saturation, Lightness color.

Hue is a value between 0 and 360, saturation and lightness are between 0(%) and 100(%).

classmethod from_rgb(rgb: RGB) HSL[source]

Convert a 0-255 RGB color to a 0-255 HLS color.

interpolate(end: HSL, step: float) HSL[source]
progressbar.terminal.base.LEFT = <progressbar.terminal.base.CSI object>

Cursor Backward Ps Times (default = 1) (CUB)

progressbar.terminal.base.NEXT_LINE = <progressbar.terminal.base.CSI object>

Cursor Next Line Ps Times (default = 1) (CNL) Same as Cursor Down Ps Times

progressbar.terminal.base.PREVIOUS_LINE = <progressbar.terminal.base.CSI object>

Cursor Preceding Line Ps Times (default = 1) (CPL) Same as Cursor Up Ps Times

progressbar.terminal.base.RESTORE_CURSOR = <progressbar.terminal.base.CSINoArg object>

Restore Cursor Position (RCP)

class progressbar.terminal.base.RGB(red, green, blue)[source]

Bases: RGB

property hex
interpolate(end: RGB, step: float) RGB[source]
property rgb
property to_ansi_16
property to_ansi_256
property to_windows

Convert an RGB color (0-255 per channel) to the closest color in the Windows 16 color scheme.

progressbar.terminal.base.RIGHT = <progressbar.terminal.base.CSI object>

Cursor Forward Ps Times (default = 1) (CUF)

progressbar.terminal.base.SAVE_CURSOR = <progressbar.terminal.base.CSINoArg object>

Save Cursor Position (SCP)

progressbar.terminal.base.SCROLL_UP = <progressbar.terminal.base.CSI object>

Scroll up Ps lines (default = 1) (SU) Scroll down Ps lines (default = 1) (SD)

class progressbar.terminal.base.SGR(start_code: int, end_code: int)[source]

Bases: CSI

class progressbar.terminal.base.SGRColor(color: Color, start_code: int, end_code: int)[source]

Bases: SGR

progressbar.terminal.base.UP = <progressbar.terminal.base.CSI object>

Cursor Up Ps Times (default = 1) (CUU)

class progressbar.terminal.base.WindowsColor(color: Color)[source]

Bases: object

Windows compatible color class for when ANSI is not supported. Currently a no-op because it is not possible to buffer these colors.

>>> WindowsColor(WindowsColors.RED)('test')
'test'
color
class progressbar.terminal.base.WindowsColors(value, names=None, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

BLACK = (0, 0, 0)
BLUE = (0, 0, 128)
CYAN = (0, 128, 128)
GREEN = (0, 128, 0)
GREY = (192, 192, 192)
INTENSE_BLACK = (128, 128, 128)
INTENSE_BLUE = (0, 0, 255)
INTENSE_CYAN = (0, 255, 255)
INTENSE_GREEN = (0, 255, 0)
INTENSE_MAGENTA = (255, 0, 255)
INTENSE_RED = (255, 0, 0)
INTENSE_WHITE = (255, 255, 255)
INTENSE_YELLOW = (255, 255, 0)
MAGENTA = (128, 0, 128)
RED = (128, 0, 0)
YELLOW = (128, 128, 0)
static from_rgb(rgb: Tuple[int, int, int])[source]

Find the closest WindowsColors to the given RGB color.

>>> WindowsColors.from_rgb((0, 0, 0))
<WindowsColors.BLACK: (0, 0, 0)>
>>> WindowsColors.from_rgb((255, 255, 255))
<WindowsColors.INTENSE_WHITE: (255, 255, 255)>
>>> WindowsColors.from_rgb((0, 255, 0))
<WindowsColors.INTENSE_GREEN: (0, 255, 0)>
>>> WindowsColors.from_rgb((45, 45, 45))
<WindowsColors.BLACK: (0, 0, 0)>
>>> WindowsColors.from_rgb((128, 0, 128))
<WindowsColors.MAGENTA: (128, 0, 128)>
progressbar.terminal.base.apply_colors(text: str, percentage: float | None = None, *, fg: Color | ColorGradient | None = None, bg: Color | ColorGradient | None = None, fg_none: Color | None = None, bg_none: Color | None = None, **kwargs: Any) str[source]

Apply colors/gradients to a string depending on the given percentage.

When percentage is None, the fg_none and bg_none colors will be used. Otherwise, the fg and bg colors will be used. If the colors are gradients, the color will be interpolated depending on the percentage.

progressbar.terminal.base.clear_line(n)[source]
progressbar.terminal.base.get_color(value: float, color: Color | ColorGradient | None) Color | None[source]