Skip to content
Hex Calculator

Hex to HSB Converter

Convert a hex color code into HSB — the hue, saturation, brightness values shown in Photoshop, Illustrator, and Sketch color pickers.

HSB result
hsb(221, 84%, 92%)
Swapnil Sanghvi

Built by

Swapnil Sanghvi

Full-Stack Web Developer & WordPress Developer

Swapnil Sanghvi is a full-stack web and WordPress developer, UI designer, and full-time freelancer who builds and maintains Hex Calculator.

Hex to HSB Converter tool preview card from Hex Calculator
Share preview: this is the card that appears when you share the Hex to HSB Converter page on social media.

Further reading: CSS Colors — W3Schools

How Hex to HSB Conversion Works

HSB describes a color by hue (0-360°), saturation (0-100%), and brightness (0-100%) — the exact terminology and layout used in Photoshop, Illustrator, and Sketch color pickers. Converting from hex decodes the red, green, and blue channels first, then derives hue from the dominant channel and saturation/brightness from how the channels compare to the maximum. If you're reading values off a design tool's color picker and need the matching hex code for CSS, this converts them directly.

Hex to HSB Example, Step by Step

#2563EB = hsb(221, 84%, 92%)

#2563EB (hex) = hsb(221, 84%, 92%)

#2563EB -> rgb(37, 99, 235)

Normalize: R=0.145, G=0.388, B=0.922
Max=0.922 (blue), Min=0.145 (red)

Brightness = Max = 0.922 -> 92%
Saturation = (Max - Min) / Max = 0.843 -> 84%
Hue = 221 (blue-dominant)
StepDescriptionResult
Decode hex to RGB#2563EB -> rgb(37, 99, 235)R=37, G=99, B=235
Normalize channels to 0-1divide each by 2550.145, 0.388, 0.922
Compute brightnessbrightness = the maximum channelB = 92%
Compute saturation and huebased on the spread between max and min channelsS = 84%, H = 221°

If you paste these same numbers into Photoshop's HSB fields, you'll see #2563EB appear as the matching hex value — the tools agree because it's the same underlying math.

Where Hex to HSB Actually Comes Up

Matching a Design File's Color Picker

When a designer hands off HSB values from Photoshop or Illustrator, converting to hex is what gets that exact color into your CSS or app code.

hsb(221, 84%, 92%) source -> #2563EB

Syncing a Design Tool Value Into Code

Copying a color from a Sketch or Illustrator swatch panel often gives you HSB numbers rather than hex — converting bridges that gap for a developer implementing the design.

design tool swatch -> CSS hex

Generating an Interactive State From a Base Color

Adjusting brightness while holding hue and saturation constant is a common way to derive a hover or pressed-state color that still reads as the same base color.

base color, lower B -> hover state

Common Mistakes With Hex to HSB

  • Treating HSB as a different color model from HSV — they're identical, just named differently across tool ecosystems.
  • Confusing HSB's brightness with HSL's lightness — the two use different formulas and rarely match for the same color.
  • Assuming low brightness always means a dark, dull color — saturation and brightness are independent axes.

Why Use This Calculator Instead of Doing It by Hand

  • Matches the exact math Photoshop, Illustrator, and Sketch use internally
  • Runs entirely in your browser — nothing you type gets sent anywhere
  • Shows the RGB intermediate step, useful for understanding or debugging
  • Saves you from the multi-step hue/saturation/brightness formula

Limitations

  • Hue, saturation, and lightness/value are rounded to whole numbers — converting hex to this format and back can land on a slightly different hex value due to that rounding, not a bug in either direction.

Frequently Asked Questions

What does HSB stand for?

Hue (0-360°, position on the color wheel), Saturation (0-100%, how intense the color is), and Brightness (0-100%, how bright the color is at full intensity).

Is HSB the same as HSV?

Yes — HSB and HSV are the exact same color model with identical math. 'Brightness' and 'Value' are just different names for the same third channel, used by different tool ecosystems: Adobe products (Photoshop, Illustrator) say HSB, while CSS and most web tooling say HSV.

What's the HSB value of #2563EB?

hsb(221, 84%, 92%) — the same numbers you'd get from an HSV conversion, since it's the same model.

Where do I find HSB values in design software?

In Photoshop's and Illustrator's color picker, click the HSB radio button next to the sliders — it displays the same hue, saturation, and brightness numbers this tool converts.

Why does this tool have a separate page from Hex to HSV if they're identical?

Design tool users often search for 'HSB' specifically since that's the label their software uses, even though the underlying color math and result are identical to HSV.

How do I match a hex color to what I see in Photoshop's HSB sliders?

Convert the hex value here and enter the resulting H, S, and B numbers directly into Photoshop's HSB fields — they'll produce the exact same color, confirming your code and design file are in sync.

Can I use HSB brightness to create a hover or active state in code?

Yes — lowering the brightness value while keeping hue and saturation fixed is a common way to generate a slightly darker interactive state from a base color, similar to how design tools preview shade variations.