Color Converter

Convert any color into HEX, RGB, HSL, HSV, CMYK and OKLCH all at once, instantly.

Try:
Need a single conversion?

Steps to convert a color with the color converter

  1. Paste or type any color into the field: a HEX code, rgb(), hsl(), hsv(), cmyk() or a CSS name like teal.
  2. Read it instantly rewritten into ten formats, from HEX and RGB through to OKLCH and web-safe.
  3. Click any format card to copy that value.
  4. Need just one pair? Use the quick-jump buttons to a dedicated converter like HEX to RGB.

What the color converter does

The color converter takes one color and rewrites it in every common notation at once, so a single value works wherever you need it. Paste a hex code from a design file and read back the rgb() for your JavaScript, the hsl() you want to hand-tune, and the cmyk() your printer expects, without doing the math yourself.

Every format the color converter reads and writes

FormatExampleBest for
HEX#1E90FFCSS and HTML
RGBrgb(30, 144, 255)Screens and code
RGBArgba(30, 144, 255, 1)Transparency
HSLhsl(210, 100%, 56%)Hand-tuning
HSLAhsla(210, 100%, 56%, 1)See-through tints
HSVhsv(210, 88%, 100%)Design apps
CMYKcmyk(88%, 44%, 0%, 0%)Print
OKLCHoklch(65% 0.18 250)Design systems
LCHlch(56% 60 290)Color science
Web-safe#1E99FFLegacy displays

Why an all-in-one converter beats single-pair tools

Single conversions like HEX to RGB are fine when the destination is fixed, but real work rarely is. The same brand color often has to land in CSS, a print file and a design system on the same day, and bouncing between separate one-way tools wastes time. Seeing every format for a color side by side, and copying whichever the moment calls for, is simply the faster way to work, which is why this hub leads the converters.

What people use the color converter for

  • Turning a design-file HEX into rgb() or hsl() for code.
  • Getting print-ready CMYK from an on-screen color before a proof.
  • Moving a legacy HSL or RGB palette into modern OKLCH for a design system.
  • Checking a color in every notation at once instead of guessing the conversion.

If you only ever need one specific pair, the dedicated tools are a click away: HEX to RGB, RGB to HEX, HEX to HSL and the rest are listed under the converter above.

Which formats can I paste in?

HEX, RGB, RGBA, HSL, HSLA, HSV, CMYK and CSS color names are all recognised, with or without the function wrapper.

How many formats does it output?

Ten at once: HEX, RGB, RGBA, HSL, HSLA, HSV, CMYK, OKLCH, LCH and the nearest web-safe color.

Is the conversion accurate?

Yes. It uses the standard color formulas, and values like HSL are rounded only for readability.

Is anything sent to a server?

No. The conversion runs entirely in your browser, so your colors never leave your device.