Skip to content
ColorsGuide

HEX to HSV / HSB converter

Enter a HEX value such as #8338EC to convert it to HSV / HSB. Every other format is shown too, and the result updates as you type.

Example paletteUsed until you create or choose your own

Detected HEX.

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.1371
Perceived lightness (OKLCH L)
54.6%
Contrast on white
5.61:1
Contrast on black
3.74:1

See shades, harmonies and palettes for #8338EC

Converted values

  • HEX#8338ec
  • RGBrgb(131 56 236)
  • HSLhsl(265 82.6% 57.3%)
  • HSV / HSBhsv(265 76.3% 92.5%)
  • HWBhwb(265 22% 7.5%)
  • OKLCHoklch(54.58% 0.2478 295.88)
  • OKLABoklab(54.58% 0.1082 -0.223)
  • CIELABlab(42.72% 58.87 -79.21)
  • CMYKcmyk(44% 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 HEX to HSV / HSB

  1. Convert HEX to RGB and divide by 255.
  2. Value (brightness) is the largest channel.
  3. Saturation is (max − min) ÷ max, or 0 for black.
  4. Hue is calculated exactly as for HSL, in degrees.

About HEX

A HEX code writes the red, green and blue channels of an sRGB colour as two hexadecimal digits each (00–FF), so #FF5733 means red 255, green 87, blue 51. An optional fourth pair adds transparency, and three-digit shorthand such as #F53 doubles each digit.

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.

Examples

SwatchHEXHSV / HSB
#ffffffhsv(0 0% 100%)
#000000hsv(0 0% 0%)
#ff0000hsv(0 100% 100%)
#00a86bhsv(158.2 100% 65.9%)
#1e90ffhsv(209.6 88.2% 100%)
#ffd700hsv(50.6 100% 100%)
#800080hsv(300 100% 50.2%)
#ff7f50hsv(16.1 68.6% 100%)
#708090hsv(210 22.2% 56.5%)
#f5f5dchsv(60 10.2% 96.1%)
#264653hsv(197.3 54.2% 32.5%)
#e76f51hsv(12 64.9% 90.6%)

Other conversions

Was this page useful?