sRGB
Useful when you specifically want behavior associated with the standard sRGB color space.
color-mix(in srgb, red, blue)
Mix two or more colors with exact ratios. Switch the mixing space to see how the result changes, then copy the codes or a full gradient.
Up to 8 colors. Weights are relative, so they do not need to add up to 100.
Gradient steps from A to B
Click a step to copy its HEX code.
Mix two colors online and explore the resulting shade with precise color percentages. Experiment with HEX colors, blending ratios, color spaces and modern CSS color-mix() workflows.
A Color Mixer combines two colors according to selected proportions and produces a new blended color. The result can vary depending on the color space used for interpolation, so the same two source colors can produce different-looking results in different mixing spaces.
A color mixer is an online tool for combining two colors to create a new color. You can think of it as a digital version of mixing paint, except digital color mixing works with numerical color values and mathematical interpolation rather than physical pigments.
A typical color mixer starts with two source colors. You can enter their HEX values, choose a mixing ratio and generate the resulting color. For example, mixing a blue color with a red color can produce a purple family result, while mixing a strong color with white can create a lighter tint.
Modern web color tools can go further by allowing the interpolation
color space to be selected. CSS's color-mix() function
supports mixing colors in spaces including sRGB, HSL, Lab, OKLab and
OKLCH. :chatgpt-content-reference{index="1"}
When two digital colors are mixed, their channel or color-space coordinates are interpolated according to the selected mixing method. A 50/50 mix gives both source colors equal weight, while a 70/30 mix gives the first color more influence over the resulting color.
The mixing ratio controls how strongly each source color contributes to the result. If both colors are assigned equal percentages, each receives 50% of the mix. If Color A receives 80% and Color B receives 20%, the resulting color is much closer to Color A.
CSS color-mix() accepts optional percentages for each
color. When both percentages are omitted, the colors are mixed
equally. When only one percentage is specified, the other color is
normalized to the remaining percentage. :chatgpt-content-reference{index="2"}
Color mixing is not always a simple matter of averaging three RGB numbers. Different color spaces represent color differently, so interpolating between the same two colors can produce different intermediate results.
The CSS color-mix() function lets developers specify an
interpolation color space. Available spaces include sRGB, linear
sRGB, Lab, OKLab, LCH and OKLCH, among others. :chatgpt-content-reference{index="3"}
Useful when you specifically want behavior associated with the standard sRGB color space.
color-mix(in srgb, red, blue)
A perceptual color space designed to provide useful lightness and color relationships during interpolation.
color-mix(in oklab, red, blue)
A familiar cylindrical color model using hue, saturation and lightness coordinates.
color-mix(in hsl, red, blue)
A cylindrical representation of OKLab using lightness, chroma and hue, useful for modern color workflows.
color-mix(in oklch, red, blue)
MDN notes that the choice of interpolation space affects the result: Oklab and Lab are useful for perceptually even interpolation, while OKLCH can help maintain chroma during transitions. :chatgpt-content-reference{index="4"}
Modern CSS includes the color-mix() function, allowing
developers to generate a mixed color directly in CSS. This is useful
for design systems, hover states, component variations, gradients and
theme colors. :chatgpt-content-reference{index="5"}
.button {
background: color-mix(
in oklab,
#635BFF 70%,
#06B6D4 30%
);
}
You can also use the result as part of a design system instead of manually creating every intermediate shade. This can make color relationships easier to maintain as a project grows.
CSS color-mix() is widely available in modern browsers,
although individual color spaces and advanced interpolation options
can have different compatibility levels. :chatgpt-content-reference{index="6"}
A color mixer can be useful beyond producing one final color. By changing the ratio gradually, you can create a sequence of related shades between two colors. This can be useful for UI states, illustrations, backgrounds and design-system tokens.
For more controlled palette creation, you can combine mixing with BestColorPicker's Color Harmony Finder, Color Tint Generator and Color Difference Calculator .
Digital color mixing and physical paint mixing should not be treated as identical processes. Digital tools interpolate numerical color representations, while physical pigments interact through absorption, reflection and material properties.
Create intermediate interface colors, button states and subtle background variations.
Explore transitions between primary and secondary brand colors when building component systems.
Experiment with combinations before committing to a final brand palette.
Generate practical CSS color-mix() expressions for modern web interfaces.
Discover transitional shades and intermediate colors for digital artwork.
Create systematic relationships between colors rather than selecting every shade independently.
Enter the HEX value of your primary color or select a color from your existing palette.
Enter the second HEX value that you want to blend with the first color.
Adjust the percentage slider to decide how strongly each source color contributes to the result.
Choose an interpolation space when you need a particular type of color transition.
Copy the resulting HEX value and continue testing it in your design, CSS or palette.
A mixed color may look attractive but still provide poor readability when used with certain text or background colors. After creating a new color, check its contrast in the actual interface where it will appear.
Use the Color Contrast Checker for conventional contrast testing and the APCA Contrast Checker for an additional perceptual contrast workflow.
The W3C Web Content Accessibility Guidelines provide the broader accessibility framework for web content. View WCAG guidance.
A Color Mixer is an online tool that combines two colors according to selected proportions and produces a new blended color.
Enter two colors, select the desired mixing ratio and choose a color space when available. The tool then calculates the resulting color.
The two colors are mathematically interpolated according to the selected color-mixing method. The result depends on the interpolation color space and percentages.
A 50/50 mix gives both source colors equal weight. Neither color receives more influence than the other.
Yes. Different color spaces use different coordinate systems and interpolation behavior, so the same two colors can produce different intermediate results.
CSS color-mix() is a CSS function that mixes one or more colors in a specified color space and according to specified proportions.
There is no single best space for every purpose. Oklab and OKLCH can be useful for perceptual workflows, while sRGB can be useful when matching specific sRGB behavior. The appropriate choice depends on the desired result.
Yes. You can use the resulting HEX, RGB or another supported color value in CSS. You can also use CSS color-mix() directly for dynamic color relationships.
Yes. By changing the mixing percentage in small increments, you can generate a sequence of related colors between two source colors.
No. Digital color mixing interpolates numerical color values, while physical paint mixing depends on pigments, material properties, light absorption and reflection.
Yes. If the resulting color will be used for text, buttons, icons or other important interface elements, test its contrast against the intended background.
Yes. The BestColorPicker Color Mixer is designed as a free online color mixing tool.
Experiment with two colors, compare mixing ratios and use the resulting shade in your next website, interface, brand or design project.