Hex to HSV Converter

Decode an RGB HEX color into hue, saturation, and value, or switch directions to rebuild a six-digit CSS HEX color from HSV coordinates.

Last updated: August 2026 | By Workshelve Team

HSV values will appear here...

HEX starts with RGB channels

A six-digit CSS HEX color stores red, green, and blue as three 8-bit hexadecimal channel values.

HSV describes the same color differently

Hue represents a direction around the color wheel, saturation measures distance from gray, and value tracks the strongest RGB channel.

Grays have no meaningful hue

When red, green, and blue are equal, saturation is zero. This tool reports hue as 0° by convention because hue does not affect an achromatic color.

How HEX Is Converted to HSV

The first step is decoding HEX into red, green, and blue channel values from 0 to 255. For example, #336699 becomes RGB(51, 102, 153). Those channels are then normalized to values from 0 to 1.

HSV uses the largest and smallest normalized RGB channels. Value is the largest channel. Saturation is the difference between the largest and smallest channels divided by the largest channel, except black, where saturation is defined as zero.

Hue depends on which RGB channel is largest and how the other two channels differ. The result is expressed as an angle around a 360° color wheel. For #336699, the result is H 210°, S 66.666667%, V 60%.

HEX to HSV Reference Examples

HEX
Hue
Saturation
Value
#FF0000
100%
100%
#00FF00
120°
100%
100%
#0000FF
240°
100%
100%
#808080
0°*
0%
50.196078%
#336699
210°
66.666667%
60%
#F59E0B
37.692308°
95.510204%
96.078431%

* Hue is shown as 0° by convention when saturation is 0%; changing hue would not change that gray.

HEX to HSV FAQs

Does #RGB shorthand produce the same HSV result as #RRGGBB?

Yes, after shorthand expansion. For example, #369 expands to #336699 before the RGB-to-HSV calculation.

Why is hue 0° for gray, white, or black?

Those colors have zero saturation, so hue does not affect the visible result. This converter returns 0° as a stable convention for achromatic colors.

Why can HSV values contain decimals even though HEX channels are integers?

HSV is calculated from ratios between RGB channels. Those ratios often produce fractional hue, saturation, or value even when the source RGB channels are whole numbers.

Is HSV itself a CSS HEX format?

No. This page converts between two ways of describing a color. The HEX output uses CSS hexadecimal RGB notation; HSV is a separate coordinate representation. The accepted 0x prefix is an input convenience, not CSS color syntax.

Does changing from HEX to HSV change the color?

The mathematical conversion describes the same RGB color in HSV coordinates. Small differences can appear after a round trip if HSV values are rounded before converting back.

What does the value component mean in HSV?

In this conversion model, value is the largest normalized RGB channel expressed as a percentage. A value of 0% is black; 100% means at least one RGB channel is at full intensity.

Related Tools