RGB to HEX converter
Convert RGB colour values to a HEX code for CSS and design tools. Free online converter.
Runs on our server
Next in your workflow
Also with the color converter
About this tool
Enter an RGB colour such as rgb(79, 70, 229) to get the HEX code to paste into CSS or a design tool.
How to use it
- 1 Enter the colour.
- 2 Select Convert and copy or download the result.
Questions
Is the CMYK value exact for print?
It’s a straight mathematical conversion. Printers use colour profiles, so check with your print shop for brand-critical colours.
Do you store what I enter?
No. Your input is processed to give you the result and isn’t saved.
Is this tool free?
Yes. It’s free to use with no sign-up and no limits for normal use.
More in Colour & design
- Color picker Pick any colour, from a palette, the screen, or an uploaded image, and get HEX, RGB and HSL.
- Color palette generator Build a harmonious colour palette from one base colour.
- Contrast checker Check whether text and background colours meet WCAG accessibility contrast levels.
- CSS gradient generator Design a linear or radial gradient and copy the CSS.
- Box shadow generator Tune a CSS box shadow visually and copy the code.
- PX to REM converter New Convert pixels to REM and EM units in real time, with an adjustable base font size, CSS output and reference table.