Discord Hex Color Picker
When setting up bot embeds or role colors, Discord expects colors as decimal integers, not hex codes. This picker converts any hex color to its decimal equivalent instantly, with a live preview swatch and ready-to-copy values.
- Free, no limits
- No login
- Runs in your browser
About this tool
Discord's API expects colors as decimal integers. A hex code like #5865F2 must be converted to 5794882 before it works in JSON.
This tool shows hex, decimal and RGB values side by side with a live swatch.
How to use
Use the color picker or type a hex code.
Read the decimal integer instantly.
Copy the number and paste it into your bot code or API call.
Hex, RGB and the integer Discord stores
A hex colour is three bytes written in base 16: two digits each for red, green and blue. #5865F2 is red 88, green 101, blue 242. The shorthand three-digit form expands by doubling each digit, so #F0A is #FF00AA.
Discord's API stores colours as a single decimal integer rather than a string, so #5865F2 is transmitted as 5793266. Converting is just base 16 to base 10 - the same number written differently, not a different colour.
Alpha is not part of this. Discord role and embed colours are fully opaque, so an eight-digit hex with transparency is either rejected or silently truncated to its first six digits.
Picking palettes rather than colours
Colours chosen one at a time tend not to sit well together, because hue is only one of three variables. Palettes that look deliberate usually hold saturation and lightness roughly constant and vary hue, which is what makes a set feel like a family.
For anything text sits on, contrast ratio matters more than the colour. A palette that looks balanced as swatches can be unreadable as text, and the only reliable check is measuring the ratio rather than trusting the eye.
Converting hex to decimal
The formula is red * 65536 + green * 256 + blue. Since most people do not want to multiply, this tool does it instantly. Knowing the decimal value is the fastest way to set a role color through bot config.
Frequently asked questions
Why does Discord use decimal?
Discord's API uses integers. Colors are 24-bit integers where each 8-bit segment is red, green and blue.
Related guides
Browse all guides and generators.
Try other relevant tools
Discord Permission Calculator
Tick permissions and get the exact bitfield integer for your bot invite.
Discord Invite Builder
Build an OAuth2 invite link for your bot or app in one click.
Discord Role Name Generator
Generate creative role names for your Discord server, from fun to formal.