Skip to content
UniKit

HEX to HSV Converter

Convert between hex colours and HSV/HSB both ways: accepts #f00, #ff0000, #ff0000ff and hsv()/hsb() notation, with configurable decimals, switchable naming, HEX and rgb() output, batch input and live preview.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Colour input (one per line)

Accepts #f00 / #f00a / #ff0000 / #ff0000ff, hsv()/hsb()/hsva()/hsba(), plus rgb()/hsl()/cmyk().

Result

One result per line, ready for CSS or your design tool.

Enter a colour to see the result

What this tool does

  • Turn a brand hex colour into HSV/HSB so it can be nudged in a tool that only speaks HSB.
  • Work in reverse: convert hsv()/hsb() back to HEX or rgb() and paste it into a stylesheet.
  • Keep translucent colours intact: the 8-digit hex and hsva() form are produced together.

Example

Input

#336699

Output

hsv(210, 66.7%, 60%)

The hex is split into 0–255 RGB first, then V = max and S = (max − min) / max; hue matches HSL.

Frequently asked questions

Is the HEX ↔ HSV mapping exact?

At 8-bit depth RGB (and therefore hex) covers 16,777,216 colours and HSV with the same integer components covers just as many. The displayed HSV keeps 1 decimal by default, so a round trip uses the parsed values and can land one step off.

Why is S 0% for #808080?

For a grey the max and min channels are equal, so the chroma is zero: saturation is 0% by definition and hue is conventionally reported as 0°. V equals 128/255 ≈ 50.2%.

Does CSS support hsv()?

No. CSS offers rgb(), hsl(), hwb() and friends, but no hsv()/hsb(). Use hex, rgb() or hsl() in stylesheets and keep hsv() for design tools and scripts.

Can I convert several colours at once?

Yes, one colour per line. Blank lines are skipped and failing lines are listed with an error code without affecting the others.

Keywords:hex2hsvhex to hsvhsv to hexcolor converter

Related tools