Convert standard RGB color definitions into their corresponding hexadecimal color codes. This tool handles the direct 8-bit mapping from decimal channels to base-16 outputs.
Input formats
Provide colors using the standard rgb(r, g, b) syntax with channel values ranging from 0 to 255. The tool will parse the string and translate each channel.
Hexadecimal output
The output is formatted as a 6-digit hex code in uppercase (#RRGGBB). Each pair of digits corresponds to the red, green, and blue channels respectively. Because both formats represent the same 8-bit sRGB color space, the conversion is completely lossless.
Batch processing
Process multiple colors at the same time by pasting them into the input pane, one per line. The output pane instantly generates the corresponding list of hex codes.
Visual adjustments
Use the active color picker to visually preview and tweak the currently selected line. Adjusting the picker automatically recalculates the RGB input and updates the hex output in real time.