Skip to content
IndexRequest a UIAboutContact

Opacity Stack Colour Mixing

Two translucent circles over white: change the alpha and the stacking order to see how the overlap colour changes.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI IMAGE OR VIDEO TOOL
Clean illustration of two large overlapping circles, one translucent blue and one translucent orange, on a white background, the lens-shaped overlap showing a muted brownish blend, below it a second pair of circles with the order reversed and a slightly different overlap colour, small hex labels on each region, flat vector style, no outlines. Negative: gradients, shadows, clutter, text errors. Reduced motion: static illustration.

About this pattern

Definition

When translucent colours overlap on screen, the result depends on opacity and on which layer is on top. With normal alpha blending each layer replaces part of what is below it, so order matters. The overlap is a weighted mix: result equals top times alpha plus below times one minus alpha.

When to use it

  • Opacity 100 percent hides what is below; 50 percent mixes evenly.
  • Swapping the order changes the overlap unless both alphas are the same.
  • Layers over a white page look lighter; over black they look darker.
  • Use blend modes like multiply when you want subtractive mixing instead.

What the controls do

  • Order buttons and an Opacity slider; the mixed hex is shown.

Motion & timing

  • Updates are immediate.
  • Reduced motion: nothing animates.

Tips & variations

  • Text on translucent colours needs a contrast check against the mixed result.
  • Many stacked layers are expensive to paint.

Code of this live preview

HTML
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Order"><button data-p="0" aria-pressed="true">Blue over orange</button><button data-p="1" aria-pressed="false">Orange over blue</button></div><div class="sc" id="sc"><i class="a" id="ca"></i><i class="b" id="cb"></i></div><label class="rw">Opacity <b id="av">60%</b><input id="as" type="range" min="20" max="100" value="60"></label><p class="out" id="out"></p></div>

Related patterns

Blend Mode Overlays

↗
Blend Mode OverlaysColour Techniques

Additive vs Subtractive Mixing

↗
Additive vs Subtractive MixingColour Techniques

Gradient Interpolation Spaces

↗
Gradient Interpolation SpacesColour Techniques