RGB to HSV (HSB) Converter
Convert colours between RGB and HSV/HSB with the standard formulas: hue in degrees plus saturation and value with configurable decimals, switchable hsv()/hsb() naming, reverse conversion back to RGB/HEX, batch input and live preview.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Accepts rgb()/rgba(), percentage channels, bare numbers, #f00 / #ff0000 / #ff0000ff, plus hsl()/hsv()/hsb()/cmyk().
Result
One result per line, ready for CSS or your design tool.
Enter a colour to see the result
What this tool does
- Convert RGB values to HSV/HSB so a palette can be tuned by brightness and saturation in design tools.
- Interoperate with tools that only speak HSB: switch the function name to hsb() and keep one vocabulary.
- Work in reverse: convert hsv()/hsb() back to RGB or HEX when checking a colour.
Example
Input
rgb(51, 102, 153)
Output
hsv(210, 66.7%, 60%)
Standard formulas: V = max(R,G,B), S = (max − min) / max, and hue is identical to the HSL hue.
Frequently asked questions
Are HSV and HSB the same thing?
Yes. HSV (value) and HSB (brightness) are two names for the same model — Photoshop says HSB, the CSS community says HSV. The function name can be switched here, and the numbers are identical.
Why is V 100% for a pure hue while HSL lightness is only 50%?
The two models define brightness differently: HSV takes the largest RGB component (#ff0000 has V = 100%) while HSL averages the largest and smallest (L = 50%). Hue is the same in both.
Can CSS use hsv()?
No — CSS has no hsv()/hsb() colour function. The output here is meant for design tools, scripts or your own token system; use hsl() or rgb() in stylesheets.
Are the numbers rounded?
They keep 1 decimal by default (for example 66.7%) and you can choose 0–4 decimals; nothing is forced to whole numbers.
Keywords:hsbrgb2hsvrgb to hsvhsv to rgbcolor converter