HSV to HEX

Convert HSV / HSB colors to HEX codes.

Type a HSV value or pick a color – the result updates instantly.

​

Preview

HSV to HEX Converter

Picked a color by hue, saturation, and value and now need a code for your stylesheet? Enter hsv(200, 60%, 80%) – or simply 200, 60, 80 – and get #52A3CC, a soft sky blue. HSV and HSB are the same model, so values copied from Photoshop, Affinity, or Procreate work too.

Building a palette in HSV

The big advantage of HSV is that each number changes one visual property. Starting from hsv(200, 60%, 80%):

Change HSV HEX
Base 200°, 60%, 80% #52A3CC
Darker (value 40%) 200°, 60%, 40% #295266
Softer (saturation 30%) 200°, 30%, 80% #8FB8CC

Notice that all three share the same bluish hue. This is how many design systems derive hover, pressed, and background variants from one brand color.

What happens during the conversion

The converter turns HSV into RGB first. For our example:

  1. Chroma C = V × S = 0.8 × 0.6 = 0.48
  2. The hue of 200° falls in the 180–240° sector, where blue is the dominant channel.
  3. The lowest channel is V − C = 0.32, and the middle one is 0.32 + 0.48 × (1 − |(200 / 60) mod 2 − 1|) = 0.64.
  4. That gives R = 0.32, G = 0.64, B = 0.8, or 82, 163, 204 in 0–255 terms.

Written in hexadecimal, 82 → 52, 163 → A3, 204 → CC, so the final code is #52A3CC.

Quick reference: the six primary hues

At full saturation and value, the hue alone determines the color: 0° is #FF0000, 60° is #FFFF00, 120° is #00FF00, 180° is #00FFFF, 240° is #0000FF, and 300° is #FF00FF.

If you need separate channel numbers rather than a code, use HSV to RGB. To analyze an existing code, HEX to HSV works in the opposite direction.

Frequently Asked Questions

Type hsv(200, 60%, 80%) or just 200, 60, 80. Hue is in degrees from 0 to 360, and saturation and value are percentages from 0 to 100. The percent signs are optional.

Yes. HEX has only 256 steps per channel, so nearby HSV values can round to the same code. Also, when saturation is 0 the hue has no effect, so hsv(0, 0%, 50%) and hsv(200, 0%, 50%) are both #808080.

Hue wraps around the color wheel, so 360 is the same as 0 (red) and 420 is the same as 60 (yellow). Negative hues wrap the other way.