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.
| Color | Name | Hex | Embed 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.
| Color | Name | ANSI code | Hex |
|---|---|---|---|
| Gray | 30 | ||
| Red | 31 | ||
| Green | 32 | ||
| Yellow | 33 | ||
| Blue | 34 | ||
| Magenta | 35 | ||
| Cyan | 36 | ||
| White | 37 |
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.