What color value is this?

Hello everyone!

Quick question. I’ve tried searching it up but I couldn’t find anything.

When sending a message to Discord webhooks, I encountered this:
image

["color"] = 12698261

What color value is in numbers? I tried something like HEX but it errored:

["color"] = "#58b9ff"

Any help is appreciated. Thanks in advance!

1 Like

Hello,
Give a look at this website

https://www.mathsisfun.com/hexadecimal-decimal-colors.html

There 2 type of color, decimal and hex.
Roblox use The decimal value.

1 Like

This is a decimal representation of a color. The easiest way to cast to this is to use a function like this in Roblox:

local function c3toDecimal(c3)
  return tonumber(c3:ToHex(), 16)
end