Color Mixer
Mix two colours in sRGB and get every step between them as hex, rgb() and a percentage, from 2 to 10 stops. Nothing is uploaded.
How the colour mixer interpolates
Mixing happens per channel in sRGB, the same arithmetic as CSS color-mix in the srgb space: each channel moves linearly from the first colour to the second, and the endpoints are returned unchanged. The percentage on each row is the share of the second colour, so 0% is the first colour and 100% is the second. Between two and ten stops are printed, enough to pick a midpoint without turning the output into a gradient file. sRGB interpolation is not perceptually even — mixing blue and yellow passes through a dull grey — so for an even ramp mix in a perceptual space instead. Alpha is ignored: both colours are treated as opaque.
How to use it
The Color Mixer page needs no pasted input: set First colour (default "#2563eb"), Second colour (default "#f59e0b") and Steps (default "5"), then press Run to build a new mixed colours.
Worked example
Input:
Output:
Mixing #2563eb into #f59e0b in sRGB, 5 steps.
The percentage is the share of #f59e0b; alpha is ignored.
#2563eb rgb(37, 99, 235) mix: 0%
#5972b3 rgb(89, 114, 179) mix: 25%
#8d817b rgb(141, 129, 123) mix: 50%
#c18f43 rgb(193, 143, 67) mix: 75%
#f59e0b rgb(245, 158, 11) mix: 100%
Why it runs in your browser
The result is produced on this page with JavaScript, so it works offline after the page loads and nothing you enter is sent anywhere.
Mixing happens per channel in sRGB, the same arithmetic as CSS color-mix in the srgb space: each channel moves linearly from the first colour to the second, and the endpoints are returned unchanged. The percentage on each row is the share of the second colour, so 0% is the first colour and 100% is the second. Between two and ten stops are printed, enough to pick a midpoint without turning the output into a gradient file. sRGB interpolation is not perceptually even — mixing blue and yellow passes through a dull grey — so for an even ramp mix in a perceptual space instead. Alpha is ignored: both colours are treated as opaque.
Mix two colours in sRGB and get every step between them as hex, rgb() and a percentage, from 2 to 10 stops. Nothing is uploaded.
How to use it
The Color Mixer page needs no pasted input: set First colour (default "#2563eb"), Second colour (default "#f59e0b") and Steps (default "5"), then press Run to build a new mixed colours.
Why it runs in your browser
The result is produced on this page with JavaScript, so it works offline after the page loads and nothing you enter is sent anywhere.
What to Expect
What this tool keeps
- The result is produced on this page with JavaScript, so it works offline after the page loads and nothing you enter is sent anywhere.
Sample output
Mixing #2563eb into #f59e0b in sRGB, 5 steps. The percentage is the share of #f59e0b; alpha is ignored. #2563eb rgb(37, 99, 235) mix: 0% #5972b3 rgb(89, 114, 179) mix: 25% #8d817b rgb(141, 129, 123) mix: 50% #c18f43 rgb(193, 143, 67) mix: 75% #f59e0b rgb(245, 158, 11) mix: 100%
Frequently asked questions
How do I use the color mixer?
The Color Mixer page needs no pasted input: set First colour (default "#2563eb"), Second colour (default "#f59e0b") and Steps (default "5"), then press Run to build a new mixed colours.
Is my input uploaded?
Nothing is uploaded. The result is produced on this page.
Is there a size limit?
No: nothing is pasted, so there is no input size to exceed.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.