Blog
Unit converters

HSV to RGB converter

Enter hue (0–360°), saturation and value (0–100%), and the converter computes the corresponding RGB color, its HEX code, and shows a swatch.

Your data never leaves this device

Result

Red (R)
Green (G)
Blue (B)
HEX code
RGB string

This page has no server side at all. The table you paste is parsed by JavaScript inside your own browser, the chart is drawn on a canvas element on your machine, and the export file is assembled locally. Nothing is uploaded, stored or written to any log. You can disconnect from the network after the page has loaded and everything will still work — which is the simplest way to verify the claim yourself.

Facts and limits of this method

Hue range 0° to 360° (out-of-range values are wrapped with modulo)
Saturation and value range 0% to 100%
Output range R, G, B from 0 to 255
Intermediate variables C (chroma), X (second-largest component), m (value offset)

When it misleads you

How it is calculated

Saturation and value are converted to fractions from 0 to 1 by dividing by 100.

Chroma C = V × S and the intermediate value X = C × (1 − |((H / 60) mod 2) − 1|) are computed, along with the offset m = V − C.

Depending on which of six 60° sectors the hue H falls into, the (R', G', B') values are picked from C, X and 0 following the standard HSV lookup table.

The offset m is added to each of R', G', B', the result is multiplied by 255 and rounded to a whole number, giving the final R, G, B.

Questions and answers

What happens if I enter a hue above 360° or negative?

The converter automatically wraps hue into the 0°–360° range using modulo, so the result is always valid.

Why is the result gray regardless of hue when S=0%?

At zero saturation the color becomes achromatic (a shade of gray), and hue has no visual effect in that case.

Can I get pure white or pure black?

Yes: V=100% with S=0% gives white, and V=0% (regardless of S and H) gives black.

Is my data sent anywhere?

No, the whole calculation runs in your browser.

Related tools

All tools