Color Code Converter

Convert color codes between Hex, RGB, HSL, and HSV

hex
#8683d5
hex8
#8683d5ff
rgb
rgb(134, 131, 213)
hsl
hsl(242, 49%, 67%)
hsv
hsv(242, 38%, 84%)
cmyk
cmyk(37, 38, 0, 16)

Enter color to convert

hex/hexa/rgb/rgba/hsla

Conversion Result

What is Color Code Converter?

Color Code Converter is a tool for checking the same color in multiple formats, including Hex, Hex8, RGB, HSL, HSV, and CMYK. You can either paste a color code directly or pick a color visually, then copy the format you need.

It is useful when moving colors between design tools and code, changing CSS color notation, or checking print-friendly CMYK values alongside screen-based formats.

How to Use

  1. Enter a color code or choose a color with the picker.
  2. The tool parses the input automatically.
  3. Hex, Hex8, RGB, HSL, HSV, and CMYK values are shown together.
  4. Copy the format you want to use.

The input field accepts formats such as #RRGGBB, Hex8, rgb(...), rgba(...), and hsla(...). Extra spaces and a trailing semicolon are cleaned up automatically.

Available Output Formats

  • Hex
  • Hex8
  • RGB
  • HSL
  • HSV
  • CMYK

The preview area updates at the same time, so you can compare the code values with the actual color swatch while you work.

When to Use Each Format

Hex / Hex8

These are common choices for CSS and front-end work. Use Hex for opaque colors and Hex8 when you want to keep an alpha channel.

RGB

RGB is useful when you need numeric channel values directly, or when matching values shown in design tools and scripts.

HSL / HSV

These formats are handy when you want to think in terms of hue, saturation, and brightness. They are especially useful when adjusting lightness or saturation while keeping the overall hue close.

CMYK

CMYK is mainly for print-related checks. It helps when you want to compare a web color with a print-oriented representation.

Input and Output Example

For example, if you enter #8683D5, the tool can show results like these:

Hex: #8683D5
Hex8: #8683D5FF
RGB: rgb(134, 131, 213)
HSL: hsl(242, 49%, 67%)
HSV: hsv(242, 38%, 84%)
CMYK: cmyk(37, 38, 0, 16)

Exact rounding can vary slightly, but the tool makes it easy to see how one color is represented across formats.

Use Cases

  • Moving a color from Figma or Photoshop into CSS
  • Converting rgba(...) or hsla(...) values into Hex-based notation
  • Listing multiple representations of the same color in a design guide
  • Checking a rough CMYK equivalent for print-related work

Things to Keep in Mind

  • CMYK values are only a reference and can still vary by printer, profile, or workflow
  • Strings that cannot be interpreted as color values will not convert correctly
  • This tool converts one color into different formats, but it does not generate palettes or evaluate contrast