Discord role colour
Pick a colour and get the decimal number the Discord API expects.
- Category
- Discord
- Price
- free
The tool starts in your browser.
Everything is calculated in your browser. Nothing you type is sent to our server.
How to use it in three steps
The tool as a schematic with this page's example. Each step's number stands where you take it: in the fields, at the result or outside the tool.
Pick a colour or type a hex code.
Read the decimal number.
Paste it into the color field in the API or an embed.
Six colours turned into a number for the API
Discord stores a role colour as one RGB number: red times 65536, green times 256, plus blue. The expected column works it out straight from the channels.
#414df2the example from the tool's description#5865f2the blue of the Discord logo#ff0000the red channel alone#ffffffthe largest possible value#000001a black that stays a colour#000000for a role, 0 means no colour6 of 6 cases as expected
Where the role colour shows
Discord stores a colour as one RGB integer, so #414df2 and 4279794 are the same value. A role in this colour paints the name in the member list and on every message.
Questions
Related tools
The tool does one job. If the same thing should happen automatically in your bot, server or system, we build it.
Missing a tool you need?
Tell us what you want to calculate or generate. We will tell you whether a tool is enough or an integration in your system fits better.