A col mixer (color mixer) blends two sRGB colors at any ratio and returns exact 8-bit HEX and RGB values, with an 11-step gradient preview between the endpoints.
The Color Mixer is useful when you need an intermediate screen color, a gradient stop, or a controlled adjustment between two existing colors. Choose the two endpoints, set their blend ratio, inspect the result, and copy the current HEX value when it looks right.

What the Col Mixer Calculates
Each color is represented by red, green, and blue channel values from 0 to 255. The mixer then applies a direct weighted average to each channel: result = round(A × (1 − ratio) + B × ratio). The ratio is constrained between 0 and 1, and each resulting channel is clamped to the valid 0–255 range before being rounded to a whole number.
This means the slider controls the contribution of each color consistently. At 0%, the result is pure Color A. At 100%, it is pure Color B. At 50%, each channel sits halfway between the two starting values before the final whole-number rounding. The result updates instantly as you move the slider.
The method is called sRGB linear interpolation, but it is important to understand what that means here: it is a direct average of 8-bit screen-color channels. It is not gamma-corrected optical light mixing, and it does not simulate the subtractive behavior of paint or ink.
Supported Color Inputs and Result Formats
The two fields accept several common ways of representing digital color. Input is case-insensitive, extra spaces are ignored, and the leading hash mark is optional. You can also choose colors visually with the native swatch beside either field.
| Input method | Example | Accepted behavior |
|---|---|---|
| Short HEX | #f00 | Three-digit HEX is accepted, with or without the leading hash mark. |
| Full HEX | #3b82f6 | Six-digit HEX values are parsed directly. |
| RGB string | rgb(59, 130, 246) | Spaces and letter casing do not affect parsing. |
| Visual selection | Native color swatch | Click the swatch beside Color A or Color B to pick a color. |
The result panel provides both a lowercase six-digit HEX value and an rgb() string. The gradient bar contains eleven evenly spaced steps, including both endpoints, so you can inspect the transition rather than judging only the final blend.
The Copy button places the current result’s HEX value on the clipboard. It does not copy the entire gradient, and the RGB string remains visible in the result panel rather than being the clipboard output.
Blend Two Colors in Five Steps
- Enter Color A. Open the Color Mixer and type your first color into the Color A field. Use a short HEX value such as #f00, a full HEX value such as #3b82f6, or an rgb() string. Alternatively, click the native swatch to select the color visually.
- Enter Color B. Add the second color to the Color B field using the same formats or visual swatch. Make sure the two fields contain the endpoints you actually want to compare.
- Set the blend ratio. Drag the ratio slider from 0% to 100%. The label shows the current split, such as 70% A / 30% B, so you can reproduce the same position later.
- Inspect the output. Read the mixed color’s HEX and RGB values in the result panel. Use the gradient bar to preview all eleven steps and identify the transition area that best fits your design.
- Copy the result. When the current blend is correct, click Copy to place its HEX value on your clipboard.
To collect several gradient stops, move the slider to each position you want, inspect the corresponding HEX value, and copy it before adjusting the ratio again. The gradient itself is a visual preview; the Copy control produces the current result hex. For more focused guidance on this control, see using the ratio slider for precise color blends.
A Worked Blend at 50 Percent
For Color A = #ff0000 with channels (255, 0, 0), Color B = #0000ff with channels (0, 0, 255), and a ratio of 0.5, the calculation is R = round(255 × 0.5 + 0 × 0.5) = 128; G = round(0 × 0.5 + 0 × 0.5) = 0; B = round(0 × 0.5 + 255 × 0.5) = 128. The combined output is rgb(128, 0, 128), displayed as #800080.
This clean magenta follows from averaging digital red and blue channel values. It is the expected outcome for screen-light interpolation and should not be interpreted as a prediction of red and blue paint mixed on a palette.
Screen Color Versus Physical Pigment
This mixer is suited to colors that will appear on a website, in an app, or in another screen-based interface. Its direct channel averaging follows the same general approach used for CSS gradients, digital design tools, and UI systems. That makes the output appropriate for an on-screen palette, an icon, a chart series, or a CSS color value.
| Work context | What the mixer provides | Practical decision |
|---|---|---|
| Website or app interface | A blended 8-bit sRGB color | Use it for on-screen interface and brand-color variations. |
| CSS gradient | Intermediate digital color values | Use selected results as gradient stops and check them in context. |
| Chart palette | Repeatable steps between two colors | Record the ratio and resulting values for consistent series colors. |
| Acrylic, paint, or printer ink | Screen-light interpolation only | Do not treat the result as a physical pigment-mixing prediction. |
Physical paint combines pigments subtractively, so the result can differ substantially from an averaged screen color. The mixer also does not provide gamma-corrected optical light mixing. Use it when the target is a digital color, and use physical samples or a dedicated print workflow when the final result depends on real pigments, paper, ink, or a printing process.
Where Mixed Colors Are Useful
A precise blend can solve several small but consequential design tasks without altering the source colors. Choose the operation based on the color you need:
- Create an intermediate brand color. Place two related brand colors in the fields and use the ratio slider to nudge one toward the other without replacing either endpoint.
- Find a midpoint tint or shade. Set white or black as one endpoint and the original color as the other. A 50% ratio gives the direct channel midpoint between them.
- Select gradient stops. Move the ratio until the preview reaches the desired transition point, then copy that result’s HEX value for use in a digital gradient.
- Build a chart palette. Sample intermediate colors from a controlled pair of endpoints. The visible ratio label and exact RGB output make each selection easier to reproduce.
- Explore a transition quickly. Use the eleven-step gradient to compare evenly spaced results at a glance before deciding which value belongs in the final design.
The displayed RGB string is useful when a project expects channel values rather than a HEX token, while the copied HEX value is ready for a stylesheet or design system. Because the output is calculated from whole sRGB channels, you can compare it consistently across repeated blends instead of estimating values from a swatch.
Make Results Reproducible and Copyable
A reliable handoff should record four details: the original Color A value, the original Color B value, the ratio split, and the resulting HEX or RGB output. The ratio label supplies the exact percentage needed to reproduce the blend, while the result panel preserves the precise value that was selected.
All parsing, interpolation, and display happen locally in your browser. Color values and inputs are not uploaded to a server, and the tool requires no sign-up. There are also no usage limits, so you can compare multiple pairs, collect gradient stops, or revise a blend without managing an account.
The Color Mixer is therefore best understood as a precise sRGB blending utility: enter two colors, choose their contribution, inspect the full transition, and copy the exact digital result you need.