Additive & Subtractive Color Mixing Back
Optics & Color

Additive & Subtractive Color Mixing

Use RGB sliders to explore additive light mixing and CMY sliders for subtractive pigment mixing in real time. Visualize Venn diagrams, HSL conversion, spectral distributions and color-difference ΔE.

Color Mixing Mode

Three Primary Colors of Light (RGB)

Red R
Green G
Blue B
#FF6400
Orange range
Results
RGB value
HEX
Hue H (°)
Saturation S (%)
Lightness L (%)
Rel. luminance (%)
Spotlight Mixing Animation
Venn
Spectrum
Hue Wheel
Theory & Key Formulas

Additive mixing: $I_{mix} = I_R + I_G + I_B$ (light intensities add. R+G=yellow, G+B=cyan, R+B=magenta, R+G+B=white)

Relative luminance: $Y = 0.2126R + 0.7152G + 0.0722B$ (weights based on human luminous efficiency)

CMY↔RGB: $R = 255(1-C)$, etc. (subtractive mixing is absorption from white light)

Complement: $R_{comp} = 255 - R$ (the color that mixes to white in additive mode)

🎓 Learn Color Mixing Through Conversation

🙋
I learned that the three primary colors of light are RGB (red, green, and blue), and mixing them makes white. But paints are often taught as red, blue, and yellow, and mixing them makes dark colors. Why are they different?
🎓
Light uses additive mixing: you add emitted light, so the result gets brighter. Paint uses subtractive mixing: pigments absorb some light and reflect the rest, so adding more pigment increases absorption and darkens the result. The accurate printing primaries are cyan (absorbs red), magenta (absorbs green), and yellow (absorbs blue); the familiar red-blue-yellow model is only an approximation.
🙋
I have heard that if you look very closely at a TV screen, you can see red, green, and blue dots. That is RGB, right? Why does green have the largest luminance weight in $Y = 0.21R + 0.72G + 0.07B$?
🎓
The human eye is most sensitive around green. Among the three cone types (L, M, and S), the M cones related to green sensitivity strongly influence perceived brightness. This sensitivity distribution is called the luminous-efficiency function $V(\lambda)$, and RGB luminance weights are based on it. That is why the green channel contributes most to perceived screen brightness.
🙋
Complementary colors are used often in design. You said red complements cyan. Does that mean the color opposite it on the hue wheel?
🎓
Exactly. For RGB values, the complement is $(255-R, 255-G, 255-B)$. Adding it to the original color gives white. Complementary colors create strong contrast and improve visibility, but equal-area complements can look harsh or shimmering, so designers often reduce saturation in practice.
🙋
Is color important in CAE or engineering contexts?
🎓
Very much so. FEM and CFD results are often shown with contour colors, for example red for high stress and blue for low stress. These mappings use color maps such as Jet or Viridis. Jet can mislead because human perception is not uniform across it, so perceptually uniform maps such as Viridis are now preferred. Color-difference ΔE calculations are also relevant to comparing visualization quality.

Frequently Asked Questions

What is the difference between additive and subtractive color mixing?
Additive color mixing is mixing by overlapping light, with RGB (Red, Green, Blue) as the three primary colors. Mixing all at maximum yields white. It is used in displays, LED lighting, and stage lighting. Subtractive color mixing is mixing by light absorption of objects, with CMY (Cyan, Magenta, Yellow) as the three primary colors. Mixing all yields black. It is used in printing, paints, and filters. Printers adopt the CMYK method, adding black (K) to CMY.
What is the difference between HSL and HSV?
HSL (Hue, Saturation, Lightness) and HSV (Hue, Saturation, Value) are similar color spaces but differ in definition. In HSL, L=100% is always white, and L=50% gives the most vivid color. In HSV, even at V=100%, colors range from pure to white depending on saturation. Photoshop's 'Hue/Saturation' dialog is HSL-like, while the 'HSB' display is HSV-like. CSS's hsl() function uses HSL.
Why do computer displays use the sRGB color space?
sRGB is a color space standardized by Microsoft and HP in 1996, corresponding to the ITU-R BT.709 standard. By having each device (monitor, printer, camera) support the same color space, colors appear consistent (color management). Today, wider gamut spaces like Display P3 and Adobe RGB are also common. In CAE visualization tools, color space settings during output are important, as appearance varies on monitors and projectors.
What is color difference ΔE?
It quantifies the perceptual distance between two colors, defined as the distance in the CIE L*a*b* color space (perceptually uniform color space). ΔE < 1 is indistinguishable to the human eye, ΔE = 1–3 is a subtle difference, and ΔE > 5 is a clear difference. It is widely used in quality control for paints, textiles, and printing. It can also be applied to CAE result comparison, with research quantifying differences between multiple mesh solutions as ΔE.
What is a good colormap for CAE visualization?
The traditionally used Jet (blue → green → red) has nonlinear perception, causing false contours not present in the data and difficulty for colorblind users. Currently recommended are 'perceptually uniform colormaps' like Viridis (blue → green → yellow) and Plasma (purple → orange → yellow), which retain information even when converted to grayscale. These are available by default in Matplotlib.

