CSS HWB Color Generator - Online Whiteness/Blackness Picker
Interactively create colors in HWB space and get the CSS hwb() function. Simplifies tint/shade workflows. Live preview.
UD5 Toolkit
Hue · Whiteness · Blackness — Intuitive color mixing model
Preview
🎯 Preset Colors:
HWB stands for Hue-Whiteness-Blackness, a cylindrical-coordinate color model introduced by Alvy Ray Smith in 1996. It describes colors by their hue angle (0–360°), the amount of white mixed in (0–100%), and the amount of black mixed in (0–100%). The key constraint is that W + B ≤ 100%. HWB is considered more intuitive than HSL or HSV because it mirrors how artists physically mix paint — adding white to tint or black to shade a pure hue.
While HSL uses Saturation and Lightness, and HSV uses Saturation and Value (Brightness), HWB uses Whiteness and Blackness directly. This makes HWB much more intuitive: you start with a pure hue, then add white to lighten it or black to darken it. In HSL, adjusting lightness affects both white and black content simultaneously, which can be less predictable. HWB separates these two mixing operations cleanly.
When W + B exceeds 100%, the color becomes physically meaningless — you'd be adding more white and black than the total color can contain. In standard HWB, if W + B > 100%, the values are typically normalized proportionally so that W + B = 100%. The resulting color lies on the grayscale diagonal between pure white and pure black. Our tool automatically handles this normalization for you.
Yes! CSS Color Level 4 introduced the hwb() function. You can write color: hwb(210 20% 30%); in modern browsers (Chrome 101+, Firefox 96+, Safari 15.4+). This means HWB can be used directly in your stylesheets without manual conversion. Our tool generates ready-to-use hwb() CSS syntax for you.
The conversion works in two steps: First, the hue angle is converted to a fully-saturated RGB color (like HSL with S=100%, L=50%). Then, the RGB values are blended with white and black: Result = saturatedRGB × (1−W−B) + White × W + Black × B. Since white is (1,1,1) and black is (0,0,0) in normalized RGB, the formula simplifies. Our tool performs all conversions in real-time and displays HEX, RGB, HSL, and HWB formats simultaneously.
HWB is particularly advantageous for designers and artists because it matches the natural mental model of color mixing. It's excellent for generating tints (add white), shades (add black), and tones (add both). The model also makes it trivial to find grayscale equivalents — any color where W + B = 100% is a pure gray. This intuitive approach reduces the guesswork in color palette creation.
Start by selecting a hue using the rainbow slider at the top. Then, use the triangular 2D panel to visually explore whiteness and blackness combinations. The diagonal edge of the triangle represents pure grays. Click and drag within the triangle to see real-time color changes. You can also fine-tune values using the W and B sliders or number inputs. Paste any HEX code to load an existing color and see its HWB breakdown. Click the copy buttons to grab any format for your project.
In the HWB model, when W + B = 100%, the resulting color is always a neutral gray. The shade of gray is determined by the ratio of W to B: more white yields lighter grays, more black yields darker grays. When W + B < 100%, the color retains chromaticity from the hue. This makes HWB uniquely suited for understanding and controlling color saturation in an intuitive way.
Interactively create colors in HWB space and get the CSS hwb() function. Simplifies tint/shade workflows. Live preview.
Pick colors from a palette or use the eye dropper to sample colors from your screen. Converts between HEX, RGB, HSL. An essential tool for designers.
Type a CSS color name like 'tomato' or 'mediumseagreen' and instantly get its hex code and preview. Complete named colors list.
Select colors in the OKLCH space with lightness, chroma, and hue. Convert to hex, RGB, and CSS oklch(). Perceptually uniform gradients.
Classic HSV color wheel with sliders. See hex, RGB, and HSL equivalents. Intuitive for artists. No server interaction.
Enter color in any CSS format and see all other representations. Live preview. Swatch history.
Use the light‑dark() CSS function to change colors based on color scheme. Build a simple dark mode toggle with one property.
Use <input type='color'> and see its change events and value in hex. Understand the native color picker. Quick demo.
Choose a base color and see its complementary, split‑complementary, triadic, and tetradic harmonies. Copy palettes. Local.
Grid of all 148 named CSS colors. Hover to see detail, click to copy the name or hex. Essential frontend reference.
Test the upcoming contrast‑color() CSS function. Get white or black automatically for a given background. See it live.
Use the browser's native eyedropper tool to pick any color from the screen. Shows zoomed preview. Quick and easy.
See the Pantone Colors of the Year and popular palettes from past years. Get hex codes. Design inspiration.
A complete, searchable list of all 140+ named HTML/CSS colors with their hex codes and color previews. Click to copy code. Essential web reference.
Paste a stylesheet and extract every unique color (hex, rgb, hsl) into a palette. Swatches displayed. Copy as JSON.
Convert RGB and RGBA color values to their HEX or HEX+alpha representation. Live preview and copy CSS color strings instantly.
Find the official name of any hex color from the extended color dictionary. Search by name to get the hex code. Handy for CSS and design language.
Set a custom accent color for checkboxes, radios, range, and progress. See the browser’s rendering. Copy the CSS.
Enter HSL values and get the exact RGB representation. Also shows hex. For fine‑tuning design tokens. Client‑side.
Test if your display supports HDR colors by rendering a gradient in Rec.2020 space. See what you're missing. Canvas based.
Select a color and see which cocktails match it roughly. Blue for Blue Lagoon, red for Negroni. Fun bar guide.
Enter a color palette and see how it looks for different types of color vision deficiency. Get warnings on conflicting colors.
Enter a Kelvin value (1000‑40000) and see the approximate white‑balance color. Photography and lighting reference.
Write modern CSS color functions like oklch(), lab(), hwb() and see the rendered color with fallback. Copy compatible code.
Paste body text and test different font/background combos. See an actual passage rendered, not just a ratio. True feel for legibility.
Dynamically blend two colors using the CSS color‑mix() function in different color spaces. Copy the exact CSS snippet. No JS required.
Select emotions (calm, energetic, sad) and generate a harmonious color palette that reflects the mood.
Generate a range of tints and shades from a single hex color. Ideal for data visualization, UI design systems, and Tailwind custom palette creation. Local tool.
Paste hex colors, generate a contrast matrix against each other. Identify failing pairs for WCAG.
Input RGB values and see the HSL equivalent with a color preview. Understand lightness and saturation. Local.