How it works
Duplicate each digit in shorthand hex colors. Convert each two-character pair to a channel from 0 to 255.
Worked example
Use Hex color #00C853. The result is rgb(0, 200, 83).
Convert a three- or six-digit CSS hex color to red, green, and blue channel values.
Duplicate each digit in shorthand hex colors. Convert each two-character pair to a channel from 0 to 255.
Use Hex color #00C853. The result is rgb(0, 200, 83).