# Color Converter

URL: https://hifreetools.com/color/color-converter

> Type a color in HEX, RGB, or HSL and instantly see it in every common format — HEX, RGB, HSL, HSV, and CMYK — each with a copy button and a live swatch.

## Quick answer

To convert a color, enter it in any common format and read the equivalent values in the others. For example, #0080ff equals rgb(0, 128, 255), hsl(210, 100%, 50%), hsv(210, 100%, 100%), and cmyk(100%, 50%, 0%, 0%). This tool parses what you type, shows a swatch, and gives a one-click copy for each format — all in your browser.

The converter first parses your input into red, green, and blue channels (0–255), accepting HEX shorthand and full HEX, rgb(), and hsl(). From RGB it derives HSL and HSV using the standard hue/saturation/lightness formulas, and CMYK from the key (black) value k = 1 − max(r,g,b). Every output is computed from the same RGB source, so the formats always describe the identical color.

## Examples

- Web blue: #0080ff → rgb(0,128,255) · hsl(210,100%,50%) · cmyk(100%,50%,0%,0%)
- Orange: #ff6600 → rgb(255,102,0) · hsl(24,100%,50%)
- Mid grey: rgb(128,128,128) → #808080 · hsl(0,0%,50%)

## FAQ

**Which color formats does it convert?**
It converts between HEX, RGB, HSL, HSV, and CMYK. You can type a HEX, rgb(), or hsl() value, and it shows all five representations of the same color.

**What is the difference between HSL and HSV?**
Both describe a color by hue and saturation, but HSL's third value is lightness (0% black to 100% white, 50% is the pure color) while HSV's is value/brightness (100% is the pure color). They are related but distinct scales.

**Is the CMYK value print-accurate?**
It is a standard mathematical RGB-to-CMYK conversion. Actual printed color also depends on the printer, inks, and paper, so use it as a starting point and confirm with a proof for critical print work.

**Can I enter shorthand HEX like #f60?**
Yes. Three-digit shorthand expands by doubling each digit, so #f60 is the same as #ff6600. Both produce the identical color.

**Are my colors uploaded anywhere?**
No. All parsing and conversion run in your browser using JavaScript, so nothing is sent to a server.

**Why does a grey have a hue of 0?**
When red, green, and blue are equal the color has no saturation, so hue carries no meaning and is conventionally reported as 0.


## Sources

- [MDN — <color> CSS data type](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value)
- [Wikipedia — HSL and HSV](https://en.wikipedia.org/wiki/HSL_and_HSV)
- [Wikipedia — CMYK color model](https://en.wikipedia.org/wiki/CMYK_color_model)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "Color Converter", https://hifreetools.com/color/color-converter
