TXT · Text & Data tools

HWB to HEX Converter

Active color#000000

hwb(0 0% 100%)

HWB Input
Hex Output
1Active Line0Valid Items
Go To Full Color Converter

Convert HWB strings into 6-digit hexadecimal color codes. Paste an HWB value into the text area to instantly generate the precise hex code for CSS and design tools.

HWB input

The tool reads space-separated CSS Color 4 hwb(h w% b%) inputs. It requires a hue in degrees and whiteness and blackness as percentages. If the combined whiteness and blackness exceed 100%, the converter normalizes their ratio into a neutral gray, naturally dropping the hue’s effect.

HEX output

The converted color is formatted as an uppercase, 6-digit #RRGGBB hex code. The mathematical conversion routes through integer RGB channels, so the resulting hex is rounded to the exact 0 to 255 screen coordinates. Click the copy action to quickly export your result.

Batch conversion

Process multiple HWB strings simultaneously by adding one color per line. The output panel mirrors your exact line structure, replacing valid HWB lines with hex codes. Unrecognized text will be flagged with an error string so you can fix invalid inputs.

Visual color picker

The interface features an active color picker that syncs to the line your text cursor is currently on. Changing the color via the picker will automatically rewrite the HWB text on that specific line to match the new selection.

Frequently Asked Questions

CSS Color 4 hwb(h w% b%), space-separated: hue in degrees (0–360), whiteness and blackness as percentages. Paste one color per line for batch conversion.

The 6-digit form #RRGGBB in uppercase, for example #22D3EE.

They are normalized to their ratio and the result is a gray hex code. The hue has no effect in that case.

HWB converts through integer RGB channels, so a hex code converted back to HWB can shift by one step. The visible difference is negligible.

No.

Try one of our format-specific converters below

Full Color Converter tool

Explore Our Tools

Browse all tools