Skip to content
Free tool

Discord Embed Color Picker: Color code as a decimal value

Use the Discord Embed Color Picker to choose a color for your Discord embed and instantly copy its code as a decimal value for the Discord API and webhook JSON, as hex, as a discord.js hex literal, or as a ready-to-use discord.py line. The live preview shows the color as the left bar of a sample embed, and you can apply official Discord colors with one click.

Built by Justin Schuessler

Free, no sign-up required: Your color is converted directly in your browser and is not sent to a server.

Need Discord bot hosting too? Keep your bot running 24/7.

Official Discord colors
Preview

Example embed title

This is a sample description so you can see how the selected color looks as the left border of an actual Discord embed.

Example footer · Today

Decimal (Discord API/webhook JSON)

5793266

Hex

#5865F2

JS hex literal (discord.js)

0x5865F2

Python (discord.py)

discord.Colour(0x5865F2)

Everything is calculated directly in your browser—your color is not sent to a server.

How it works

How to find the right Discord embed color

From choosing a color to adding it to the color field in your bot code: Get your embed color in five steps.

Step 1

Choose color

Click the color swatch next to “Embed Color” and choose a color, or enter a hex code such as #5865F2 or an RGB value such as 88, 101, 242 in the text field. Discord Blurple is selected by default.

Step 2

Apply an official Discord color

Alternatively, click Blurple, Green, Yellow, Fuchsia, Red, White, or Black under “Official Discord Colors.” The color is applied immediately.

Step 3

Check the preview

The preview shows your color as the left bar of a sample embed against Discord’s dark background.

Step 4

Copy decimal value or code

Use the copy button to copy the decimal value for the Discord API and webhook JSON. For bot code, copy the hex code, the discord.js hex literal 0x…, or the discord.py line discord.Colour(0x…).

Step 5

Paste value into the color field

Paste the value into your embed’s color field in your bot code or webhook payload, then send the message.

Color codes

Discord color codes for embeds: Hex, decimal, and code

The official Discord colors from the Color Picker, with hex codes, decimal values, and discord.js and discord.py formats. Blurple #5865F2 has been Discord’s primary color since the 2021 rebrand; the old Blurple was #7289DA.

ColorHexDecimaldiscord.jsdiscord.py
Blurple#5865F257932660x5865F2discord.Colour(0x5865F2)
Green#57F28757637190x57F287discord.Colour(0x57F287)
Yellow#FEE75C167053720xFEE75Cdiscord.Colour(0xFEE75C)
Fuchsia#EB459E154187820xEB459Ediscord.Colour(0xEB459E)
Red#ED4245155489970xED4245discord.Colour(0xED4245)
White#FFFFFF167772150xFFFFFFdiscord.Colour(0xFFFFFF)
Black#00000000x000000discord.Colour(0x000000)

Formats

Convert a Discord color code from hex to decimal

Discord stores the embed color as an integer from 0 to 16777215: red × 65536 + green × 256 + blue. This turns #5865F2 (red 88, green 101, blue 242) into 5793266. The Color Picker calculates this for you instantly and shows the color in all four formats.

Webhook JSON and Discord API

{
  "embeds": [
    { "title": "…", "color": 5793266 }
  ]
}

In raw JSON, the color appears as a decimal number in the embed’s color field. Copy this value from the large “Decimal (Discord API/Webhook JSON)” field.

discord.js

new EmbedBuilder()
  .setTitle("…")
  .setColor(0x5865F2);

discord.js takes the color as a number: a decimal value or a hex literal such as 0x5865F2. Copy the literal from the “JS Hex Literal (discord.js)” card.

discord.py

embed = discord.Embed(
    title="…",
    colour=discord.Colour(0x5865F2),
)

discord.py uses a discord.Colour object. Copy the ready-to-use line for your color from the “Python (discord.py)” card.

Basics

Embed color, role color, or colored text?

Embed color

The colored bar on the left of an embed, set in your bot code or webhook JSON. That’s what this Color Picker is for.

Role color

Set a role name’s color in the server settings, not in the embed.

Go to Discord Role Color Picker

Colored text

The embed color does not change text color. To write colored text in regular messages, use ANSI code blocks.

Go to Discord Text Formatter

Explore more

More tools for Discord embeds and colors

Need more than just the color—including a title, description, fields, and footer?

Convert hex to decimal (binary, hex, decimal, octal)

