Skip to content

Instantly share code, notes, and snippets.

@markus-wolf
markus-wolf / websafecolors.py
Last active August 2, 2020 06:22
Python list of RGB tuples for web safe colors
'''
https://www.color-hex.com/216-web-safe-colors/
just include in your Python code
list of RGB tuples
'''
webcolors = [(0, 0, 0), (0, 0, 51), (0, 0, 102), (0, 0, 153), (0, 0, 204), (0, 0, 255), (0, 51, 0), (0, 51, 51),
(0, 51, 102), (0, 51, 153), (0, 51, 204), (0, 51, 255), (0, 102, 0), (0, 102, 51), (0, 102, 102),
(0, 102, 153), (0, 102, 204), (0, 102, 255), (0, 153, 0), (0, 153, 51), (0, 153, 102), (0, 153, 153),
(0, 153, 204), (0, 153, 255), (0, 204, 0), (0, 204, 51), (0, 204, 102), (0, 204, 153), (0, 204, 204),