Tools 365

All Tools74 tools available

RGB to Hex Converter

Convert RGB color values to hexadecimal format with color preview

Input RGB Values
Enter RGB values (0-255)
Hex Result
Converted hexadecimal color code and preview
Enter RGB values to see hex code
hex = "#" + toHex(R) + toHex(G) + toHex(B)
toHex(n) = n.toString(16).padStart(2, "0")
• rgb(255, 0, 0) = #FF0000 (Red)
• rgb(0, 255, 0) = #00FF00 (Green)
• rgb(0, 0, 255) = #0000FF (Blue)