HWB to RGB Converter

Enter HWB values and instantly get the RGB color with a live preview swatch and step-by-step conversion breakdown.

Use the HWB to RGB Converter

HWB Input

210°
10%
20%
Or pick a color to auto-fill HWB
rgb(26, 115, 204)

RGB Output

rgb(26, 115, 204)
Red 26 0–255
Green 115 0–255
Blue 204 0–255

Conversion Steps

Follow the math — each intermediate value is shown below.

Copied!

Summary

This tool converts HWB (Hue, Whiteness, Blackness) color values to the RGB format used in CSS and design applications. Adjust the hue angle (0–360°), whiteness (0–100%), and blackness (0–100%) sliders or type values directly. The tool shows the resulting rgb() string alongside a live color swatch, and breaks down every intermediate calculation step so you can follow the math.

How it works

  1. Set the Hue (0–360°), Whiteness (0–100%), and Blackness (0–100%) using sliders or number inputs.
  2. If Whiteness + Blackness >= 100%, both are normalized proportionally to sum to 100% (producing a gray).
  3. The pure-hue RGB components are derived from the hue angle using the HWB algorithm.
  4. Each component is scaled by (1 − W − B) and whiteness is added, yielding the final R, G, B values (0–255).
  5. The Conversion Steps panel shows every intermediate value in the calculation.
  6. Click Copy RGB or Copy CSS to copy the result to your clipboard.

Use cases

  • Convert CSS hwb() values to rgb() for tools that do not support CSS Color Level 4.
  • Understand the HWB color model by inspecting each intermediate conversion step.
  • Build color palettes by tinting (adding whiteness) or shading (adding blackness) a hue.
  • Validate HWB-to-RGB output during frontend or design-tool development.
  • Translate design tokens expressed in HWB to RGB for game engines or image editors.
  • Learn how whiteness and blackness parameters affect the final RGB channels.
  • Cross-check color values between design tools that use different color spaces.
  • Generate RGB values for brand palette swatches defined with HWB.

Frequently Asked Questions

Last updated: 2026-05-28 · Reviewed by Nham Vu