Number base converter: Convert hex to decimal, binary to decimal, and back, plus octal and any base up to 36. Includes step-by-step calculations, two's complement, and clickable bits.

Built by Luca Stanek

Color Picker

Convert colors between HEX, RGB, HSL, HSV, and CMYK in real time, find the closest CSS named color, and check WCAG contrast against black and white—all in your browser.

Built by Justin Schuessler

Discord Character Counter

Paste text and instantly see if it fits, with a live character count against every Discord limit (message, embed, username, nickname, slash commands, polls). Runs entirely in your browser.

Built by Justin Schuessler

Discord Text Formatter (Markdown, Colored Text & Code Blocks)

Format Discord text with a click: bold, italic, spoilers, quotes, and code blocks, plus colored text using ANSI code blocks. Includes a live preview like Discord and a copy button. Runs entirely in your browser.

Built by Luca Stanek

Discord Role Color Picker

Choose Discord role colors and instantly copy their hex and decimal values. Includes a two-color gradient (Enhanced Role Styles), Discord's 20 default colors, and live previews as a chat message and member list entry.

Built by Justin Schuessler

Discord Embed Builder

Build Discord Embeds with a form, preview them as actual Embeds in real time, and export them as JSON, discord.py, or discord.js—all in your browser.

Built by Justin Schüssler

Was this tool helpful?

Your feedback helps us prioritize and improve content.

FAQ

Frequently asked questions

Quick answers about Discord embed colors, color codes, and this tool.

What is the Discord embed color, and why is it a decimal number?

The embed color is the colored bar on the left of an embed—the message box sent by bots and webhooks. The Discord API expects an integer from 0 to 16777215 in the color field, calculated as red × 65536 + green × 256 + blue. It’s the same color as the hex code, just written as a number. For webhook JSON and direct API calls, copy the decimal value from the tool.

How do I convert a Discord color code from hex to decimal?

Remove the “#” and read the six characters as a hexadecimal number. This turns #5865F2 (Discord Blurple) into 5793266. The Color Picker calculates this instantly when you choose or enter a color and displays the decimal value prominently with a copy button. It only converts hex or RGB to decimal; to convert decimal back to hex, use the Hex to Decimal Converter.

How do I set the embed color in discord.js?

In discord.js you pass the color to setColor(), most simply as a number: a decimal value or a hex literal such as setColor(0x5865F2). setColor() also accepts a hex string like '#5865F2', a color name like 'Blurple' or an [R, G, B] array. The tool shows the hex literal in the “JS Hex Literal (discord.js)” card and the decimal value above it, each with a copy button.

How do I set the embed color in discord.py?

discord.py uses a discord.Colour object, such as discord.Colour(0x5865F2), which you pass as colour when creating the embed. The tool generates exactly this line for your chosen color in the “Python (discord.py)” card.

What are Discord's official colors?

Discord’s primary color since the 2021 rebrand is Blurple #5865F2 (decimal 5793266); the old Blurple was #7289DA. There’s also Green #57F287, Yellow #FEE75C, Fuchsia #EB459E, and Red #ED4245, plus White #FFFFFF and Black #000000. Click the corresponding color swatch to apply any of the seven in the tool.

Can I enter RGB values or short hex codes?

Yes. The “Embed Color” field accepts 3- or 6-digit hex codes with or without “#”, as well as RGB values such as rgb(88, 101, 242), rgba(…), or simply 88, 101, 242. The tool ignores the alpha value in rgba(…) because embed colors do not support transparency. If your input is invalid, a message appears below the field.

Can I change the text color with the embed color?

No. The embed color only colors the left bar of the embed, not the text, as the preview shows. To write colored text in regular messages, use ANSI code blocks, for example with the Discord Text Formatter. To change a role name’s color, use the Discord Role Color Picker.

Is the Color Picker free, and are my colors saved?

The Discord Embed Color Picker is free and requires no sign-up. Color selection, conversion, and preview all run directly in your browser. Your color is not sent to a server or saved.

Still have questions?

Contact Support
Discord server listGaming, roleplay, modding, and more — with member counts and vote rankings.
Building something of your own?

Your Discord Bot needs a reliable server to run on

A ZAP-Hosting VPS reliably hosts your Discord bot around the clock.

4.6/5 Google32,000+ Active serversSince 2010

No setup. No risk. Online in seconds.

Flexible TermCancel anytimeOnline in 60 seconds

Looking for more tools? View all Discord tools