Convert Hex to CSS HWB
Turn any Hex color into W3C CSS Color 4 hwb(Hue Whiteness% Blackness%) for intuitive painterly tint and shade adjustments.
0 bytes sent
- 100% browser-local
- Zero server transfers
- CSS Color 4 precision
or drop a color string, CSS/JSON snippet, or file here · Ctrl V to paste · Paste Hex, RGB, HSL, OKLCH or use Screen Eyedropper
Instant Before & After Specimen
CSS Color 4 Hue-Whiteness-Blackness#2563EBhwb(221.2 14.5% 7.8%)| Property | Source: HEX | Target: HWB |
|---|---|---|
| Gamut scope | sRGB (Standard Web) | sRGB (Standard Web) |
| Perceptual uniformity | No | No |
| Alpha channel support | Yes | Yes |
| Human readability | Medium | High |
| Extension / Token | .css / .txt | .css |
| Best for | Compact copy-paste handoff in sRGB brand guidelines and legacy CSS | Painterly tint-and-shade thinking by adding white and black directly to pure hues |
How to use Hex to HWB
Hex to HWB — cleanly inside your local browser with zero server transfers.
- Enter or pick a colorType Hex, RGB, HSL, OKLCH, or Lab — or click Screen Eyedropper and live sliders.
- Inspect math & gamutReview exact CSS Color 4 readouts, sRGB vs Display P3 status, and profile options.
- Copy, chain, or exportCopy ready CSS/JSON snippets, download binary swatch files, or pipe directly to related Colr tools.
Frequently asked questions
What happens when Whiteness + Blackness exceeds 100%?
CSS Color 4 normalizes W and B proportionally, turning the output into a neutral shade of gray.
Is Hex <-> HWB conversion completely lossless?
Yes — both coordinate systems span the exact same sRGB cube.