Skip to content

Color Converter

Paste any color and get it in ten formats.

How to use the color converter

Three steps, all in your browser.

  1. 1

    Enter a color

    Type or paste a code in any format, or use the picker.

  2. 2

    See every format

    The converted values update as you type, in every format at once.

  3. 3

    Copy the codes

    Copy any color code in one click, or share the page link.

Color Converter: what to know

The color converter translates any color between ten formats: hex, RGB, HSL, HSV, HWB, CMYK, OKLCH, OKLab, CIE Lab and LCH. Paste a value in any of them, or a CSS color name, and every other format updates at once, each with a copy button.

Screen formats describe the same colors in different ways. Hex and RGB give red, green and blue amounts; HSL, HSV and HWB rearrange them into hue and lightness-style values that are easier to edit; Lab, LCH, OKLab and OKLCH are built around human perception, so equal number changes look like equal visual changes.

CMYK is the odd one out: it describes ink on paper. The converter uses the standard device-independent formula, which is fine for a starting point, but a printer's ICC profile for a specific press and paper will give different numbers for critical brand work.

Popular uses

  • Moving colors between Figma, CSS, Photoshop and print files
  • Getting a CSS-ready value in the format your code base uses
  • Translating brand guides that list only one format
  • Learning how color formats relate to each other

Tips for the best result

  • Keep one source of truth (usually hex or OKLCH) and convert from it, rather than converting conversions.
  • Rounding can change a value by one step when converting back and forth; that difference isn't visible.
  • Colors outside the sRGB range (from OKLCH or Lab) are brought into range before hex and RGB are shown.

Read how JustYourPalette works, browse named colors and curated palettes, and see our privacy details. Colors you enter and images you open are processed in your browser and are never sent to our server.

Frequently asked questions

Hex, RGB, HSL, HSV (also called HSB), HWB, CMYK, OKLCH, OKLab, CIE Lab and LCH. Type or paste any of them, or a CSS color name, and the others update instantly.

Conversions between screen formats (hex, RGB, HSL, HSV, OKLCH, Lab) are mathematical and reversible apart from rounding. CMYK is a simple approximation: real print colors depend on the printer, ink and paper profile.

No. Every tool runs in your browser, so the colors you enter and any image you open are processed on your device and are not sent to our server or stored. Reloading or closing the page clears them.

Yes. Every tool is free with no sign-up and no limits on use. Clearly labeled ads keep it that way.

Yes. Colors and color codes aren't owned by anyone, so you can use anything you make here in personal and commercial projects. Brand colors may still be protected as part of a trademark.