← All free tools Misc tools

RGB to HSV

Convert your RGB color format to HSV format.

Accepts any format: #a8d08d, rgb(168 208 141), hsl(96, 42%, 68%), hsv(96, 32%, 82%) or a color name.

About this tool

Type or paste an RGB color, or choose one with the picker, and the converter shows it as HSV as you type, with a preview and every other format underneath, each with its own copy button. It reads colors written in any of the formats, and color names like “tomato”, too.

How to convert RGB to HSV

RGB already gives the red, green and blue channels, from 0 to 255. For HSV, divide each channel by 255. The value is the largest of the three; the saturation is the gap between the largest and smallest, divided by the largest; and the hue is an angle that depends on which channel is largest: red near 0, green near 120 and blue near 240.

The hue, saturation and value are rounded to whole numbers, so converting back can move a channel by one.

RGB to HSV examples

ColorRGBHSV
Sage green rgb(168, 208, 141) hsv(96, 32%, 82%)
Red rgb(255, 0, 0) hsv(0, 100%, 100%)
Tomato rgb(255, 99, 71) hsv(9, 72%, 100%)
Gold rgb(255, 215, 0) hsv(51, 100%, 100%)
Dodger blue rgb(30, 144, 255) hsv(210, 88%, 100%)
Indigo rgb(75, 0, 130) hsv(275, 100%, 51%)
Black rgb(0, 0, 0) hsv(0, 0%, 0%)
White rgb(255, 255, 255) hsv(0, 0%, 100%)

What is RGB?

RGB writes a color as its red, green and blue channels, each from 0 to 255, the way screens make color by mixing light. rgb(0, 0, 0) is black and rgb(255, 255, 255) is white.

What is HSV?

HSV, also called HSB for brightness, describes a color by its hue, an angle on the color wheel from 0 to 360, its saturation, and its value, how bright it is. It’s the model behind the color pickers in Photoshop and most design apps. CSS doesn’t accept HSV, so convert it to HEX, RGB or HSL for the web.

Have a project in mind?

Have a brand or a product to grow?