Skip to the color picker
PickShade

HWB to RGB converter

Paste a HWB value, get RGB instantly. Any other format works too.

Read as HWB

RGB valuergb(255 87 51)
RGB to HWB

Every other format

HWB to RGB examples

ColorHWBRGB
hwb(0 0% 0%)rgb(255 0 0)
hwb(120 0% 0%)rgb(0 255 0)
hwb(240 0% 0%)rgb(0 0 255)
hwb(0 100% 0%)rgb(255 255 255)
hwb(0 0% 100%)rgb(0 0 0)
hwb(0 50.2% 49.8%)rgb(128 128 128)
hwb(10.59 20% 0%)rgb(255 87 51)
hwb(217.22 23.14% 3.53%)rgb(59 130 246)
hwb(160.12 6.27% 27.45%)rgb(16 185 129)
hwb(37.69 4.31% 3.92%)rgb(245 158 11)
hwb(258.31 36.08% 3.53%)rgb(139 92 246)
hwb(330.37 28.24% 7.45%)rgb(236 72 153)

About HWB and RGB

HWB describes a color by its hue plus how much white and black are mixed in. It is part of CSS Color 4 and is handy for tints and shades.

RGB sets red, green and blue from 0 to 255. It describes how a screen mixes light and is written as rgb(255 87 51) in modern CSS.

How the conversion works

We read the HWB value, convert it to CIE XYZ with the matrices from the CSS Color 4 specification and then into RGB. Values outside the target gamut are mapped by the CSS Color 4 algorithm, which keeps lightness and hue and reduces chroma.

Questions and answers

How do I convert HWB to RGB?

Paste or type a HWB value into the field above. PickShade converts it with the CSS Color 4 formulas as you type, and one click copies the RGB value.

Is the HWB to RGB conversion exact?

The math is exact and the result is rounded only for display, with enough digits to convert back to the same color. If the color does not fit the target gamut, PickShade warns you and shows the nearest color that fits.

Can I get other formats at the same time?

Yes. Every other format, including OKLCH, Display P3, Tailwind, SwiftUI, Flutter and Android, is listed below the result and copies with one click.

Is this converter free?

Yes. It is free, needs no sign-up and runs entirely in your browser.