Color Converter — HEX, RGB, HSL and Approximate CMYK

Convert opaque HEX, RGB and HSL colors, preview the result and copy individual or batch values. Includes approximate CMYK percentages.

🔒 Local processing
⚡ Free to use
🌐 Runs in your browser
📦 See output options
⚡

Color Converter — HEX, RGB, HSL and Approximate CMYK

Tool workspace

Ready

Loading tool...

  1. Enter #abc, #aabbcc, rgb(170,187,204), or hsl(210,25%,73%).
  2. Click Convert, or choose a color with the picker.
  3. For a batch, enter one color per line; the batch takes priority over the single field.
  4. Copy the displayed values.

Convert an opaque screen color

This converter accepts three- or six-digit HEX, comma-separated integer RGB channels from 0 to 255, and comma-separated HSL with percentage saturation and lightness from 0 to 100. HEX may include the # prefix. HSL hue wraps around the color wheel: -120 and 240 describe the same hue. The preview and conversions use rounded 8-bit RGB channels.

Supported input matters

For example, #f00 becomes #ff0000, rgb(255, 0, 0), and hsl(0, 100%, 50%). Named colors, alpha transparency, four- or eight-digit HEX, rgba(), modern space-separated CSS syntax, and CMYK input are not supported. Unsupported input is rejected instead of silently dropping alpha. In batch mode invalid lines are marked individually.

CMYK is an estimate

The CMYK percentages use a simple mathematical conversion without an ICC profile, printer, paper or ink model. They are useful for rough comparison, not print proofing. HSL and CMYK percentages are rounded, so converting rounded output back can slightly change the color. This tool does not measure contrast or guarantee accessibility. Use the color picker to explore colors or the palette generator for related shades.

Frequently asked questions

Does it preserve transparency?

No. Alpha formats are rejected; the supported colors are opaque.

Can I use the CMYK output for final printing?

It is an unprofiled estimate. Use your print workflow and printer profile for production color.

Why is my single color ignored?

A nonempty batch field takes priority. Clear it to convert the single field.