Skip to content

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": 16011586

For 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.

f4244Red
5181Green
4266Blue
244 × 65,536 = 15,990,78481 × 256 = 20,736+ 6616,011,586

Where to use the embed colour number

  • Webhooks and the Discord API want the number in the embed's color field, 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 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.

ColourHexDecimalLoad
BotGhost red#f4514216011586
Blurple#5865f25793266
Green#57f2875763719
Yellow#fee75c16705372
Fuchsia#eb459e15418782
Red#ed424515548997
White#ffffff16777215