Color Mixer
Blend two colors and see every step in between. Choose how many steps, mix in RGB or HSL color space, click any step to copy its HEX, and copy a two-endpoint CSS gradient.
Gradient CSS
How Color Mixing Works in the Browser
Mixing two colors means moving step by step from one to the other through a color space. At each step the tool interpolates between the start and end values; at 50% you get the midpoint in the selected color space — the "average" of the two colors. The displayed steps are rounded to 8-bit HEX. The copied CSS uses only the two endpoint colors: it does not export the displayed steps or preserve HSL interpolation. CSS interpolation can depend on the syntax and browser.
RGB vs HSL Mixing — Why the Result Differs
The color space you blend in changes the path between two colors:
- RGB interpolates the red, green, and blue channels directly. It interpolates encoded sRGB channels rather than linear-light values, but mixing two vivid colors can pass through a muddy gray in the middle.
- HSL interpolates hue, saturation, and lightness. Because it rotates around the color wheel, the midpoints stay vivid and often travel through intermediate hues — great for rainbow-like ramps, though it can take an unexpected route around the wheel.
Practical Uses for a Color Blend
- Data visualisation — generate evenly spaced colors for charts, heatmaps, and categorical legends.
- Gradient stops — pull intermediate HEX values to hand-tune a multi-stop gradient.
- Brand transitions — find the colors that sit between two brand hues for badges, states, or theming.
- Finding a midpoint — blend a light and dark version of a color to get a balanced mid-tone.
Tips for Better Blends
If an RGB blend looks dull in the middle, switch to HSL for more vivid midpoints. Widely separated lightness values can help, but do not guarantee accessible steps. Check the actual pairings and avoid encoding meaning through color alone. And remember that more steps means smaller color differences — 5–9 steps is usually enough for a readable scale, while 12–15 suits smooth gradient sampling.