UTILS.
Private by default
hsv

HSV / HSB Converter

Convert colors between HSV/HSB and RGB/HEX with a live swatch.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →

About this tool

HSV / HSB Converter translates a colour between hue-saturation-value and the RGB and HEX forms used in CSS and design tools, with a live swatch so you can see the result. Edit the three number fields (hue 0 to 360 degrees, saturation 0 to 100 percent, value 0 to 100 percent) and the HEX box updates; or type a HEX code and the three HSV fields update.

HEX input accepts six digits or the three-digit shorthand, with or without the leading #, in any letter case, so f80, #FF8800 and ff8800 are all understood. Anything that is not a valid HEX code is ignored until it becomes valid. Number fields are clamped to their ranges, and a blank or non-numeric field counts as 0. Hue 360 is reported as 0 because they are the same colour.

Three result tiles show the HEX, rgb() and hsv() values; click a tile to copy it. Because HSV values are shown rounded to whole numbers while HEX holds 256 steps per channel, a round trip from HEX to HSV and back can shift a channel by one step. Everything is calculated locally in your browser.

Frequently asked questions

What is the difference between HSV and HSB?
They are the same model. HSV (hue, saturation, value) and HSB (hue, saturation, brightness) are two names for the identical colour space, and the numbers are interchangeable.
How does HSV differ from HSL?
Both share hue, but in HSV full value with full saturation is the pure vivid colour, while in HSL full lightness is always white. HSV is what most colour pickers in design software show.
Which HEX formats can I type?
Six-digit codes and three-digit shorthand, with or without #, in upper or lower case. An invalid code is ignored and the previous result stays until the text is valid.
Why does converting back and forth change a value slightly?
The HSV fields are rounded to whole numbers while HEX stores each channel as one of 256 steps, so a round trip can differ by one step in a channel. Greys have no defined hue, so hue is shown as 0.

More tools