AbyssTools

Discord Embed Color Converter (Hex to Decimal)

Pick a color and get the hex, RGB, HSL and decimal value that Discord embeds need.

How to use Discord embed colors

Embed colors are not written as hex in the API. They are a single decimal number from 0 to 16777215. Convert your hex color above and use the decimal value as the color field of your embed.

Example

Discord's blurple #5865F2 is 5793266 in decimal. In discord.py you can also write discord.Color(0x5865F2) or discord.Color.from_str("#5865F2") directly.

How the conversion works

A hex color is red, green and blue values joined together. Decimal is that same 24-bit number written in base 10: red x 65536 + green x 256 + blue.

Frequently asked questions

How do I convert hex to decimal for a Discord embed?

Paste your hex code above and copy the Decimal value. Use that number as the embed color.

Can I use hex directly in discord.js?

Yes. discord.js accepts a hex string such as '#5865F2' or a number. The raw API needs the decimal number.

What is the color number for black?

Pure black is 0, but Discord treats 0 as no color. Use 1 for near-black.

What is the Discord blurple color?

The current blurple is #5865F2, which is 5793266 in decimal.

More free Discord tools

Building a Discord bot?

Try Abyss, a bot with moderation, automod and music in one place.