Tools › Colour converter
Discord colour converter
One colour in every format Discord and its libraries use, and a check that your role colour can be read.
Colour
Every format
As an embed
Your embed
The bar on the left takes this colour.
As a role colour
ModeratorHey, welcome to the server!
ModeratorHey, welcome to the server!
How to use it
- Choose a colourPick one, type any format, or start from Discord's own role colours.
- Copy the format you needHex for role settings, the decimal number for embed JSON and webhooks, code for discord.js or discord.py.
- Check it reads wellThe contrast score shows whether names in that colour are easy to read on dark and light themes.
Questions
Why does Discord want a number for embed colours?
The API stores colours as one decimal number. #FF4F9A becomes 16732058. Libraries also accept 0xFF4F9A, which is the same number.
What does the contrast score mean?
It compares the colour with Discord's background. Above 4.5:1 is easy to read for everyone, 3:1 is fine for short names, lower is hard to read.
Can a role have a gradient?
Servers with enhanced role colours can give roles two colours. Each one is still a normal hex colour you can check here.