Skip to content

Instantly share code, notes, and snippets.

@Soheab
Last active April 7, 2024 13:42
Show Gist options
  • Star 17 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Soheab/d9cf3f40e34037cfa544f464fc7d919e to your computer and use it in GitHub Desktop.
Save Soheab/d9cf3f40e34037cfa544f464fc7d919e to your computer and use it in GitHub Desktop.
See everything related to discord.Colour in a clean way with their usages.

discord.Colour

See here every colour and method the discord.Colour class has.

Jump Links

Colours

Attributes and Methods

                                                                                                                                               🔽 Go Down 🔽

Teal

.teal()

  • Name: "Aloha"
  • Hex: #1ABC9C
    image
  • Usage: discord.Colour.teal()

.dark_teal()

  • Name: "Blue Green"
  • Hex: #11806A
    image
  • Usage: discord.Colour.dark_teal()

Green

.green()

  • Name: "UFO Green"
  • Hex: #2ecc71
    image
  • Usage: discord.Colour.green()

.dark_green()

  • Name: "Paperboy's Lawn"
  • Hex: #1F8B4C
    image
  • Usage: discord.Colour.dark_green()

.brand_green()

New in version 2.0.

  • Name: "Very Light Malachite Green"
  • Hex: #57F287
    image
  • Usage: discord.Colour.brand_green()

Blue

.blurple()

  • Name: "Blue Genie"
  • Hex: #5865F2
    image
  • Usage: discord.Colour.blurple()

.og_blurple()

New in version 2.0.

  • Name: "Zeus'Temple"
  • Hex: #7289DA
    image
  • Usage: discord.Colour.blurple()

.blue()

  • Name: "Dayflower"
  • Hex: #3498DB
    image
  • Usage: discord.Colour.blue()

.dark_blue()

  • Name: "Deep Water"
  • Hex: #206694
    image
  • Usage: discord.Colour.dark_blue()

Purple

.purple()

  • Name: "Deep Lilac"
  • Hex: #9B59B6
    image
  • Usage: discord.Colour.purple()

.dark_purple()

  • Name: "Maximum Purple"
  • Hex: #71368A
    image
  • Usage: discord.Colour.dark_purple()

Magenta

.magenta()

  • Name: "Mellow Melon"
  • Hex: #E91E63
    image
  • Usage: discord.Colour.magenta()

.dark_magenta()

  • Name: "Plum Perfect"
  • Hex: #AD1457
    image
  • Usage: discord.Colour.dark_magenta()

Gold

.gold()

  • Name: "Tanned Leather"
  • Hex: #F1C40F
    image
  • Usage: discord.Colour.gold()

.dark_gold()

  • Name: "Tree Sap"
  • Hex: #C27C0E
    image
  • Usage: discord.Colour.dark_gold()

Orange

.orange()

  • Name: "Dark Cheddar"
  • Hex: #E67E22
    image
  • Usage: discord.Colour.orange()

.dark_orange()

  • Name: "Pepperoni"
  • Hex: #A84300
    image
  • Usage: discord.Colour.dark_orange()

Red

.red()

  • Name: "Carmine Pink"
  • Hex: #E74C3C
    image
  • Usage: discord.Colour.red()

.dark_red()

  • Name: "Red Birch"
  • Hex: #992D22
    image
  • Usage: discord.Colour.dark_red()

.brand_red()

New in version 2.0.

  • Name: "Vermilion Cinnabar"
  • Hex: #ED4245
    image
  • Usage: discord.Colour.brand_red()

Grey

.greyple()

  • Name: "Irogon Blue"
  • Hex: #99AAB5
    image
  • Usage: discord.Colour.greyple()

.light_grey()

  • Name: "Harrison Grey"
  • Alias: light_gray
  • Hex: #979C9F
    image
  • Usage: discord.Colour.light_grey()

.lighter_grey()

  • Name: "Dusty Sky"
  • Alias: lighter_gray
  • Hex: #95A5A6
    image
  • Usage: discord.Colour.lighter_grey()

