RGBA to HWB Converter

Enter RGBA values and instantly get the equivalent HWB color with a live preview swatch.

Use the RGBA to HWB Converter

RGBA Input

Color Preview

rgba(99, 149, 237, 1)

HWB Output

Hue

218°

Whiteness

39%

Blackness

7%

CSS hwb()

hwb(218 39% 7%)

CSS hwb() with alpha

hwb(218 39% 7% / 1)

Summary

This tool converts RGBA color values — red, green, blue (each 0-255) and alpha (0-1) — into their HWB equivalents: hue (0-360°), whiteness (0-100%), and blackness (0-100%). HWB is a CSS Color Level 4 format designed to be intuitive: mix a pure hue with white and black. Conversion runs entirely in your browser with a live swatch updating in real time.

How it works

  1. Enter the Red value (0 to 255) in the R field.
  2. Enter the Green value (0 to 255) in the G field.
  3. Enter the Blue value (0 to 255) in the B field.
  4. Enter the Alpha value (0 to 1) in the A field.
  5. The HWB output and color preview update instantly.
  6. Click any Copy button to copy the individual value or the full CSS string.

Use cases

  • Convert design-tool RGBA colors into CSS HWB variables for modern stylesheets.
  • Create lighter or darker tints by adjusting whiteness and blackness.
  • Understand the white and black content of any color at a glance.
  • Translate colors from image editors into CSS Color Level 4 HWB format.
  • Compare hue relationships between colors in a more intuitive color model.
  • Generate hwb() and hwba() CSS strings directly from RGBA inputs.

Frequently Asked Questions

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