ToolDashy

Hex to RGB Converter

Convert a hex color code to its RGB values instantly, with a live preview swatch and HSL/CMYK equivalents included.

Enter a hex color to see its RGB equivalent — HSL and CMYK are included too.

HEX

#6366f1

RGB

rgb(99, 102, 241)

HSL

hsl(239, 84%, 67%)

Also available in CMYK

Approximate print (CMYK) values, calculated from the RGB color above.

c

59%

m

58%

y

0%

k

5%

Everything you enter is processed in your browser and isn't sent to our servers.

How to use hex to rgb converter

  1. 1Type or paste a hex color code, like #6366F1.
  2. 2The equivalent RGB values appear instantly.
  3. 3Check the live swatch to confirm the color, and copy the RGB value.
  4. 4HSL and CMYK equivalents are shown too, if you need them.

About this tool

A hex color code packs three color channels — red, green and blue — into a six-digit base-16 (hexadecimal) number, two digits per channel. Splitting it back into RGB means reading each pair of digits as a value from 0 to 255.

For example, #6366F1 splits into 63, 66 and F1 in hex, which convert to 99, 102 and 241 in decimal — the RGB values most image editors, CSS rgb() functions and design tools expect.

This tool also accepts shorthand 3-digit hex codes and 8-digit codes that include an alpha (transparency) channel, expanding and converting them the same way.

Frequently asked questions

#6366F1 converts to rgb(99, 102, 241).

Related tools