HEX To HSV

Convert six-digit HEX color values to HSV hue, saturation, and value.




hsv(30, 100%, 100%)

Reverse Conversion

HSV to HEX

How This Converter Works

Converts a six-digit hexadecimal RGB color, optionally prefixed with #, to hue, saturation, and value.

Formula or rule

Normalize RGB to [0,1]; V=max, S=(max-min)/max when max>0 (otherwise 0), and hue uses the same 60° sector rule as HSL.

Example

Input
#FF8000
Calculation
Normalized RGB=(1, 0.502, 0); V=1; S=(1-0)/1=1; H≈30.1°.
Result
hsv(30, 100%, 100%)