Free Discord tools / Embed color converter
Discord embed color converter
A Discord embed color is a plain decimal number, so #f45142 has to become 16011586 before a webhook will take it. Pick a colour or type in either one, then copy the number you need.
RGB 244, 81, 66
"color": 16011586For a whole embed, the Discord embed builder has this colour picker built in and writes the number into the JSON.
How a hex colour becomes a Discord embed number
A hex code is three colours stuck together. In #f45142 the red is f4, the green is 51, and the blue is 42. They're base 16, so f4 is 244 and ff (as high as one goes) is 255.
Discord wants one number: red times 65,536, plus green times 256, plus blue. Black is 0 and white is 16,777,215. The worked sum updates with the colour in the converter.
Where to use the embed colour number
- Webhooks and the Discord API want the number in the embed's
colorfield, like"color": 16011586. Send a hex code there and Discord throws the message back. - discord.js and other bot libraries want the number as well. In JavaScript you can cheat and paste
0xf45142, which is the same number in hex. - In BotGhost there's nothing to convert. The Colour box on the command builder's Send or Edit a Message block reads the hex code as it is, and it'll take a decimal or a variable too. Mind the # on hex codes that are all digits, say 123456, because without it BotGhost treats the code as a decimal.
Discord embed color questions
Your hex code as one base 16 number, shown in normal digits. BotGhost red (#f45142) is 16011586. Black (#000000) is 0, white (#ffffff) is 16777215, and you can't go past that.
Discord's API stores colours as whole numbers, so webhooks and bot code send them that way too. #f45142 and 16011586 are the same red, written in base 16 and base 10.
No. In the Send or Edit a Message block you can type #f45142 straight into the Colour box, or a decimal number, or a variable holding either one. Watch hex codes that are all digits, though. Type 123456 without the # in front and BotGhost reads it as a decimal, which gives you a different colour.
Yes. Role colours in Discord's API are the same kind of number, so whatever decimal you copy here works for a role too.
Discord's own colours as decimal numbers
These are the main colours from Discord's brand guide, with BotGhost red at the top. Press Use on a row to load it into the converter.
To have a bot post embeds in these colours by itself, make one for free or see how the Discord bot maker works. More tools are on the free Discord tools page.
| Colour | Hex | Decimal | Load |
|---|---|---|---|
| BotGhost red | #f45142 | 16011586 | |
| Blurple | #5865f2 | 5793266 | |
| Green | #57f287 | 5763719 | |
| Yellow | #fee75c | 16705372 | |
| Fuchsia | #eb459e | 15418782 | |
| Red | #ed4245 | 15548997 | |
| White | #ffffff | 16777215 |