Skip to content

Color converter: hex, RGB, HSL, CMYK

Paste a color in any format, or pick one, and get every other format at once.
Tap any value to copy it. Free, no sign-up.

#3b82f6Closest name: azure

More about azure · Shades of blue · Check contrast on white · Build a palette

Now try it by eye

How to convert a color

  1. Paste or type your color. Hex (#3b82f6 or #38f), rgb(59, 130, 246), hsl(217, 91%, 60%), oklch(), cmyk() or a CSS name like teal all work.
  2. Or pick it. Tap the swatch to open your device's color picker.
  3. Copy the format you need. Tap a row and it is copied, ready to paste into CSS, Figma or your print file.
  4. Share it. Copy a link that opens this page with the same color.

Every value comes from the same 8-bit sRGB color your screen shows. CMYK is a simple conversion without a printer profile, so treat it as a starting point for print.

More

More color tests

Questions

How do I convert hex to RGB?

A hex code is three pairs of base-16 digits: red, green and blue. Convert each pair to a number from 0 to 255. For #3B82F6, 3B is 59, 82 is 130 and F6 is 246, so the color is rgb(59, 130, 246). Paste any hex code above and the RGB value appears at once.

What is the difference between RGB and CMYK?

RGB mixes light, so it is how screens show color: red, green and blue light add up to white. CMYK mixes ink, so it is how printers work: cyan, magenta, yellow and black ink on paper. Screens can show some bright colors that ink can't print, so CMYK values from any online converter are a close guide, not an exact print match.

What is OKLCH?

OKLCH describes a color by lightness, chroma (how colorful it is) and hue (the angle on the color wheel). Unlike HSL, equal steps in OKLCH look like equal steps to the eye, so it is great for building color scales and themes. Modern browsers support it in CSS, for example oklch(62.3% 0.188 259.8).

Why do printed colors look different from the screen?

A screen gives off light, while paper only reflects it, so bright, saturated screen colors often print duller. The paper, the ink and the printer's color profile all change the result. For important print jobs, ask your printer for a proof and use the CMYK values they give you.