Convert RGB red, green, and blue values to a HEX color code.
HEX
#2E42FF
CSS RGB
rgb(46, 66, 255)
Each value must be a whole number between 0 and 255 — values outside that range are flagged before conversion.
Always a 6-digit HEX code, in uppercase, for consistency and broad compatibility.
Yes — both the HEX code and the CSS rgb() value have their own copy buttons.
Color Tools
Pickers, converters, palettes, and contrast utilities for color.