Color Mixer
Mix two CSS colors with an exact ratio in sRGB, linear sRGB or Oklab. Preview the range and copy HEX, RGB, HSL, HSV or CSS color-mix.
Compare Three Red and Blue Midpoints
50% Color 1 · 50% Color 2 · 100% opacity
- HEX
#800080- RGB
rgb(128, 0, 128)- HSL
hsl(300 100% 25.098%)- HSV / HSB
hsv(300 100% 50.196%)- CSS color-mix
color-mix(in srgb, #FF0000 50%, #0000FF 50%)
Color Mixer: how to use it
- Enter two CSS colors, use the pickers or select an example.
- Set the share of Color 2 and choose sRGB, Linear sRGB or Oklab. Select any of the eleven swatches to jump to its ratio.
- Copy the static color value or the CSS color-mix expression.
Limits and notes
Accepts named CSS colors, HEX, RGB, HSL, HWB and HSV with optional alpha. Use up to four decimal places for the share. Static values round to eight-bit sRGB, and out-of-range channels are clipped. All calculations run in your browser.
How your privacy works →Color Mixer: common questions
What does a 25% share of Color 2 mean?
The blend uses 75% of Color 1 and 25% of Color 2 in the chosen space. The slider and the numeric field set the same share.
Why does the midpoint change in Linear sRGB?
Linear sRGB blends light intensities before applying the display transfer curve. A red and blue midpoint is #BC00BC, compared with #800080 in encoded sRGB.
How are transparent colors blended?
Each color's channels are weighted by its alpha before interpolation. This preserves the visible contribution of each endpoint.