.dark_grey()

  • Name: "Whale Shark"
  • Alias: dark_gray
  • Hex: #607D8B
    image
  • Usage: discord.Colour.dark_grey()

.darker_grey()

  • Name: "Morro Bay"
  • Alias: darker_gray
  • Hex: #546E7A
    image
  • Usage: discord.Colour.darker_grey()

Embed

.dark_embed()

New in version 2.2.

  • Name: "Ebony"
  • Hex: #2F3136
    image
  • Usage: discord.Colour.dark_embed()

.light_embed()

New in version 2.2.

  • Name: "Anti-Flash White"
  • Hex: #F2F3F5
    image
  • Usage: discord.Colour.light_embed()

Other

.default()

  • Name: "Black"
  • Hex: #000000
    image
  • Usage: discord.Colour.default()

.dark_theme()

New in version 1.5.

  • Name: "Antarctic Deep"
  • Description: "This will appear transparent on Discord’s dark theme."
  • Hex: #36393F
    image
  • Usage: discord.Colour.dark_theme()

.random()

New in version 1.6.

  • Name: "insert random colour name here"
  • Hex: #insert random hex here
  • Usage: discord.Colour.random()
  • NOTE: "The random algorithm works by choosing a colour with a random hue but with maxed out saturation and value."

.fuchsia()

New in version 2.0.

  • Name: "Rose Bonbon"
  • Hex: #EB459E
    image
  • Usage: discord.Colour.fuchsia()

.yellow()

New in version 2.0.

  • Name: "Corn"
  • Hex: #FEE75C
    image
  • Usage: discord.Colour.yellow()

Attributes

.value

  • Description: The raw integer colour value.
  • Type: int
  • Usage: discord.Colour(...).value

.r

  • Description: Returns the red component of the colour.
  • Type: int
  • Usage: discord.Colour(...).r

.g

  • Description: Returns the green component of the colour.
  • Type: int
  • Usage: discord.Colour(...).g

.b

  • Description: Returns the blue component of the colour.
  • Type: int
  • Usage: discord.Colour(...).b

Methods

.to_rgb()

  • Description: Tuple[int, int, int]: Returns an (r, g, b) tuple representing the colour.
  • Usage: discord.Colour(...).to_rgb()

(classmethod) .from_rgb()

  • Description: Constructs a Colour from an RGB tuple.
  • Usage: discord.Colour.from_rgb(R, G, B)
  • Example: discord.Colour.from_rgb(88, 101, 242)

(classmethod) .from_hsv()

  • Description: Constructs a Colour from an HSV tuple.
  • Usage: discord.Colour.from_hsv(H, S, V)
  • Example: discord.Colour.from_hsv(235, 64, 95)

(classmethod) .from_str()

New in version 2.0.

  • Description: Constructs a Colour from a string.
  • Usage: discord.Colour.from_str("colour")
  • Example: discord.Colour.from_str("#123456")

                                                                                                                                               🔼 Go Up 🔼

@A-Trash-Coder
Copy link

I love you

Copy link

ghost commented Jun 17, 2020

Useful.

@Soheab
Copy link
Author

Soheab commented Jun 17, 2020

Useful.

ikr

@droolio
Copy link

droolio commented Mar 2, 2021

Can I ask where you got these colours from? Especially the names, like "Aloha" for Teal etc..

Also, what happened to purple? :)

@Soheab
Copy link
Author

Soheab commented Mar 3, 2021

Can I ask where you got these colours from? Especially the names, like "Aloha" for Teal etc..

Also, what happened to purple? :)

All the images and names are from the AlexFlipnote API: https://api.alexflipnote.dev/color/hexherewithouthashtaghere (you will need to ask for a token)

And.. oops. EDIT: added purple and dark purple

@YinSempai
Copy link

do you have the color for links?

@Soheab
Copy link
Author

Soheab commented Jul 7, 2021

do you have the color for links?

What?

@Codingale
Copy link

do you have the color for links?

What?

They want the color links are before visiting them rgb(0, 175, 244) or #00AFF4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment