Skip to content
Server Reference

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
Tool
Hex#5865F2
Decimal5793266
RGBrgb(88, 101, 242)

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

1

Use the color picker or type a hex code.

2

Read the decimal integer instantly.

3

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