HSL to HSB Converter
HSL in, HSB (HSV) out — with the working shown.
To convert HSL to HSB, normalise the input, convert HSL back to RGB, find max, min and delta, compute the components, then check the gamut. For example, hsl(215.4 92.6% 57.6%) in HSL is hsb(215.4 81% 96.9%) in HSB.
This is a free HSL to HSB converter. Type or paste any hue, saturation and lightness into the field above and the HSB value updates as you type, along with every other notation the web understands. HSB is hue, saturation and brightness — the model most native color pickers use internally, also written HSV.
Conversions run entirely in your browser using the same color engine as the rest of the site: values round-trip through linear sRGB and CIE XYZ rather than through an approximation, so what you copy is accurate to the last digit the format can carry.
How to convert HSL to HSB
- Normalise the input. Read the HSL value and scale each component into the 0–1 range the maths expects.
- Convert HSL back to RGB. HSL is not the display's native model, so the first move is always back to red, green and blue.
- Find max, min and delta. Take the largest and smallest of the three channels. Their difference drives saturation; which one is largest determines the hue sector.
- Compute the components. Brightness is simply max, saturation is delta / max, and hue comes from the dominant channel.
- Check the gamut. Clamp anything that falls outside what an sRGB display can show, so the value you copy is the value you get.
Worked example: hsl(215.4 92.6% 57.6%) converts to hsb(215.4 81% 96.9%). That color is Dodger Blue, and the tool above shows each intermediate step for whatever value you enter.
Common HSL to HSB values
The twenty colors people look up most often, converted from HSL to HSB. Every row is computed by the same engine as the tool above.
| Color | HSL | HSB |
|---|---|---|
| White | hsl(0 0% 100%) | hsb(0 0% 100%) |
| Black | hsl(0 0% 0%) | hsb(0 0% 0%) |
| Red | hsl(0 100% 50%) | hsb(0 100% 100%) |
| Lime | hsl(120 100% 50%) | hsb(120 100% 100%) |
| Blue | hsl(240 100% 50%) | hsb(240 100% 100%) |
| Yellow | hsl(60 100% 50%) | hsb(60 100% 100%) |
| Cyan | hsl(180 100% 50%) | hsb(180 100% 100%) |
| Magenta | hsl(300 100% 50%) | hsb(300 100% 100%) |
| Silver | hsl(0 0% 75.3%) | hsb(0 0% 75.3%) |
| Gray | hsl(0 0% 50.2%) | hsb(0 0% 50.2%) |
| Maroon | hsl(0 100% 25.1%) | hsb(0 100% 50.2%) |
| Olive | hsl(60 100% 25.1%) | hsb(60 100% 50.2%) |
| Green | hsl(120 100% 25.1%) | hsb(120 100% 50.2%) |
| Purple | hsl(300 100% 25.1%) | hsb(300 100% 50.2%) |
| Teal | hsl(180 100% 25.1%) | hsb(180 100% 50.2%) |
| Navy | hsl(240 100% 25.1%) | hsb(240 100% 50.2%) |
| Orange | hsl(38.8 100% 50%) | hsb(38.8 100% 100%) |
| Pink | hsl(349.5 100% 87.6%) | hsb(349.5 24.7% 100%) |
| Gold | hsl(50.6 100% 50%) | hsb(50.6 100% 100%) |
| Crimson | hsl(348 83.3% 47.1%) | hsb(348 90.9% 86.3%) |
HSL and HSB, briefly
HSL is a cylindrical remapping of RGB into hue (0–360°), saturation (0–100%) and lightness (0–100%). Valid range: H 0–360°, S and L 0–100%.
HSB is hue, saturation and brightness — the model most native color pickers use internally, also written HSV. Valid range: H 0–360°, S and B 0–100%.
Frequently asked questions
How do you convert HSL to HSB?
1. Read the HSL value and scale each component into the 0–1 range the maths expects. 2. HSL is not the display's native model, so the first move is always back to red, green and blue. 3. Take the largest and smallest of the three channels. Their difference drives saturation; which one is largest determines the hue sector. 4. Brightness is simply max, saturation is delta / max, and hue comes from the dominant channel. 5. Clamp anything that falls outside what an sRGB display can show, so the value you copy is the value you get. The converter on this page does all of it as you type, and shows the working underneath.
What is hsl(0 100% 50%) in HSB?
Pure red, hsl(0 100% 50%), is hsb(0 100% 100%) in HSB. There is a table of twenty common colors converted to HSB further up this page.
What is hsl(215.4 92.6% 57.6%) in HSB?
hsl(215.4 92.6% 57.6%) converts to hsb(215.4 81% 96.9%). It is a dodger blue, and you can paste any other value into the field at the top of the page to convert it.
Is HSL to HSB conversion lossless?
Within sRGB, yes — converting to HSB and back returns the value you started with. The only rounding happens when a component is written out to a fixed number of decimal places.
Can I use HSB directly in CSS?
Not directly — CSS has no HSB function. Convert to HEX, RGB or OKLCH for the stylesheet and keep the HSB value for your design tool.
Does this HSL to HSB converter support transparency?
Alpha is preserved wherever the target notation can carry it — eight-digit hex, rgb() / a, hsl() / a and the modern CSS spaces all round-trip an alpha channel. CMYK has no alpha, so it is dropped there.
Is my color data sent anywhere?
No. Every conversion on this site runs in your browser with no network request, no account and no analytics. You can disconnect and it keeps working.