Task path / input to outcome
How to mix two colors
- 01
Enter the two colors
Fill in First color and Second color with hex values — #RGB, #RGBA, #RRGGBB, and #RRGGBBAA are all accepted, so translucent inputs are fine. The workspace opens with #6D5EF8 against #22C55E.
- 02
Calculation
Choose Calculation method: Weighted mix interpolates encoded sRGB channels with premultiplied alpha. Composite places the first color over the second; layer order matters, and this mode has no weight slider.
- 03
Mix the colors
In Weighted mix, set Second color weight from 0% (first color) to 100% (second color), then press Mix colors. In Composite, press the same button to apply source-over. Changing a color, method, or weight clears the previous result.
- 04
Read the result panel
HEX, RGBA, CSS and preview share 8-bit channels and alpha. Transparency is shown over the page; the output retains alpha.
- 05
Try the sample blend
Press Load sample to mix #F97316 with #7C3AED at a 35% weight — a warm orange shifting toward violet — so you can see the full flow. Reset returns the default pair at 50%.
- 06
Copy or download the result
Copy or download toolars-color-mix.json with both source colors, the method, sRGB color space, HEX, RGBA and a CSS declaration. secondColorWeight is included only for weighted mixing. All output forms share the same 8-bit result.