HEX to RGB Converter
Turn hex colour codes into rgb() values. Paste one code or a whole list, with 3, 4, 6 or 8 digits.
Processed on your device. Files are not uploaded
How to convert hex to RGB
Paste your hex colours
Paste or type it into the box, or press Try an example.
Pick the style
Comma style, modern space style or plain numbers.
Copy or download
Paste the colours into your CSS.
Worked example
This is what HEX to RGB Converter gives for its own sample values. Open the tool above and change anything to try your own.
Hex colours, one per line
#0f766e #fff #ff990080 0f172a
- Output
- rgb(15, 118, 110)
RGB values
rgb(15, 118, 110) rgb(255, 255, 255) rgba(255, 153, 0, 0.502) rgb(15, 23, 42)
About HEX to RGB Converter
Turn hex colour codes into rgb() values. Paste one colour or a whole list, with 3, 4, 6 or 8 digits and an optional hash sign. A hex code with eight digits keeps its transparency.
FAQs
What do the digits mean?
Two digits each for red, green and blue, from 00 to FF. The last two digits, if present, are transparency.
Can I convert a whole list?
Yes. Put one colour on each line.
Can I go the other way?
Use RGB to HEX Converter.