Color Mixer
Professional color mixing calculator. Simulate additive (light) and subtractive (paint) color blending using gamma-corrected and Beer-Lambert algorithms.
About
Color mixing in digital environments frequently suffers from interpolation errors. Standard naive averaging of RGB values fails to account for the non-linear nature of human vision and the physical behavior of light, resulting in desaturated, "muddy" mid-tones. This instrument resolves these discrepancies by providing two mathematically rigorous mixing models: Additive and Subtractive.
The Additive model simulates the behavior of emissive light (such as monitors or stage lighting). It utilizes Gamma Correction (ฮณ = 2.2) to transform standard sRGB values into a linear color space before interpolation, preserving accurate luminance. The Subtractive model simulates physical pigments, inks, or filters (CMYK/RYB). Rather than simple averaging, it calculates the transmittance and absorbance of each layer using an approximation of the Beer-Lambert Law, effectively multiplying the spectral absorption profiles to predict the physical result of mixing dyes.
Formulas
For Additive Mixing, values are converted to linear space using a gamma exponent before computing the weighted average:
Cmix = โClinear2.2 ร 255
For Subtractive Mixing, the tool approximates density (absorbance) using a logarithmic scale per the Beer-Lambert principle:
Amix = โ (wi ร Ai)โ wi
Cmix = 10โAmix ร 255
Where C represents the individual RGB channels (Red, Green, Blue), w represents the weight (parts) of the color, and A represents optical absorbance.
Reference Data
| Mixing Type | Color 1 | Color 2 | Theoretical Result | Physical Analogy |
|---|---|---|---|---|
| Additive (Light) | Red (255, 0, 0) | Green (0, 255, 0) | Yellow (255, 255, 0) | Overlapping RGB spotlights. |
| Additive (Light) | Red (255, 0, 0) | Cyan (0, 255, 255) | White (255, 255, 255) | Complementary wavelengths summing. |
| Subtractive (Paint) | Yellow (255, 255, 0) | Cyan (0, 255, 255) | Green (0, 255, 0) | Mixing standard CMY printer inks. |
| Subtractive (Paint) | Cyan (0, 255, 255) | Magenta (255, 0, 255) | Blue (0, 0, 255) | Absorbing Red and Green spectrums. |
| Subtractive (Paint) | Red (255, 0, 0) | Green (0, 255, 0) | Dark Brown / Black (16, 16, 0) | Opposite hues absorbing all light. |
| Subtractive (Paint) | Cyan, Magenta, Yellow | Equal Parts | Black (0, 0, 0) | Perfect theoretical CMY absorption. |