- Home
- Tools
- Color & Design
- Color Converter
- RGB to HSV Converter
RGB to HSV Converter
Convert RGB values to hue, saturation and value, the model behind the color pickers of design programs, also called HSB.
The numbers alone will do: 255, 99, 71.
In HSV
hsv(174, 71.4%, 87.8%)
Hue
174°Alpha
100%
In the other notations
Name
turquoiseexact match
RGB to HSV by hand
The converter opens with rgb(64, 224, 208). This is how that color gets from RGB to HSV, step by step.
- Divide each value by 255, so that it runs from 0 to 1: 64 ÷ 255 = 0.251, 224 ÷ 255 = 0.8784 and 208 ÷ 255 = 0.8157.
- Value is simply the largest of the three: 0.8784, or 87.84%.
- The gap between the largest and the smallest is 0.8784 − 0.251 = 0.6274. Saturation is that gap as a share of the largest: 0.6274 ÷ 0.8784 = 0.7143, or 71.43%.
- Green is the largest, so the hue is 60° × ((blue − red) ÷ gap + 2) = 60° × ((0.8157 − 0.251) ÷ 0.6274 + 2) = 174°.
- With one decimal at most:
hsv(174, 71.4%, 87.8%).
Well-known colors in RGB and HSV
| Color | RGB | HSV |
|---|---|---|
| black | rgb(0, 0, 0) | hsv(0, 0%, 0%) |
| white | rgb(255, 255, 255) | hsv(0, 0%, 100%) |
| gray | rgb(128, 128, 128) | hsv(0, 0%, 50.2%) |
| red | rgb(255, 0, 0) | hsv(0, 100%, 100%) |
| orange | rgb(255, 165, 0) | hsv(38.8, 100%, 100%) |
| yellow | rgb(255, 255, 0) | hsv(60, 100%, 100%) |
| lime | rgb(0, 255, 0) | hsv(120, 100%, 100%) |
| green | rgb(0, 128, 0) | hsv(120, 100%, 50.2%) |
| cyan | rgb(0, 255, 255) | hsv(180, 100%, 100%) |
| blue | rgb(0, 0, 255) | hsv(240, 100%, 100%) |
| purple | rgb(128, 0, 128) | hsv(300, 100%, 50.2%) |
| magenta | rgb(255, 0, 255) | hsv(300, 100%, 100%) |
HSV, HSB and HSL
- HSV and HSB are two names for one model: the V stands for value, the B for brightness.
- It is not HSL, although both start with the same hue. This turquoise is
hsv(174, 71.4%, 87.8%)andhsl(174, 72.1%, 56.5%). - A value of 100% is the full color and not white. White is a saturation of 0% at a value of 100%. The square in most color pickers is laid out this way, with saturation from left to right and value from bottom to top.
- CSS has no
hsv(). For a stylesheet, take the HEX, RGB or HSL form of the color.
The color converter shows a color in all seven notations at once, with a picker to choose it by eye.