Color Converter

Type a color in any format, HEX, RGB, HSL, a CSS color name or modern CSS like oklch(), and get every other format at once, including OKLCH and the Discord decimal integer used for role and embed colors.

  • Free
  • No sign-up
  • No ads
#5865F2rgb(88, 101, 242)
Presets:

The Discord integer equals red times 65536 plus green times 256 plus blue, and it ignores any alpha channel. Paste it into a role color, embed, or bot config.

Reference

Color formats

All four describe the same color. The examples below are the Discord blurple (#5865F2) written every way this tool understands.

FormatExampleNotes
HEX#5865F2Two hex digits (00โ€“FF) each for red, green, blue. An 8-digit form adds alpha.
RGBrgb(88, 101, 242)Red, green, and blue channels from 0 to 255.
HSLhsl(235, 86%, 65%)Hue in degrees (0โ€“360), then saturation and lightness as percentages.
OKLCHoklch(58.6% 0.204 273.6)Perceptual lightness, chroma and hue. Equal steps look equally different, which makes it good for palettes.
Discord integer5793266One base-10 number: red ร— 65536 + green ร— 256 + blue. Ignores alpha.
FAQ

Color conversion, explained

Which color formats can I convert?+

Paste any HEX (#rgb, #rrggbb, or #rrggbbaa), rgb() or hsl() value in either the comma or the modern space syntax, or any CSS color name such as rebeccapurple. Newer CSS formats like hwb(), lab(), oklch() and color() also work in browsers that support them. The tool shows HEX, RGB, HSL, OKLCH and the Discord decimal integer at once.

What is the Discord color integer?+

Discord stores role and embed colors as one base-10 number instead of a hex string. It is computed as red times 65536 plus green times 256 plus blue. For example #5865F2 (Discord blurple) becomes 5793266.

How are HEX, RGB, and HSL related?+

They all describe the same pixel. HEX and RGB list red, green, and blue channels (0 to 255), while HSL uses hue, saturation, and lightness, which is often easier for picking shades and tints. This tool keeps all three in sync.

Does it support transparency and alpha?+

Yes. Include an alpha value (an 8-digit hex like #5865F2CC, or the fourth argument in rgba/hsla) and the swatch shows it over a checkerboard. Note the Discord integer ignores alpha, since Discord colors are opaque.

Is the color converter free?+

Yes. It is completely free with no login or account, and every conversion runs locally in your browser, so your colors never leave your device.

Related tools

All tools โ†’

More in General Tools.

Built by Digital Den

Need something custom built?

The studio behind this free tool builds custom bots, game servers and websites.