HEX to HSV
Convert your HEX color format to HSV format.
About this tool
Type or paste a HEX color, or choose one with the picker, and the converter shows it as HSV as you type, with a preview and every other format underneath, each with its own copy button. It reads colors written in any of the formats, and color names like “tomato”, too.
How to convert HEX to HSV
A HEX code is three pairs of base-16 digits: in #a8d08d, a8 is 168 red, d0 is 208 green and 8d is 141 blue. For HSV, divide each channel by 255. The value is the largest of the three; the saturation is the gap between the largest and smallest, divided by the largest; and the hue is an angle that depends on which channel is largest: red near 0, green near 120 and blue near 240.
The hue, saturation and value are rounded to whole numbers, so converting back can move a channel by one.
HEX to HSV examples
| Color | HEX | HSV |
|---|---|---|
| Sage green | #a8d08d |
hsv(96, 32%, 82%) |
| Red | #ff0000 |
hsv(0, 100%, 100%) |
| Tomato | #ff6347 |
hsv(9, 72%, 100%) |
| Gold | #ffd700 |
hsv(51, 100%, 100%) |
| Dodger blue | #1e90ff |
hsv(210, 88%, 100%) |
| Indigo | #4b0082 |
hsv(275, 100%, 51%) |
| Black | #000000 |
hsv(0, 0%, 0%) |
| White | #ffffff |
hsv(0, 0%, 100%) |
What is HEX?
A HEX code is the most common way to write a color for the web and in design apps: a # followed by three pairs of base-16 digits, from 00 to ff, for red, green and blue. A three-digit code like #fc0 is short for #ffcc00.
What is HSV?
HSV, also called HSB for brightness, describes a color by its hue, an angle on the color wheel from 0 to 360, its saturation, and its value, how bright it is. It’s the model behind the color pickers in Photoshop and most design apps. CSS doesn’t accept HSV, so convert it to HEX, RGB or HSL for the web.