Color Conversion Tools
HSV to HEX
Turn hue, saturation and value from a color picker into a HEX code you can paste into CSS or a design token. Adjust a slider-style value and watch the swatch and the #rrggbb result update together.
Edit a channel and see the color result immediately.
Enter HSV
Hue is 0–360°. Saturation and value are percentages from 0 to 100.
HEX 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)R: 50 = 3 × 16 + 2 → 32G: 102 = 6 × 16 + 6 → 66B: 153 = 9 × 16 + 9 → 99HEX = #326699
Common colors in HSV and HEX
Choose a color to load it into the converter.
| Color | HSV | HEX |
|---|---|---|
hsv(0°, 0%, 0%) | #000000 | |
hsv(0°, 0%, 100%) | #ffffff | |
hsv(0°, 100%, 100%) | #ff0000 | |
hsv(120°, 100%, 100%) | #00ff00 | |
hsv(240°, 100%, 100%) | #0000ff | |
hsv(60°, 100%, 100%) | #ffff00 | |
hsv(180°, 100%, 100%) | #00ffff | |
hsv(300°, 100%, 100%) | #ff00ff | |
hsv(0°, 0%, 50.2%) | #808080 | |
hsv(0°, 100%, 50.2%) | #800000 | |
hsv(120°, 100%, 50.2%) | #008000 | |
hsv(240°, 100%, 50.2%) | #000080 | |
hsv(38.8°, 100%, 100%) | #ffa500 | |
hsv(207.3°, 61.1%, 70.6%) | #4682b4 | |
hsv(270°, 66.7%, 60%) | #663399 | |
hsv(9.1°, 72.2%, 100%) | #ff6347 |
How to use
- Enter hue from 0 to 360 and saturation and value from 0 to 100.
- Check the swatch and the HEX result; the calculation panel shows chroma, the hue sector and the final bytes.
- Copy the HEX code, or try a neighbouring tint or shade from the strip and copy that.
Examples
A vivid pink from a picker
Value 90% makes red the strongest channel at 230 (e6). Saturation 80% pulls green down to 46 (2e), and the 330° hue puts blue halfway at 138 (8a).
hsv(330, 80%, 90%)
#e62e8a
When HSV to HEX is the right tool
HSV is how people pick colors; HEX is how software stores them. You will reach for this conversion when:
- You tuned a color by eye in a picker and need a token for the codebase.
- You are generating a palette by rotating hue in fixed steps (for example every 30°) and want each step as a code.
- Documentation lists HSB values, as older brand guides and print-design hand-offs often do.
How the conversion works
The math works in three moves. For hsv(330, 80%, 90%):
- Chroma is the colorful part: C = V × S = 0.9 × 0.8 = 0.72.
- Position on the wheel. Hue ÷ 60 = 5.5, so the color sits in the magenta-to-red sector. The middle channel is X = C × (1 − |5.5 mod 2 − 1|) = 0.36.
- Add back the gray. m = V − C = 0.18. In this sector R′ = C, G′ = 0 and B′ = X, so the channels are (0.72 + 0.18, 0 + 0.18, 0.36 + 0.18) × 255 ≈ (230, 46, 138).
Written in base 16 that is #e62e8a. Try your own values; the calculation panel repeats these steps with your numbers.
Practical tips
- Keep saturation below 100% for large areas. Fully saturated colors at high value glow on screens and are tiring as backgrounds.
- Check contrast before using it for text. The contrast panel shows the ratio against white and black and the WCAG level it reaches.
- Lock hue, vary value to build a set of related states such as default, hover and pressed.
Going the other way? Use HEX to HSV. For channel numbers instead of a code, try HSV to RGB.
Frequently asked questions
Which apps give me HSV values?
Photoshop and Affinity call it HSB, Procreate and many mobile pickers show the same three sliders, and JavaScript color libraries often expose h, s and v. All of them map to this page.
What happens at hue 360?
360° and 0° are the same red. The converter accepts both and returns the same HEX code.
Can I type decimals?
Yes, use a dot: 212.5 for hue or 66.7 for saturation. The output is still a whole-byte HEX code, so tiny decimal differences may produce the same result.
Why does value 0% always give #000000?
Value is the brightness of the strongest channel. At zero every channel is zero, so hue and saturation no longer matter.
Will converting back give exactly my numbers?
Not always. HEX stores 256 levels per channel, so HSV to HEX to HSV can move a value by a fraction of a percent. The HEX code is the stable value to store.