RGB to HEX Converter
Enter RGB values (0–255 each) and get the HEX color code instantly. Runs entirely in your browser. Our servers are not involved.
CONVERT
All three formats are shown simultaneously regardless of mode.
How it works
Color conversion uses standard mathematical formulas. HEX is just a hexadecimal representation of the three RGB byte values, and HSL is computed from RGB via a well-known normalisation algorithm. All conversion runs in JavaScript inside your browser.
Processing runs in your browser
All computation happens inside your browser tab. Our servers are not involved at any point.
Related operations
To check whether two colours meet WCAG legibility, try the contrast checker. For building a coordinated set from one base colour, use the colour palette generator. To craft smooth multi-stop blends in CSS, see the CSS gradient generator.
Frequently asked questions
- What range can RGB values be?
- Each channel (red, green, blue) is a whole number from 0 to 255.
- What format is the HEX output?
- The output is a 6-digit hex code prefixed with #, for example #3b82f6.
- Is this tool free?
- Yes, completely free. No account required.