HWB to HEX
Convert HWB to HEX for free, online. Type a CSS hwb() value or just three numbers for hue, whiteness and blackness, and get the six-digit HEX code that design tools, email templates and older software expect. It all runs in your browser.
How to turn hwb() into a HEX code
- 1Type hwb(200 30% 20%) or just 200 30 20 into "Color"
- 2The HEX code appears at once in the big line
- 3Copy it with the button next to it
- A HEX code such as #4DA2CC
Why use this page
- Plain numbers work.On this page three bare numbers are read as hue, whiteness and blackness
- Errors are named.Whiteness above 100 gets the message "W runs from 0 to 100." instead of a wrong color
- Nothing is sent anywhere.Your browser does the math on your own device
What you can do
- Turn hwb() into HEX, for example hwb(200 30% 20%) into #4DA2CC
- Write the hue in degrees, or with deg, rad, grad or turn, such as hwb(0.5turn 10% 10%)
- Use spaces or commas, with or without the % signs: hwb(200, 30%, 20%) and 200 30 20 give the same result
- Check the color in the swatch, and copy RGB, HSL, OKLCH and the other notations from the list below
- Choose a color with the picker instead, and the field fills with its hwb() value
Good to know
- When whiteness and blackness add up to 100% or more, CSS defines the color as a gray. hwb(0 60% 60%) gives #808080
- HEX has 256 steps per channel, so the color is rounded. The hwb() line in the list then shows the rounded values, such as 30.2% for 30%
- An alpha value after a slash, as in hwb(120 20% 30% / 0.5), is left out. HEX here has no transparency
- Whiteness and blackness run from 0 to 100. Numbers outside that range are not guessed at but shown as an error
Questions
How do I convert HWB to HEX?
Type the hwb() value into the field, or three numbers for hue, whiteness and blackness. The HEX code shows right away. Click the copy button to take it.
Do I have to write the % signs?
No. On this page 200 30 20 is read the same as hwb(200 30% 20%). Whiteness and blackness are always percentages.
Why does my color come out gray?
Whiteness and blackness together reach 100% or more. Then there is no room left for the hue, and CSS makes the color a gray in the ratio of the two.
Is the HEX code exact?
It is the nearest 8-bit color. HWB can hold finer steps than HEX, so a value like 30% comes back as 30.2% when you convert it again.
More tools in Web & code
That page doesn't exist. Search or drop a file below to find the tool you need.
One site for every file job. What’s yours?
Stop hopping between converter sites. Pick from 410+ tools, or a recipe that chains several.
- Files Stay On Your Device
- No watermark
- Works offline
Drop a file here
A pasted file works too.
or search for a tool
Open an app
From “ugh, this file” to done, in three steps.
- Drop it, or pick a task
No file? Search for what you need. Files are processed on your device, not uploaded for processing.
- Pick what you want
Smaller, another format, signed, merged. One click, no settings to study first.
- Make it a recipe
Need three steps in a row every week? Chain them once and run the same recipe next time.
One approved toolbox for the whole team.
In offices, on building sites and in agencies, teams handle sensitive files all day. ToolRecipe gives everyone the same tools and the same recipes, and the files are processed on each person's own computer.
- Files are processed on the employee's device
- Company recipes everyone runs the same way
- One place instead of ten converter sites