Color Conversion Tools
HSV to RGB
Convert hue, saturation and value to red, green and blue channel numbers. Use it to turn a picker or generated palette into values for canvas code, LEDs, game engines or spreadsheets.
Edit a channel and see the color result immediately.
Enter HSV
Hue is 0–360°. Saturation and value are percentages from 0 to 100.
RGB result
The conversion runs in your browser.
All formats
- HEX
#326699- RGB
rgb(50, 102, 153)- HSL
hsl(209.7, 50.7%, 39.8%)- HSV
hsv(209.7°, 67.3%, 60%)- CMYK
cmyk(67.3%, 33.3%, 0%, 40%)- OKLCH
oklch(49.9% 0.099 250.1)- CSS
≈ steelblue
Tints and shades
Text contrast (WCAG)
Normal text needs 4.5:1 for AA and 7:1 for AAA; large text needs 3:1.
How it was calculated
C = V × S = 0.6 × 0.67 = 0.402X = C × (1 − |(H ÷ 60) mod 2 − 1|) = 0.201m = V − C = 0.198(R, G, B) = ((R′, G′, B′) + m) × 255 = (50, 102, 153)
Common colors in HSV and RGB
Choose a color to load it into the converter.
| Color | HSV | RGB |
|---|---|---|
hsv(0°, 0%, 0%) | rgb(0, 0, 0) | |
hsv(0°, 0%, 100%) | rgb(255, 255, 255) | |
hsv(0°, 100%, 100%) | rgb(255, 0, 0) | |
hsv(120°, 100%, 100%) | rgb(0, 255, 0) | |
hsv(240°, 100%, 100%) | rgb(0, 0, 255) | |
hsv(60°, 100%, 100%) | rgb(255, 255, 0) | |
hsv(180°, 100%, 100%) | rgb(0, 255, 255) | |
hsv(300°, 100%, 100%) | rgb(255, 0, 255) | |
hsv(0°, 0%, 50.2%) | rgb(128, 128, 128) | |
hsv(0°, 100%, 50.2%) | rgb(128, 0, 0) | |
hsv(120°, 100%, 50.2%) | rgb(0, 128, 0) | |
hsv(240°, 100%, 50.2%) | rgb(0, 0, 128) | |
hsv(38.8°, 100%, 100%) | rgb(255, 165, 0) | |
hsv(207.3°, 61.1%, 70.6%) | rgb(70, 130, 180) | |
hsv(270°, 66.7%, 60%) | rgb(102, 51, 153) | |
hsv(9.1°, 72.2%, 100%) | rgb(255, 99, 71) |
How to use
- Enter hue from 0 to 360 and saturation and value from 0 to 100.
- Read the rgb() result and follow chroma, X and m in the calculation panel.
- Copy the channels, or open another format from the links under the converter with the same color.
Examples
Amber
Full saturation and value make red 255 and blue 0. At 45° the color is three quarters of the way from red to yellow, so green is 0.75 × 255 ≈ 191.
hsv(45, 100%, 100%)
rgb(255, 191, 0)
Middle gray
With no saturation, all channels equal the value: 0.5 × 255 = 127.5, rounded to 128.
hsv(0, 0%, 50%)
rgb(128, 128, 128)
When HSV to RGB is the conversion you need
HSV is the natural way to generate colors, because one number controls the hue. Hardware and graphics APIs, however, want red, green and blue. This is the bridge, for example when:
- You loop through hues to color chart series or map regions and need the channels for a canvas
fillStyleor a WebGL uniform. - You program LEDs, where libraries such as FastLED let you think in HSV but send RGB bytes to the strip.
- You fill a spreadsheet or report that requires numeric RGB values.
How the conversion works
For hsv(45, 100%, 100%):
- Chroma C = V × S = 1 × 1 = 1.
- Sector and middle channel. H ÷ 60 = 0.75, the red-to-yellow sector. X = C × (1 − |0.75 mod 2 − 1|) = 0.75.
- Order the channels. In this sector red is C, green is X and blue is 0.
- Add the offset m = V − C = 0 and multiply by 255: (255, 191.25, 0), rounded to
rgb(255, 191, 0).
Each of the six 60° sectors orders C, X and 0 differently; that table is the core of the algorithm. The calculation panel shows the numbers for whichever sector your hue falls in.
Tips
- Even hue spacing doesn’t mean even perceived difference. Greens take up a wide hue range, while yellows are narrow. For charts, check the result visually.
- High value with full saturation gives the most intense screen colors; reduce one of them for backgrounds.
The reverse is on RGB to HSV. If you need a code rather than numbers, use HSV to HEX.
Frequently asked questions
Where is HSV to RGB used?
Anywhere colors are generated rather than picked from a list: rainbow gradients, heat maps, LED strips such as WS2812, particle effects and procedural art often compute HSV and then need RGB for the device or canvas.
Why are the channels whole numbers?
Screens and image formats store 8 bits per channel, which are integers from 0 to 255. The converter rounds to the nearest whole number.
What does saturation 0% do?
It removes all hue, so red, green and blue become equal and the color is a gray at the given value.
Is 360° allowed?
Yes. 360° is the same as 0°, which is red.
My library uses 0–1 instead of percentages. What do I type?
Multiply by 100. A saturation of 0.75 in code is 75 here. Hue is always in degrees from 0 to 360.