matplotlib colors
from matplotlib import colors as mcolors
colors = dict(mcolors.BASE_COLORS, **mcolors.CSS4_COLORS)
len(colors)
for i in colors:
print(i, colors[i])
#
#b (0, 0, 1)
#aliceblue #F0F8FF
#antiquewhite #FAEBD7
#(2) simple output color name and hex (n=148)
import matplotlib
i=0
for name, hex in matplotlib.colors.cnames.items():
i+=1
print(i, name, hex)
#(3) more colors(n=1163)
import matplotlib.colors as colors
#colors_list = list(colors._colors_full_map.values()) #1163 colors
i=0
for name, hex in colors._colors_full_map.items():
i+=1; print(i, name, hex)
- black(#000000)darksalmon(#E9967A)darkgoldenrod(#B8860B)limegreen(#32CD32)powderblue(#B0E0E6)mediumpurple(#9370DB)
- dimgray(#696969)coral(#FF7F50)goldenrod(#DAA520)darkgreen(#006400)lightblue(#ADD8E6)rebeccapurple(#663399)
- dimgrey(#696969)orangered(#FF4500)cornsilk(#FFF8DC)green(#008000)deepskyblue(#00BFFF)blueviolet(#8A2BE2)
- gray(#808080)lightsalmon(#FFA07A)gold(#FFD700)lime(#00FF00)skyblue(#87CEEB)indigo(#4B0082)
- grey(#808080)sienna(#A0522D)lemonchiffon(#FFFACD)seagreen(#2E8B57)lightskyblue(#87CEFA)darkorchid(#9932CC)
- darkgray(#A9A9A9)seashell(#FFF5EE)khaki(#F0E68C)mediumseagreen(#3CB371)steelblue(#4682B4)darkviolet(#9400D3)
- darkgrey(#A9A9A9)chocolate(#D2691E)palegoldenrod(#EEE8AA)springgreen(#00FF7F)aliceblue(#F0F8FF)mediumorchid(#BA55D3)
- silver(#C0C0C0)saddlebrown(#8B4513)darkkhaki(#BDB76B)mintcream(#F5FFFA)dodgerblue(#1E90FF)thistle(#D8BFD8)
- lightgray(#D3D3D3)sandybrown(#F4A460)ivory(#FFFFF0)mediumspringgreen(#00FA9A)lightslategray(#778899)plum(#DDA0DD)
- lightgrey(#D3D3D3)peachpuff(#FFDAB9)beige(#F5F5DC)mediumaquamarine(#66CDAA)lightslategrey(#778899)violet(#EE82EE)
- gainsboro(#DCDCDC)peru(#CD853F)lightyellow(#FFFFE0)aquamarine(#7FFFD4)slategray(#708090)purple(#800080)
- whitesmoke(#F5F5F5)linen(#FAF0E6)lightgoldenrodyellow(#FAFAD2)turquoise(#40E0D0)slategrey(#708090)darkmagenta(#8B008B)
- white(#FFFFFF)bisque(#FFE4C4)olive(#808000)lightseagreen(#20B2AA)lightsteelblue(#B0C4DE)fuchsia(#FF00FF)
- snow(#FFFAFA)darkorange(#FF8C00)yellow(#FFFF00)mediumturquoise(#48D1CC)cornflowerblue(#6495ED)magenta(#FF00FF)
- rosybrown(#BC8F8F)burlywood(#DEB887)olivedrab(#6B8E23)azure(#F0FFFF)royalblue(#4169E1)orchid(#DA70D6)
- lightcoral(#F08080)antiquewhite(#FAEBD7)yellowgreen(#9ACD32)lightcyan(#E0FFFF)ghostwhite(#F8F8FF)mediumvioletred(#C71585)
- indianred(#CD5C5C)tan(#D2B48C)darkolivegreen(#556B2F)paleturquoise(#AFEEEE)lavender(#E6E6FA)deeppink(#FF1493)
- brown(#A52A2A)navajowhite(#FFDEAD)greenyellow(#ADFF2F)darkslategray(#2F4F4F)midnightblue(#191970)hotpink(#FF69B4)
- firebrick(#B22222)blanchedalmond(#FFEBCD)chartreuse(#7FFF00)darkslategrey(#2F4F4F)navy(#000080)lavenderblush(#FFF0F5)
- maroon(#800000)papayawhip(#FFEFD5)lawngreen(#7CFC00)teal(#008080)darkblue(#00008B)palevioletred(#DB7093)
- darkred(#8B0000)moccasin(#FFE4B5)honeydew(#F0FFF0)darkcyan(#008B8B)mediumblue(#0000CD)crimson(#DC143C)
- red(#FF0000)orange(#FFA500)darkseagreen(#8FBC8F)aqua(#00FFFF)blue(#0000FF)pink(#FFC0CB)
- mistyrose(#FFE4E1)wheat(#F5DEB3)palegreen(#98FB98)cyan(#00FFFF)slateblue(#6A5ACD)lightpink(#FFB6C1)
- salmon(#FA8072)oldlace(#FDF5E6)lightgreen(#90EE90)darkturquoise(#00CED1)darkslateblue(#483D8B)
- tomato(#FF6347)floralwhite(#FFFAF0)forestgreen(#228B22)cadetblue(#5F9EA0)mediumslateblue(#7B68EE)