How it works
Write each channel using two hexadecimal digits and join them in red, green, and blue order.
Worked example
Use Red 0 · Green 200 · Blue 83. The result is #00C853.
Convert RGB channels from 0 to 255 to a six-digit CSS hex color.
Write each channel using two hexadecimal digits and join them in red, green, and blue order.
Use Red 0 · Green 200 · Blue 83. The result is #00C853.