RGB to Hex Converter
Convert an RGB color value into its hexadecimal code.
Share on Social Media:
Enter red, green, and blue values (0-255) to get the equivalent six-digit hex color code.
Frequently Asked Questions
Converts an RGB color value — red, green, blue, each 0-255 — into its equivalent hexadecimal color code.
Hex codes are the standard format for specifying colors in CSS and HTML, so converting is often necessary when moving a color from a design tool into code.
Each of the red, green, and blue values (0-255) converts to a two-digit hexadecimal number, and the three are concatenated into a single six-digit hex code.
This tool converts RGB to hex — for the reverse direction, use a dedicated hex-to-RGB converter.