Discord Color Codes

Reference embed accent integers, common role colors, and ANSI foreground codes for Discord bots and webhooks.

Embed accent colors

Bot and webhook embeds accept a decimal color field that tints the left accent bar. Message body text keeps the client theme foreground — embed color does not recolor arbitrary prose.

ColorNameHexEmbed integer
Blurple
Green
Yellow
Fuchsia
Red
White
Black
Dark blurple
Sky blue
Orange
Pink
Navy

ANSI foreground codes

Inside fenced code blocks tagged ansi, these foreground codes apply terminal styling within the block only. Useful for bot dashboards and monospace output — not for coloring normal channel messages.

ColorNameANSI codeHex
Gray30
Red31
Green32
Yellow33
Blue34
Magenta35
Cyan36
White37

What Discord supports

Standard user messages do not accept arbitrary text color. Embed objects from bots and webhooks include a decimal color field that tints the left accent bar — not the description body text.

Role colors tint member names in the sidebar and optionally beside messages. ANSI styling applies only inside fenced code blocks tagged ansi.

Converting hex to embed integers

Discord expects 0xRRGGBB as a base-10 integer. Hex #5865F2 becomes 5793266. Click any table cell to copy the value for your bot payload.

For Minecraft § codes and Roblox BrickColor references, see the related game and chat color pages in Browse.