TXT · Text & Data tools

RGB to HWB Converter

Active color#000000

rgb(0, 0, 0)

RGB Input
HWB Output
1Active Line0Valid Items
Go To Full Color Converter

Convert standard RGB color definitions into the CSS Color 4 Hue, Whiteness, and Blackness (HWB) format. This tool translates red, green, and blue light channels into a format optimized for tinting and shading.

Input formats

Provide colors using the standard rgb(r, g, b) syntax with channel values ranging from 0 to 255.

HWB output

The output is formatted using the space-separated hwb(h w% b%) syntax. Hue is returned in degrees (0–360), while the whiteness and blackness are returned as percentages. This model allows for simpler tone control by explicitly defining how much white or black is mixed into a pure hue.

Batch processing

Process multiple RGB values simultaneously by pasting them into the input pane, one per line. The output pane generates a corresponding list of HWB values.

Visual adjustments

Use the active color picker to visually preview and tweak the currently selected line. Adjusting the picker automatically recalculates the RGB input and updates the HWB output in real time.

Frequently Asked Questions

CSS rgb() strings like rgb(34, 211, 238), with channels from 0 to 255. Paste one color per line for batch conversion.

A CSS Color 4 model that describes a color as a hue plus how much white and black are mixed in. The form is hwb(h w% b%), for example hwb(188 13% 7%).

CSS Color 4 writes HWB with spaces, like hwb(188 13% 7%), not commas. The hue is in degrees and whiteness and blackness are percentages.

Per the spec they are normalized to their ratio, and the result is a gray. The hue stops affecting the color in that case.

No.

Try one of our format-specific converters below

Full Color Converter tool

Explore Our Tools

Browse all tools