Result
All calculations run locally in your browser: parsing, chart, export. Disconnect the network and the page keeps working.
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
- Hue 360° and hue 0° both correspond to the same color (pure red) — the converter automatically wraps hue values modulo 360.
- At zero saturation, hue has no effect on the result — you get a shade of gray determined only by value.
- The result is standard 8-bit RGB values (0–255); rounding of fractional intermediate calculations may cause a ±1 deviation compared to another calculator's output.
- Like any RGB color, the result carries no information about a specific screen's color profile.
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.