Before mixing two HEX colors, confirm that you want a digital sRGB blend, because the result is a rounded per-channel average of the two 8-bit color values—not a simulation of paint, ink, or optically mixed light.
For websites, apps, icons, charts, and interface palettes, this is the relevant model: it treats the colors as screen values and lets you choose where the blend sits between two endpoints. It will not tell you how acrylics, dye, or printer ink will behave on paper.

Confirm that a screen blend fits your task
A HEX color represents red, green, and blue channel values. The Color Mixer blends each channel independently, so changing the ratio changes the output in a predictable way. The tool calls this simple sRGB linear interpolation, but it is important to understand that it performs a straight weighted average on stored 8-bit sRGB values. It does not convert them into linear-light values or apply optical color correction.
| Task | What the tool represents | What to do |
|---|---|---|
| Website, app, or interface color | A digital intermediate between two endpoint colors | Set the ratio, inspect the result, and test it in the intended interface. |
| Chart palette or gradient stop | A selected point along the color transition | Use the gradient to locate a useful intermediate and copy the exact result. |
| Acrylic, dye, or printer ink | No physical pigment or paper prediction | Treat the screen result only as a starting reference and validate it in the target process. |
This distinction matters most with strongly saturated colors. A screen blend can produce a clean digital intermediate even when the same pigments would create a duller physical mixture.
Check the format of both color inputs
The Color Mixer accepts two color inputs in several practical formats. The same rules apply to the Color A and Color B fields.
| Entry method | Example | What to know |
|---|---|---|
| Short HEX | #f00 | Accepted directly in either color field. |
| Full HEX | #3b82f6 | Accepted directly in either color field. |
| RGB string | rgb(59, 130, 246) | Accepted in the documented rgb() format. |
| Visual swatch | Click beside a field | Opens the color picker so you can select a color visually. |
Input is case-insensitive, extra spaces are ignored, and the leading hash mark is optional. If you know the general color but not its code, use the swatch beside the appropriate field; if you already have a value, typing it directly is usually more precise.
For a valid mix, the result panel supplies both a lowercase six-digit HEX value and an rgb() string. The documented output does not expose an alpha channel, so plan on an opaque result when your project requires a six-digit HEX color. Use the RGB representation when your code specifically expects that format.
Understand what the ratio changes
The ratio slider determines the weight assigned to each endpoint. At 0%, the result is pure Color A; at 100%, it is pure Color B. At 50%, the output is the midpoint of the two colors’ channel values. The displayed label makes the split explicit—for example, 70% A / 30% B—so you can record the exact setting used.
A 50% blend is mathematically exact, but it is not automatically the most useful design choice. Moving closer to one endpoint can produce a subtler intermediate, while moving farther toward the other creates a stronger shift. Because the result updates as the slider moves, compare several nearby positions before copying a value.
Treat the ratio as part of the recipe. The endpoint colors alone do not describe the final blend; you need Color A, Color B, and the selected ratio to reproduce it.
Mix two HEX colors step by step
- Enter the first color in the Color A field. Use a short HEX value such as #f00, a full HEX value such as #3b82f6, an rgb() string, or the swatch to choose the color visually.
- Enter the second color in the Color B field using the same supported methods.
- Drag the ratio slider to the required split. Remember that 0% is pure Color A, 100% is pure Color B, and 50% is the channel midpoint. Check the ratio label before continuing.
- Read the mixed color in the result panel. Confirm the displayed HEX and RGB values, then use the gradient bar to preview the transition between both endpoints.
- Click Copy to place the result HEX on your clipboard. Use the displayed rgb() value instead if that is the format required by your project.
Inspect the full transition before choosing a stop
The gradient bar contains eleven evenly spaced preview steps, including both endpoint colors. It provides a quick view of the whole transition rather than showing only the result at the current slider position. Look across the bar to see whether the midpoint, a step near it, or one of the endpoint-weighted positions produces the intermediate you need.
This is especially useful when creating a scale of related colors. A mathematical blend may be correct while still being too close to one side of the transition. Adjust the ratio, compare the preview, and use the result panel to obtain the exact value for the stop you choose.
For reproducible work, save three pieces of information alongside the design: the original Color A value, the original Color B value, and the final ratio label. The selected HEX or RGB output completes that record.
Read the interpolation formula without overinterpreting it
The blending rule is result = round(A × (1 − ratio) + B × ratio). It is applied separately to the red, green, and blue channels. Internally, the ratio is constrained to the range from 0 to 1, channel values are clamped to the valid 0–255 range, and the final channel values are rounded to integers.
For one worked example, combine #ff0000, whose channels are 255, 0, and 0, with #0000ff, whose channels are 0, 0, and 255 at a 50% ratio, or 0.5:
Red = round(255 × 0.5 + 0 × 0.5) = 128 Green = round(0 × 0.5 + 0 × 0.5) = 0 Blue = round(0 × 0.5 + 255 × 0.5) = 128
The result is rgb(128, 0, 128), or #800080, a clean magenta on screen. Real red and blue paint may instead produce a muddy dark purple or brown. That difference is not an error in the tool; it reflects the difference between averaging screen-light values and combining subtractive pigments.
The formula guarantees a direct channel midpoint, not a gamma-corrected optical mixture or a perceptually balanced color. Use it to create digital transitions, nudge one screen color toward another, or build intermediate palette values without treating the output as a physical paint recipe.
Verify the result in its final context
After choosing a ratio, compare the displayed HEX and RGB values to make sure they describe the color you expected. Then copy the HEX value into the stylesheet, design system, chart configuration, icon, or other destination where it will be used.
Check the color in its actual context rather than judging it only in the result panel. If it will serve as text or a background, perform a separate contrast check because channel interpolation does not establish readability. If the final output will be printed, validate it through the relevant ink or pigment process rather than assuming the screen blend will reproduce accurately.
Know what stays on your device
The Color Mixer performs all color calculations locally in your browser. Your color inputs and values are not uploaded to a server, and the tool requires no sign-up. There are also no usage limits, so you can repeat the workflow while refining a palette, testing gradient stops, or checking several blend ratios.
Run a final pre-use check
- Confirm that you need a digital sRGB blend rather than a physical paint or ink prediction.
- Prepare both endpoint colors in a supported HEX or rgb() format.
- Confirm that 0% means pure Color A and 100% means pure Color B.
- Inspect the eleven-step gradient and record the ratio you selected.
- Copy the exact result HEX and verify it in the final application.
Related reading: Convert Hex to RGB JavaScript: Strict CSS Parsing.
Related reading: Does RGB to HEX Work With RGB Inputs?.