W3C CSS4 HEX to HWB Converter
Convert HEX to HWB (Hue, Whiteness, Blackness) for CSS Color Level 4. Get the hwb() function, channel percentages and a live swatch in your browser.
Input
Result
217.2°23.1%3.5%hwb(217.2 23.1% 3.5%)Technical Specification & Mathematical Principles
How the HEX to HWB Converter Works
HWB describes a color as a pure hue mixed with white and black. From normalized RGB values, whiteness is the minimum channel, W = min(R, G, B), and blackness is B = 1 - max(R, G, B). Hue is identical to HSL and HSV hue: the angle of the dominant channel on the color wheel.
In CSS Color Level 4 the color is written hwb(H W% B%). When W + B is 100% or more, the color is an achromatic gray equal to W / (W + B). HWB is popular because designers think intuitively about tinting with white and shading with black.
Frequently Asked Questions
What does hwb() look like in CSS?
Is HWB supported in browsers?
How does HWB relate to HSV?
Related Design & Color Instruments
HWB to HEX Converter
Convert HWB (Hue, Whiteness, Blackness) values to a HEX color code. Follows the CSS Color Level 4 algorithm, including gray normalization when W plus B is 100%.
HEX to HSL Converter
Convert hexadecimal color codes to CSS HSL and HSLA cylindrical coordinates with step-by-step algebraic formula breakdowns.
HEX to HSV Converter
Convert hex strings to cylindrical cone coordinates: Hue (0-360), Saturation (0-100%), and Value/Brightness (0-100%).
HEX to RGB Converter
Convert hexadecimal web color strings (#RRGGBB) to decimal integer rgb(r, g, b) tuples instantly.