Color Palette Generator
Generate complementary, analogous and triadic palettes from one colour.
Convert to and from HWB, the hue-whiteness-blackness notation.
The hwb() value appears here
The HWB Color Converter moves between HWB — hue plus how much white and black are mixed in — and the usual notations, with sliders for all three components and the greying rule that catches people out made visible.
HWB describes a colour the way someone mixing paint would: start with a pure hue, then say how much white and how much black you have stirred into it. It has been valid CSS since Color 4 and is supported everywhere, but it is still the least used of the notations.
It is worth knowing because it maps onto an intuition that HSL does not. Tints, shades and tones are exactly what the two numbers control: raise whiteness for a tint, raise blackness for a shade, raise both for a muted tone. Doing the same in HSL means moving saturation and lightness together in a way that is not obvious.
The converter runs both ways with sliders for all three components, and shows what happens when whiteness and blackness add up to more than 100% — the hue drops out entirely and you get a grey in proportion to the two, which is a rule people trip over.
Raise whiteness for a tint, blackness for a shade, both for a tone — one number each, rather than moving two in HSL.
When whiteness and blackness exceed 100% the hue drops out entirely. The tool shows it happening rather than leaving you puzzled.
Paste any colour to see its HWB components, or build one from the sliders.
hwb() works in every current browser, and the HEX conversion is here as the fallback.
A large swatch, because three percentages tell you very little on their own.
Drag the sliders, or paste an hwb() string.
HEX, RGB and HSL are produced alongside, with a live swatch.
Paste a HEX or RGB colour and its HWB components are worked out.
Raise whiteness alone for a tint, blackness alone for a shade, both for a tone.
The hue is ignored and the result is a grey, mixed in the ratio of the two values. hwb(200 60% 60%) is exactly the same grey as hwb(20 60% 60%).
Yes. Every current browser has supported hwb() since 2022. If you need to support older versions, the HEX conversion here is the fallback.
They are two views of the same solid. Whiteness is 1 minus saturation scaled by value, and blackness is 1 minus value. HWB is simply the more intuitive way of writing it.
When you are building tints and shades of a fixed hue. "40% white" is a clearer instruction than "raise lightness to 70% and drop saturation to 60%", and it is one number rather than two.
What people who use the HWB Color Converter think of it. Reviews come from visitors and are posted as written.
No ratings yet
Yours would be the first.
0 reviews
Newest first
No reviews yet
Be the first to rate the HWB Color Converter. It takes half a minute and no account.
Write the first reviewGenerate complementary, analogous and triadic palettes from one colour.
Check whether a colour code is valid, and fix it if not.
Build a moving gradient background with the keyframes included.
Score every colour in a palette against every other one.
Build a whole palette from one hue, and nothing else.
Work out the solid colour a translucent layer really produces.
Convert CIELAB to HEX and RGB, and measure ΔE between colours.
Turn one colour into a full 50–950 Tailwind scale.