Tool · Converter

Color converter: hex, RGB, HSL, CMYK.

Paste a hex code, RGB value, HSL string, CMYK value, or named color and convert it into the formats designers and developers use.

Hex

RGB

rgb(15, 76, 129)

HSL

hsl(208, 79%, 28%)

CMYK

cmyk(88%, 41%, 0%, 49%)

Notation, briefly.

Hexis the web's lingua franca — six characters, eight bits per channel. Easy to share, easy to mistype.

RGBis the same number, spelled out. 0 to 255 per channel, additive light. What your screen actually emits.

HSL rewrites RGB in terms a human can reason about: hue (0–360°), saturation (0–100%), lightness (0–100%). Useful when you need to nudge a colour without changing the others.

CMYK is print: cyan, magenta, yellow, key (black), 0–100% each. Subtractive ink. Match your screen to your printer, never the other way around.

Frequently asked questions.

Can I convert hex to RGB?
Yes. Paste any valid hex color and the tool returns RGB, HSL, and CMYK values instantly.
Can I convert RGB or HSL back to hex?
Yes. The converter accepts RGB, HSL, CMYK, hex, and named colors where supported.
Is CMYK conversion exact?
CMYK values are calculated from the screen color. For production print, use your printer profile for final conversion.

How to convert a color.

  1. Step 1

    Paste a color value

    Enter a hex code, RGB value, HSL value, CMYK value, or named color.

  2. Step 2

    Review converted formats

    Read the matching hex, RGB, HSL, and CMYK values in parallel.

  3. Step 3

    Copy the format you need

    Use the notation that matches your design, CSS, or print workflow.