Skip to content

RGB to HSV Converter

Convert RGB colors to HSV (also called HSB) - the hue, saturation, and value format used by Photoshop and most design tool color pickers. All conversions happen in your browser.

Synchronized color

#FF5733

Parsed as RGB; malformed or out-of-range channels are rejected, never silently clamped.

Integer or percentage RGB, modern or legacy CSS, Hex with optional alpha, HSL, HSV, OKLCH, LAB, LCH, CMYK, or a CSS name.

100%

Adjust channels

255
87
51

Share this exact input

?color=FF5733

One input, implementation-ready output

Color workspace

Hex

#RRGGBB

#FF5733

CSS RGB

Modern space syntax

rgb(255 87 51)

Legacy RGB

Comma syntax

rgb(255, 87, 51)

RGB %

Percentage channels

rgb(100% 34.1% 20%)

HSL

CSS hue, saturation, lightness

hsl(11 100% 60%)

HSV / HSB

Design-tool model

hsv(11, 80%, 100%)

OKLCH

Perceptual CSS color

oklch(68% 0.21 33.7)

LAB

CSS Lab, D50

lab(61.03% 63.55 55.96)

LCH

CSS LCH, D50

lch(61.03% 84.67 41.37)

CMYK

Unprofiled approximation

cmyk(0%, 66%, 80%, 0%)

RGB to HSV Formula

With R, G, and B scaled to the 0-1 range, HSV is computed from the largest and smallest channels:

  1. Value: V = max(R, G, B).
  2. Saturation: S = 0 if V is 0, otherwise S = (V − min(R, G, B)) / V.
  3. Hue: same as HSL - based on which channel is largest and the difference between the other two, scaled to 0-360°.
  4. Report H in degrees and S and V as percentages.

Example: convert rgb(255, 87, 51) to HSV

R = 1.0, G = 0.341, B = 0.2

V = max = 1.0 → 100%

S = (1.0 − 0.2) / 1.0 = 0.8 → 80%

H = 60° × ((G − B) / (max − min)) = 60° × 0.176 ≈ 11°

Result: hsv(11, 80%, 100%)

How to Use the RGB to HSV Converter

Enter RGB values in any common format - rgb(255, 87, 51), plain numbers like 255 87 51, or a hex code - or adjust the sliders. The HSV value appears instantly alongside hex, HSL, and CMYK equivalents, each with a copy button.

Understanding the HSV Color Model

HSV describes a color by its hue (position on the color wheel from 0 to 360 degrees), saturation (how far from gray it is, 0 to 100%), and value (how bright it is, 0 to 100%). Value measures distance from black: 0% value is always black regardless of the other numbers, while 100% value with 0% saturation is pure white.

Common Use Cases

Transferring colors from code into Photoshop, Illustrator, or Procreate, which display HSB values in their pickers; implementing color-picker interfaces, which are usually built on HSV math; and analyzing image colors in computer vision libraries like OpenCV that work in HSV space.

RGB to HSV Conversion Table

RGB, hex, and HSV values for the most commonly used colors. Click any hex code to load it into the converter above.

ColorNameHexRGBHSV
Black#000000rgb(0, 0, 0)hsv(0, 0%, 0%)
White#FFFFFFrgb(255, 255, 255)hsv(0, 0%, 100%)
Red#FF0000rgb(255, 0, 0)hsv(0, 100%, 100%)
Lime#00FF00rgb(0, 255, 0)hsv(120, 100%, 100%)
Blue#0000FFrgb(0, 0, 255)hsv(240, 100%, 100%)
Yellow#FFFF00rgb(255, 255, 0)hsv(60, 100%, 100%)
Cyan#00FFFFrgb(0, 255, 255)hsv(180, 100%, 100%)
Magenta#FF00FFrgb(255, 0, 255)hsv(300, 100%, 100%)
Silver#C0C0C0rgb(192, 192, 192)hsv(0, 0%, 75%)
Gray#808080rgb(128, 128, 128)hsv(0, 0%, 50%)
Maroon#800000rgb(128, 0, 0)hsv(0, 100%, 50%)
Olive#808000rgb(128, 128, 0)hsv(60, 100%, 50%)
Green#008000rgb(0, 128, 0)hsv(120, 100%, 50%)
Purple#800080rgb(128, 0, 128)hsv(300, 100%, 50%)
Teal#008080rgb(0, 128, 128)hsv(180, 100%, 50%)
Navy#000080rgb(0, 0, 128)hsv(240, 100%, 50%)
Orange#FFA500rgb(255, 165, 0)hsv(39, 100%, 100%)
Pink#FFC0CBrgb(255, 192, 203)hsv(350, 25%, 100%)
Gold#FFD700rgb(255, 215, 0)hsv(51, 100%, 100%)
Brown#A52A2Argb(165, 42, 42)hsv(0, 75%, 65%)
Coral#FF7F50rgb(255, 127, 80)hsv(16, 69%, 100%)
Indigo#4B0082rgb(75, 0, 130)hsv(275, 100%, 51%)
Violet#EE82EErgb(238, 130, 238)hsv(300, 45%, 93%)
Salmon#FA8072rgb(250, 128, 114)hsv(6, 54%, 98%)

Need a value that is not listed? Browse the full color library — every hex code has a page with its RGB, HSL, CMYK and OKLCH values, contrast ratios, tints, shades and matching palette colors.

Frequently Asked Questions about RGB to HSV Converter

Both use the same hue wheel, but they measure the third axis differently. In HSV (also called HSB), V is Value or brightness: 100% value with full saturation gives the pure vivid hue. In HSL, 50% lightness gives the pure hue and 100% lightness is always white. Photoshop color pickers use HSV, while CSS uses HSL.