Convert a color between hex, RGB, HSL and CMYK

Translate supported sRGB, hexadecimal, HSL, HSV, CMYK, and named-colour representations.

freeworks offlinenothing uploaded
ToolColor Converter
Input
Output

How it works

Each mode parses one notation and converts through numeric sRGB channels or a cylindrical hue model. CMYK uses a simple arithmetic approximation, while colour names come from a finite stored lookup rather than perceptual nearest-neighbour search across every CSS colour.

  • Examples change with the selected mode.
  • Rounded display values have no ICC profile or colour-management metadata.

Worked example

Hex red to HSL
Input
											Value: #ff0000
From: hex
To: hsl
										
Output
												hsl(0 100% 50%)
											

When to use this

Stylesheets change hex to hsl(), design tools compare HSV coordinates, and print mock-ups estimate CMYK before profile conversion.

Edge cases

  • More than one RGB value can map to the same nearest name in a limited lookup table.
  • Arithmetic CMYK cannot predict printed appearance without an ICC profile, ink, substrate, and rendering intent.
  • Hue is undefined for grey, so an achromatic result needs a conventional placeholder angle.

References