All tools / Messages
Embed color int and hex converter
Convert #RRGGBB, 0x hex, rgb(), or a decimal integer into the integer the embed color field expects.
Result
color is an integer
The embed color field is a decimal integer from 0 to 16777215. Sending the string "#5865F2" fails validation; send 5793266. In JavaScript, parseInt('5865F2', 16) gives the same number.
Related: Embed JSON limit checker