HWB to RGB Converter

Convert HWB to RGB

Convert HWB values like hwb(188 13% 7%) into CSS rgb(34, 211, 238)—fast, private, and right in your browser.

  • Paste a single HWB color or a whole palette
  • Use one color per line for batch conversion
  • Copy your RGB results instantly

Quick start

  1. Paste your HWB color(s) into the input.
  2. Use one color per line.
  3. Copy the RGB results.

Single color

Input:

hwb(188 13% 7%)

Output:

rgb(34, 211, 238)

Palette / batch conversion

Input:

hwb(340 0% 0%)
hwb(188 13% 7%)
hwb(221 7% 85%)

Output:

rgb(255, 0, 85)
rgb(34, 211, 238)
rgb(17, 24, 39)

Small rounding differences are normal. RGB channels are integers, so conversion may round degrees and percentages.


What HWB means (Hue, Whiteness, Blackness)

HWB represents color using:

  • Hue (H): the base color around a wheel (0–360°)
  • Whiteness (W): how much white is mixed in (0–100%)
  • Blackness (B): how much black is mixed in (0–100%)

A useful mental model:

  • Hue picks the “color family.”
  • Increasing Whiteness creates a tint (lighter).
  • Increasing Blackness creates a shade (darker).

This makes HWB a friendly format for building tints/shades and UI states.


What RGB means

RGB stands for Red, Green, Blue—the three light channels used by screens.

  • Each channel is an integer from 0 to 255.
  • rgb(0, 0, 0) is black.
  • rgb(255, 255, 255) is white.

RGB is especially useful when you need:

  • color math (mixing, interpolation, gradients)
  • canvas / image processing values
  • programmatic theme generation

How HWB → RGB conversion works

Conceptually, the converter does this for each line:

  1. Read Hue (degrees), Whiteness (%), Blackness (%)
  2. Convert those values into RGB channels (0–255)
  3. Format the result as rgb(r, g, b)

A practical rule:

  • HWB is great for editing (“more white / more black”)
  • RGB is great for output (CSS, code, pixels)

Common mistakes (and quick fixes)

Extra spaces at the start/end of a line

Leading and trailing spaces are ignored.

hwb(188 13% 7%)

🚫 hwb(188 13% 7%)

Missing % signs for W and B

Whiteness and Blackness are percentages:

hwb(221 7% 85%)

🚫 hwb(221 7 85)

Hue outside 0–360

Keep Hue within a normal degree range:

hwb(340 0% 0%)

🚫 hwb(420 0% 0%)

W + B too large

In HWB, Whiteness + Blackness should not exceed 100% for a normal color.

hwb(188 13% 7%)

🚫 hwb(188 70% 50%)

If W + B is over 100%, many systems clamp/normalize the values, which can produce unexpected results.


Practical uses

  • Convert HWB tweaks into real RGB values for CSS or code
  • Generate UI states by adjusting Whiteness/Blackness, then export as RGB
  • Build predictable tints/shades from a base hue
  • Work with canvas/WebGL where numeric channel values are convenient

If you like editing colors by “add white / add black,” HWB is a great place to design the look—then RGB is a clean output for CSS and programmatic usage.

Frequently Asked Questions

Use hwb(h w% b%) where Hue is degrees (0–360) and Whiteness/Blackness are percentages (0–100%). Paste one color per line for batch conversion.

This converter outputs CSS-style RGB in the form rgb(r, g, b) with integer channels from 0 to 255.

Yes. Paste one HWB value per line and you’ll get one RGB result per line.

No—this variant outputs opaque RGB (rgb(...)) only. If you need alpha conversion, use the full Color Converter tool.

Each line must be a valid hwb(…) string. Leading and trailing spaces are ignored.

Try one of our format-specific converters below

Explore Our Tools

Read More From Our Blog