Skip to content
ServaDiscord
  • Features
  • Pricing
Start building
Back to blog
GuidesTools
December 2, 2026·3 min

Discord Embed Color: Convert Hex to Decimal

Discord embeds want a decimal color, not a hex code. Learn why, how to convert #0066FF by hand, and the fastest way to get the right number.

Discord Embed Color: Convert Hex to Decimal

Discord embeds want a decimal color, not a hex code. Learn why, how to convert #0066FF by hand, and the fastest way to get the right number.

You copied a hex color from your brand guide, pasted it into an embed's color field, and Discord either errored or showed the wrong shade. The reason: the API expects the color as a decimal integer.

Why decimal

A hex color like #0066FF is just a base-16 number. Discord's API wants the same number written in base 10. #0066FF becomes 26367.

Convert by hand

Drop the #, then read the value as a hexadecimal number. For 0066FF:

  • 00 is 0, which contributes 0
  • 66 is 102, which contributes 102 × 256 = 26,112
  • FF is 255, which contributes 255

Add them up: 26,112 + 255 = 26,367.

Convert in one step

Paste your hex code into the free Hex to Decimal tool and copy the result.

Use it in an embed

{ "embeds": [{ "title": "Welcome", "color": 26367 }] }

Preview the result before posting with the Discord Embed Builder, which shows the color live.

Tips

  • Colors in the visual builder usually take hex, so you only need decimals when writing JSON by hand.
  • Keep a short list of your brand's decimals so every announcement matches.

Prefer to skip JSON entirely? Build your bot's messages visually in ServaDiscord.

Keep reading

All articles →

How to Make a Discord Embed (Limits, JSON and Webhooks)

Make a Discord embed with fields, colors and images. Covers every character limit, the embed JSON structure, and sending embeds through a webhook without a bot.

How to Make a Discord Embed (Limits, JSON and Webhooks)

December 2, 2026·5 min

Discord Permissions Explained: Bitfields, Roles and Overrides

How Discord permissions work: the permission integer, role hierarchy, channel overrides, and how to calculate the number your bot invite link needs.

Discord Permissions Explained: Bitfields, Roles and Overrides

December 2, 2026·5 min

Discord Server Builder: How to Set Up Roles, Channels and Permissions

A practical guide to building a Discord server that looks deliberate: category and channel layout, role hierarchy, permissions, and templates for community, gaming and dev servers.

Discord Server Builder: How to Set Up Roles, Channels and Permissions

October 20, 2026·6 min
Jack

Jack

Founder, ServaDiscord

On this page

Why decimalConvert by handConvert in one stepUse it in an embedTips

ServaDiscord Pro

Get visual bot building, unlimited servers, and advanced analytics.

Save 15% on yearly

Upgrade now

Deploy Discord servers and bots, your way

Standard, generative, or agentic. Pick your interface, build it, and ship it, with control the whole way.

Start building
ServaDiscord

Deploy Discord servers and bots, your way.

  • X / Twitter
  • YouTube
  • Discord
  • Reddit
  • Email

Product

  • Pricing
  • Interfacing
  • How it works

Documentation

  • Getting Started
  • Changelog

Company

  • About
  • Blog
  • Affiliate

Legal

  • Privacy Policy
  • Terms and Conditions
  • Cookie Policy
ServaDiscord

We are not affiliated, associated, authorized, endorsed by, or in any way officially connected with any company, agency, or brand mentioned on this site.

© 2026 ServaDiscord