HSV / HSB to RGB converter
Enter a HSV / HSB value such as hsv(266 76% 93%) to convert it to RGB. Every other format is shown too, and the result updates as you type.
Detected HSV / HSB.
Examples: #1e90ff, rgb(30 144 255 / 50%), hsl(210 100% 56%), oklch(0.65 0.18 255), cmyk(88% 44% 0% 0%), tomato
- Name
- Deep vivid violet(descriptive)
- Alpha
- 100%
- Relative luminance
- 0.1419
- Perceived lightness (OKLCH L)
- 55.2%
- Contrast on white
- 5.47:1
- Contrast on black
- 3.84:1
Converted values
- HEX
#8739ed - RGB
rgb(135 57 237) - HSL
hsl(266 83.5% 57.7%) - HSV / HSB
hsv(266 76% 93%) - HWB
hwb(266 22.3% 7%) - OKLCH
oklch(55.2% 0.2485 297.02) - OKLAB
oklab(55.2% 0.1129 -0.2214) - CIELAB
lab(43.45% 59.47 -78.64) - CMYK
cmyk(43% 76% 0% 7%)
CMYK is a naive, device-independent approximation. Real print colours depend on the ink, paper and ICC profile your printer uses, so ask your printer for a proofed conversion. HSV/HSB is not a CSS format and is shown for design apps. CIELAB uses the D50 white point, as in CSS lab().
How to convert HSV / HSB to RGB
- Normalise saturation and value to 0–1.
- Chroma C = V × S, and X = C × (1 − |(H ÷ 60) mod 2 − 1|).
- Assign C, X and 0 to channels by hue sector, then add m = V − C.
- Multiply by 255 and round.
About HSV / HSB
HSV (also called HSB) uses hue, saturation and value (brightness). It is the model behind the square picker in Photoshop, Figma and most design apps. It is not a CSS format, so convert to HEX or RGB for code.
About RGB
RGB gives the same three sRGB channels as decimal numbers from 0 to 255 (or 0–100%). Modern CSS writes rgb(255 87 51 / 50%) with spaces and a slash before the alpha; the older comma form rgba(255, 87, 51, 0.5) still works everywhere.