HEX to RGB Converter

Paste a HEX color code and read its RGB values instantly, with HSL, HSV and CMYK alongside. Copy whichever format your project needs.

Read the guide: How to convert HEX to RGB
#7c3aed

Converted values

RGB
R, G, B
HSL
HSV
CMYK

How it works

  1. 1

    Enter a hex code

    Type or paste a hex value like #7c3aed, or pick one with the swatch.

  2. 2

    Read the RGB

    See the rgb() string and the raw R, G, B numbers, plus HSL, HSV and CMYK.

  3. 3

    Copy

    Click any value to copy it. The preview shows the exact color you entered.

Instant & 100% private — nothing is uploaded

Every color is generated and converted right on your own device. Nothing is sent to a server, so there are no waits, no limits, and no copies kept anywhere.

Frequently asked questions

How do I convert a hex code to RGB?
Paste the hex into the field. The RGB values appear right away, both as an rgb() string and as plain R, G and B numbers you can copy.
Do short hex codes like #fff work?
Yes. Three-digit shorthand such as #fff is expanded automatically, so #fff reads the same as #ffffff.
What is the RGB of a hex color?
Each pair of hex digits is one channel from 0 to 255. For example #7c3aed is rgb(124, 58, 237): 7c is 124 red, 3a is 58 green, ed is 237 blue.
Can I get HSL or CMYK too?
Yes. Alongside RGB you also get HSL, HSV and CMYK for the same color, each ready to copy.