hwb() functional notation expresses an sRGB color according to its hue, whiteness, and blackness. An optional alpha component represents the color's transparency.
hwb(194 0% 0%) /* #00c3ff */ hwb(194 0% 0% / .5) /* #00c3ff with 50% opacity */
hwb(H W B[ / A])
Each as a
<percentage>or the keyword
none, which represent whiteness and blackness, respectively. They specify the amount of white and black to mix in, from
0%(no whiteness or blackness) to
100%(full whiteness or blackness).
W + B = 100%, it defines some shade of gray. If
W + B > 100%,
Bare effectively normalized as
W / (W + B)and
B / (W + B), respectively.
<alpha-value>or the keyword
none, where the number
Note: This functional notation serializes to sRGB values, and the values of the red, green, blue components may be rounded in serialization.
Note: See Missing color components for the effect of
|CSS Color Module Level 4 |
BCD tables only load in the browser