Format Code Now
/
Web & markupRGB to HSV Converter Next: Hex to CMYK Converter ›

RGB to HSV Converter

WM-09

Paste RGB colors to get HSV values (also called HSB), or choose HSV to RGB to go the other way. One color per line.

Runs in your browser. Nothing is uploaded.

Colors, one per line

Result

How to use it

  1. Paste one color per line: rgb(255, 136, 0), or just 255 136 0.
  2. Click RGB to HSV. For the reverse, paste hsv(32, 100%, 100%) or 32 100 100 and click HSV to RGB.
  3. Choose the RGB output style for the reverse direction.
  4. Copy the result or download it.

HSV and HSB are the same thing

Hue is an angle from 0 to 360 on the color wheel. Saturation is how far the color is from gray, in percent. Value, also called brightness, is how light the color is, with 100 percent being the strongest form of that hue. Some design tools label this model HSB. The page reads hsv() and hsb() as input and writes hsv() as output. Hue and saturation are not the same as in HSL, so the numbers will differ from an HSL conversion.

Rounded output

Results are whole degrees and whole percent, so rgb(255, 136, 0) gives hsv(32, 100%, 100%). Going back from rounded values can change a channel by one or two. A gray has no hue, so it is reported as hue 0. HSV is not a CSS color function, which means browsers will not read hsv() in a stylesheet. Use the RGB result there.

Input forms

RGB input can be rgb(), a bare list of three numbers, hex or a CSS color name. HSV input can be hsv(), hsb(), or three bare numbers in the order hue, saturation, value. Everything runs in your browser and nothing is uploaded.

Error messages and what to do

MessageWhat it meansFix
Line 1: green "x" is not a numberOne of the channel values could not be read as a number.Replace it with a number or a percentage.
Line 1: "1 2" has 2 values; RGB needs 3A plain list needs exactly three numbers for RGB.Add the third value.

Questions people ask

How do I convert RGB to HSV?

Scale the channels to 0 to 1. Value is the largest one, saturation is the gap between largest and smallest divided by the largest, and hue comes from which channel leads. Paste rgb(255, 136, 0) above to get hsv(32, 100%, 100%).

Is HSB the same as HSV?

Yes. HSB, hue saturation brightness, is another name for HSV, hue saturation value. The numbers are identical. The page reads either hsb() or hsv() and writes hsv().

How do I convert HSV to RGB?

Choose HSV to RGB and paste hsv(240, 100%, 100%) or 240 100 100. The result is rgb(0, 0, 255). Hue wraps around 360, and saturation and value above 100 are clamped.

Why is the hue 0 for gray colors?

A gray has equal red, green and blue, so no hue is defined. By convention the hue is reported as 0, and saturation is 0 percent. The value tells you how light the gray is.

Can I use hsv() in CSS?

No. CSS has hsl() and hwb() but no hsv() function. Convert to RGB or hex with this page and use that result in your stylesheet.

About this tool

HSV and HSB are the same model: hue in degrees, saturation and value (brightness) in percent. Results are rounded to whole degrees and whole percent, so converting back may not return the exact original channels. The input can be a plain list of three numbers (255 136 0 for RGB, 32 100 100 for HSV), a function form, hex or a CSS color name. HSV is not a CSS color function: browsers do not read hsv(), so use the RGB output in a stylesheet. Alpha is carried through when the format can hold it (8-digit hex, rgba, hsla) and ignored by HSV and CMYK.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.