What is Additive Color Mixing?

Additive Color Mixing is a fundamental topic in engineering and applied physics. This interactive simulator lets you explore the key behaviors and relationships by directly manipulating parameters and observing real-time results.

By combining numerical computation with visual feedback, the simulator bridges the gap between abstract theory and physical intuition — making it an effective learning tool for students and a rapid-verification tool for practicing engineers.

Physical Model & Key Equations

The simulator is based on the governing equations behind Additive & Subtractive Color Mixing. Understanding these equations is key to interpreting the results correctly.

Each parameter in the equations corresponds to a slider in the control panel. Moving a slider changes the equation's solution in real time, helping you build a direct connection between mathematical expressions and physical behavior.

Real-World Applications

Engineering Design: The concepts behind Additive & Subtractive Color Mixing are applied across mechanical, structural, electrical, and fluid engineering disciplines. This tool provides a quick way to estimate design parameters and sensitivity before committing to full CAE analysis.

Education & Research: Widely used in engineering curricula to connect theory with numerical computation. Also serves as a first-pass validation tool in research settings.

CAE Workflow Integration: Before running finite element (FEM) or computational fluid dynamics (CFD) simulations, engineers use simplified models like this to establish physical scale, identify dominant parameters, and define realistic boundary conditions.

Common Misconceptions and Points of Caution

Model assumptions: The mathematical model used here relies on simplifying assumptions such as linearity, homogeneity, and isotropy. Always verify that your real system satisfies these assumptions before applying results directly to design decisions.

Units and scale: Many calculation errors arise from unit conversion mistakes or order-of-magnitude errors. Pay close attention to the units shown next to each parameter input.

Validating results: Always sanity-check simulator output against physical intuition or hand calculations. If a result seems unexpected, review your input parameters or verify with an independent method.

How to Use

  1. Select additive mode (RGB) or subtractive mode (CMY) using the mode toggle.
  2. Adjust red, green, and blue sliders (0–255) for additive mixing, or cyan, magenta, yellow sliders (0–100%) for subtractive pigment mixing.
  3. Observe real-time Venn diagram updates, hexadecimal output, HSL conversion values, and Delta-E (ΔE) color difference calculations between selected colors.

Worked Example

Additive mixing: Set R=255, G=128, B=0 to produce a broadcast orange (hex #FF8000, HSL 30° 100% 50%). In subtractive mode, mixing cyan 40% + magenta 60% + yellow 100% yields a deep burgundy for print CMYK separations. ΔE between pure red (255,0,0) and this burgundy measures approximately 68 units, indicating substantial perceptual difference per CIE76 standard.

Practical Notes

  1. Additive RGB (light) peaks at white (255,255,255); subtractive CMY (pigment/ink) converges to black with full saturation.
  2. Monitor ΔE values when matching brand colors across display screens versus printed materials—values below 2 indicate imperceptible difference.
  3. Use HSL sliders for intuitive hue selection (0–360°), then fine-tune saturation (0–100%) and lightness (0–100%) without recalculating RGB channels manually.