!pip install plotly
Collecting plotly
Using cached plotly-4.14.1-py2.py3-none-any.whl (13.2 MB)
Requirement already satisfied: six in /srv/paws/lib/python3.6/site-packages (from plotly) (1.15.0)
Processing ./.cache/pip/wheels/ac/cb/8a/b27bf6323e2f4c462dcbf77d70b7c5e7868a7fbe12871770cf/retrying-1.3.3-py3-none-any.whl
Installing collected packages: retrying, plotly
Successfully installed plotly-4.14.1 retrying-1.3.3
WARNING: You are using pip version 20.2; however, version 20.3.3 is available.
You should consider upgrading via the '/srv/paws/bin/python3.6 -m pip install --upgrade pip' command.
from colorsys import rgb_to_hsv
from plotly.colors import hex_to_rgb
colors = [
hex_to_rgb("#FFFF00"),
hex_to_rgb("#FFBF00"),
hex_to_rgb("#F5F5DC"),
hex_to_rgb("#F0DC82"),
hex_to_rgb("#FBEC5D"),
hex_to_rgb("#FFFDD0"),
hex_to_rgb("#B8860B"),
hex_to_rgb("#CDB891"),
hex_to_rgb("#EEDC82"),
hex_to_rgb("#EF9B0F"),
hex_to_rgb("#FFD700"),
hex_to_rgb("#DAA520"),
hex_to_rgb("#C3B091"),
hex_to_rgb("#FDE910"),
hex_to_rgb("#FFFACD"),
hex_to_rgb("#BFFF00"),
hex_to_rgb("#FFDB58"),
hex_to_rgb("#FFDEAD"),
hex_to_rgb("#CFB53B"),
hex_to_rgb("#808000"),
hex_to_rgb("#FFEFD5"),
hex_to_rgb("#FADFAD"),
hex_to_rgb("#D1E231"),
hex_to_rgb("#F4C430"),
hex_to_rgb("#FFD800"),
hex_to_rgb("#FFBA00"),
hex_to_rgb("#FFCC00"),
hex_to_rgb("#FBCEB1"),
hex_to_rgb("#D4AF37"),
hex_to_rgb("#DFFF00"),
hex_to_rgb("#FFEF00"),
]
colors.sort(key=lambda rgb: rgb_to_hsv(*rgb) )
for color in colors:
print('#%02x%02x%02x' % color)
#fbceb1 #ffdead #ffefd5 #c3b091 #ef9b0f #fadfad #cdb891 #b8860b #daa520 #ffba00 #ffbf00 #f4c430 #d4af37 #ffdb58 #ffcc00 #f0dc82 #cfb53b #eedc82 #ffd700 #ffd800 #fffacd #fbec5d #fde910 #ffef00 #fffdd0 #f5f5dc #808000 #ffff00 #d1e231 #dfff00 #bfff00