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.