Skip to content
ColorsGuide

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.

Example paletteUsed until you create or choose your own

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

See shades, harmonies and palettes for #8739ED

Converted values

  • HEX#8739ed
  • RGBrgb(135 57 237)
  • HSLhsl(266 83.5% 57.7%)
  • HSV / HSBhsv(266 76% 93%)
  • HWBhwb(266 22.3% 7%)
  • OKLCHoklch(55.2% 0.2485 297.02)
  • OKLABoklab(55.2% 0.1129 -0.2214)
  • CIELABlab(43.45% 59.47 -78.64)
  • CMYKcmyk(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

  1. Normalise saturation and value to 0–1.
  2. Chroma C = V × S, and X = C × (1 − |(H ÷ 60) mod 2 − 1|).
  3. Assign C, X and 0 to channels by hue sector, then add m = V − C.
  4. 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.

Examples

SwatchHSV / HSBRGB
hsv(0 0% 100%)rgb(255 255 255)
hsv(0 0% 0%)rgb(0 0 0)
hsv(0 100% 100%)rgb(255 0 0)
hsv(158.2 100% 65.9%)rgb(0 168 107)
hsv(209.6 88.2% 100%)rgb(30 144 255)
hsv(50.6 100% 100%)rgb(255 215 0)
hsv(300 100% 50.2%)rgb(128 0 128)
hsv(16.1 68.6% 100%)rgb(255 127 80)
hsv(210 22.2% 56.5%)rgb(112 128 144)
hsv(60 10.2% 96.1%)rgb(245 245 220)
hsv(197.3 54.2% 32.5%)rgb(38 70 83)
hsv(12 64.9% 90.6%)rgb(231 111 81)

Other conversions

Was this page useful?