Skip to content

Instantly share code, notes, and snippets.

@Amourspirit
Created June 3, 2022 01:20
Show Gist options
  • Save Amourspirit/b1ac3cc31fdf58f51d4bc22b050b2acb to your computer and use it in GitHub Desktop.
Save Amourspirit/b1ac3cc31fdf58f51d4bc22b050b2acb to your computer and use it in GitHub Desktop.
Python Web Colors Constants
class CommonColor:
# Pink colors
MEDIUM_VIOLET_RED = 0xC71585
DEEP_PINK = 0xFF1493
PALE_VIOLET_RED = 0xDB7093
HOT_PINK = 0xFF69B4
LIGHT_PINK = 0xFFB6C1
PINK = 0xFFC0CB
# red colors
INDIAN_RED = 0xCD5C5C
LIGHT_CORAL = 0xF08080
SALMON = 0xFA8072
DARK_SALMON = 0xE9967A
LIGHT_SALMON = 0xFFA07A
CRIMSON = 0xDC143C
RED = 0xFF0000
FIRE_BRICK = 0xB22222
DARK_RED = 0x8B0000
# Oranges
CORAL = 0xFF7F50
TOMATO = 0xFF6347
ORANGE_RED = 0xFF4500
DARK_ORANGE = 0xFF8C00
ORANGE = 0xFFA500
# Yellow colors
GOLD = 0xFFD700
YELLOW = 0xFFFF00
LIGHT_YELLOW = 0xFFFFE0
LEMON_CHIFFON = 0xFFFACD
LIGHT_GOLDENROD_YELLOW = 0xFAFAD2
PAPAYA_WHIP = 0xFFEFD5
MOCCASIN = 0xFFE4B5
PEACH_PUFF = 0xFFDAB9
PALE_GOLDENROD = 0xEEE8AA
KHAKI = 0xF0E68C
DARK_KHAKI = 0xBDB76B
# Purples
LAVENDER = 0xE6E6FA
THISTLE = 0xD8BFD8
PLUM = 0xDDA0DD
VIOLET = 0xEE82EE
ORCHID = 0xDA70D6
FUCHSIA = 0xFF00FF
MAGENTA = 0xFF00FF
MEDIUM_ORCHID = 0xBA55D3
MEDIUM_PURPLE = 0x9370DB
BLUE_VIOLET = 0x8A2BE2
DARK_VIOLET = 0x9400D3
DARK_ORCHID = 0x9932CC
DARK_MAGENTA = 0x8B008B
PURPLE = 0x800080
REBECCA_PURPLE = 0x663399
INDIGO = 0x4B0082
MEDIUM_SLATE_BLUE = 0x7B68EE
SLATE_BLUE = 0x6A5ACD
DARK_SLATE_BLUE = 0x483D8B
# Greens
GREEN_YELLOW = 0xADFF2F
CHARTREUSE = 0x7FFF00
LAWN_GREEN = 0x7CFC00
LIME = 0x00FF00
LIME_GREEN = 0x32CD32
PALE_GREEN = 0x98FB98
LIGHT_GREEN = 0x90EE90
MEDIUM_SPRING_GREEN = 0x00FA9A
SPRING_GREEN = 0x00FF7F
MEDIUM_SEA_GREEN = 0x3CB371
SEA_GREEN = 0x2E8B57
FOREST_GREEN = 0x228B22
GREEN = 0x008000
DARK_GREEN = 0x006400
YELLOW_GREEN = 0x9ACD32
OLIVE_DRAB = 0x6B8E23
OLIVE = 0x808000
DARK_OLIVE_GREEN = 0x556B2F
MEDIUM_AQUAMARINE = 0x66CDAA
DARK_SEA_GREEN = 0x8FBC8F
LIGHT_SEA_GREEN = 0x20B2AA
DARK_CYAN = 0x008B8B
TEAL = 0x008080
# Blues/Cyans
AQUA = 0x00FFFF
CYAN = 0x00FFFF
LIGHT_CYAN = 0xE0FFFF
PALE_TURQUOISE = 0xAFEEEE
AQUAMARINE = 0x7FFFD4
TURQUOISE = 0x40E0D0
MEDIUM_TURQUOISE = 0x48D1CC
DARK_TURQUOISE = 0x00CED1
CADET_BLUE = 0x5F9EA0
STEEL_BLUE = 0x4682B4
LIGHT_STEEL_BLUE = 0xB0C4DE
POWDER_BLUE = 0xB0E0E6
LIGHT_BLUE = 0xADD8E6
SKY_BLUE = 0x87CEEB
LIGHT_SKY_BLUE = 0x87CEFA
DEEP_SKY_BLUE = 0x00BFFF
DODGER_BLUE = 0x1E90FF
CORNFLOWER_BLUE = 0x6495ED
ROYAL_BLUE = 0x4169E1
BLUE = 0x0000FF
MEDIUM_BLUE = 0x0000CD
DARK_BLUE = 0x00008B
NAVY = 0x000080
MIDNIGHT_BLUE = 0x191970
# Browns
CORNSILK = 0xFFF8DC
BLANCHED_ALMOND = 0xFFEBCD
BISQUE = 0xFFE4C4
NAVAJO_WHITE = 0xFFDEAD
WHEAT = 0xF5DEB3
BURLY_WOOD = 0xDEB887
TAN = 0xD2B48C
ROSY_BROWN = 0xBC8F8F
SANDY_BROWN = 0xF4A460
GOLDENROD = 0xDAA520
DARK_GOLDENROD = 0xB8860B
PERU = 0xCD853F
CHOCOLATE = 0xD2691E
SADDLE_BROWN = 0x8B4513
SIENNA = 0xA0522D
BROWN = 0xA52A2A
MAROON = 0x800000
# Whites
WHITE = 0xFFFFFF
SNOW = 0xFFFAFA
HONEYDEW = 0xF0FFF0
MINT_CREAM = 0xF5FFFA
AZURE = 0xF0FFFF
ALICE_BLUE = 0xF0F8FF
GHOST_WHITE = 0xF8F8FF
WHITE_SMOKE = 0xF5F5F5
SEASHELL = 0xFFF5EE
BEIGE = 0xF5F5DC
OLD_LACE = 0xFDF5E6
FLORAL_WHITE = 0xFFFAF0
IVORY = 0xFFFFF0
ANTIQUE_WHITE = 0xFAEBD7
LINEN = 0xFAF0E6
LAVENDER_BLUSH = 0xFFF0F5
MISTY_ROSE = 0xFFE4E1
# Greys
GAINSBORO = 0xDCDCDC
LIGHT_GRAY = 0xD3D3D3
LIGHT_GREY = 0xD3D3D3
SILVER = 0xC0C0C0
DARK_GRAY = 0xA9A9A9
DARK_GREY = 0xA9A9A9
GRAY = 0x808080
GREY = 0x808080
DIM_GRAY = 0x696969
DIM_GREY = 0x696969
LIGHT_SLATE_GRAY = 0x778899
LIGHT_SLATE_GREY = 0x778899
SLATE_GRAY = 0x708090
SLATE_GREY = 0x708090
DARK_SLATE_GRAY = 0x2F4F4F
DARK_SLATE_GREY = 0x2F4F4F
BLACK = 0x000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment