How to Use the RGB to Hex Converter: Steps and a Worked Example
Convert RGB colour values to a hex colour code. This guide shows what to enter, a worked example, and the limits to keep in mind. The RGB to Hex Converter tool is free, needs no account and runs in your browser.
What you need
- Red (0-255), for example 59
- Green (0-255), for example 130
- Blue (0-255), for example 246
Step by step
- Open the RGB to Hex Converter tool.
- Fill in Red (0-255).
- Fill in Green (0-255).
- Fill in Blue (0-255).
- Read the result, which updates as soon as the inputs change.
Worked example
With these inputs:
- Red (0-255): 59
- Green (0-255): 130
- Blue (0-255): 246
the tool returns:
#3B82F6
Lower case: #3b82f6
A second example
Changing Red (0-255) 59 to 118 gives:
#7682F6
Lower case: #7682f6
Comparing two runs like this is a quick way to see how much each input moves the result.
How it works
The calculation is: Write each channel as two hex digits. Enter red, green and blue values from 0 to 255, then copy the hex code in upper or lower case.
Things to keep in mind
Runs entirely in your browser. Nothing you enter is uploaded.
Related tools
If this is not quite what you need, try Hex to RGB Converter, RGB to HSL Converter or RGB to CMYK Converter.