Additive vs Subtractive Mixing
Overlap red, green and blue light on black, or cyan, magenta and yellow ink on white, and see what each mix produces.
AI prompt
Educational diagram showing two colour mixing circles side by side: on the left on black, three overlapping circles of red, green and blue light combining to yellow, cyan and magenta with white at the centre, on the right on white, three overlapping circles of cyan, magenta and yellow ink combining to blue, red and green with near black at the centre, clean flat vector, crisp overlaps, small labels under each. Negative: gradients, shadows, text errors, 3D, photos. Reduced motion: static diagram.About this pattern
Definition
Screens and lights mix colour by adding: red, green and blue light together make white. Paint and print mix by subtracting: cyan, magenta and yellow inks absorb light and together approach black. The same overlap gives opposite results in the two systems.
When to use it
- Additive (RGB): red plus green is yellow, green plus blue is cyan, red plus blue is magenta, all three are white.
- Subtractive (CMY): cyan plus magenta is blue, magenta plus yellow is red, cyan plus yellow is green, all three are near black.
- In CSS, screen blending mimics additive mixing and multiply mimics subtractive.
What the controls do
- Two mode buttons and three circle toggles with a named result.
Motion & timing
- Changes are instant.
- Reduced motion: nothing animates.
Tips & variations
- Design for screen in RGB and for print in CMYK; saturated screen colours often cannot be printed.
- Check printed proofs for colours near the edge of the gamut.
Code of this live preview
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Mode"><button data-p="0" aria-pressed="true">Additive light (RGB)</button><button data-p="1" aria-pressed="false">Subtractive ink (CMY)</button></div><div class="mx" id="mx" data-m="0"><b class="c0"></b><b class="c1"></b><b class="c2"></b></div><div class="pre" id="tg" role="group" aria-label="Circles"></div><p class="out" id="out" role="status"></p></div>:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}a{color:inherit;text-decoration:none}ul,ol,p,h4{margin:0;padding:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pre{display:flex;gap:5px;flex-wrap:wrap}.pre button{height:28px;padding:0 11px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.bx{width:min(330px,100%);display:grid;gap:9px}.rw{display:grid;gap:3px;font-size:11.5px;color:var(--muted)}.rw b{color:var(--text);font-weight:600}input[type=range]{width:100%;accent-color:#171717}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.mx{height:128px;border-radius:12px;position:relative;overflow:hidden;isolation:isolate;background:#000}.mx[data-m="1"]{background:#fff}.mx b{position:absolute;width:76px;height:76px;border-radius:50%;transition:opacity .15s}.c0{left:calc(50% - 62px);top:10px}.c1{left:calc(50% - 14px);top:10px}.c2{left:calc(50% - 38px);top:44px}.mx[data-m="0"] b{mix-blend-mode:screen}.mx[data-m="1"] b{mix-blend-mode:multiply}.mx[data-m="0"] .c0{background:#f00}.mx[data-m="0"] .c1{background:#0f0}.mx[data-m="0"] .c2{background:#00f}.mx[data-m="1"] .c0{background:#0ff}.mx[data-m="1"] .c1{background:#f0f}.mx[data-m="1"] .c2{background:#ff0}.mx b.off{opacity:0}
@media (prefers-reduced-motion:reduce){.mx b{transition:none}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const N=[['Red','Green','Blue'],['Cyan','Magenta','Yellow']],R=[{'12':'Yellow','24':'Magenta','34':'Cyan'},{'12':'Blue','24':'Red','34':'Green'}],mx=document.getElementById('mx'),tg=document.getElementById('tg'),bs=[...document.querySelectorAll('#pre button')];let p=0,on=[1,1,1];
function build(){tg.innerHTML=N[p].map((n,i)=>'<button type="button" data-i="'+i+'" aria-pressed="'+!!on[i]+'">'+n+'</button>').join('');}
function up(){mx.dataset.m=p;[...mx.children].forEach((c,i)=>c.classList.toggle('off',!on[i]));build();const a=on.map((v,i)=>v?i:-1).filter(i=>i>=0),k=a.length;let t;if(k===0)t=p?'Nothing printed: white paper.':'No light: black.';else if(k===1)t=N[p][a[0]]+' only.';else if(k===2){const m={'0,1':'12','1,2':'34','0,2':'24'};t=N[p][a[0]]+' + '+N[p][a[1]]+' = '+R[p][m[a.join()]]+'.';}else t=p?'All three inks: near black.':'All three lights: white.';document.getElementById('out').textContent=t;bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;up();}));tg.addEventListener('click',e=>{const b=e.target.closest('button');if(!b)return;on[+b.dataset.i]^=1;up();const nb=tg.querySelector('[data-i="'+b.dataset.i+'"]');if(nb)nb.focus();});up();One complete HTML file. Save it and open it in a browser.
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Additive vs Subtractive Mixing — demo</title>
<style>
:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
html,body{height:100%}body{background:var(--bg);color:var(--text);font:15px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Inter,Roboto,sans-serif;-webkit-font-smoothing:antialiased}.stage{min-height:100%;display:grid;place-items:center;padding:24px}button,input,select,textarea{font-family:inherit}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}a{color:inherit;text-decoration:none}ul,ol,p,h4{margin:0;padding:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pre{display:flex;gap:5px;flex-wrap:wrap}.pre button{height:28px;padding:0 11px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.bx{width:min(330px,100%);display:grid;gap:9px}.rw{display:grid;gap:3px;font-size:11.5px;color:var(--muted)}.rw b{color:var(--text);font-weight:600}input[type=range]{width:100%;accent-color:#171717}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.mx{height:128px;border-radius:12px;position:relative;overflow:hidden;isolation:isolate;background:#000}.mx[data-m="1"]{background:#fff}.mx b{position:absolute;width:76px;height:76px;border-radius:50%;transition:opacity .15s}.c0{left:calc(50% - 62px);top:10px}.c1{left:calc(50% - 14px);top:10px}.c2{left:calc(50% - 38px);top:44px}.mx[data-m="0"] b{mix-blend-mode:screen}.mx[data-m="1"] b{mix-blend-mode:multiply}.mx[data-m="0"] .c0{background:#f00}.mx[data-m="0"] .c1{background:#0f0}.mx[data-m="0"] .c2{background:#00f}.mx[data-m="1"] .c0{background:#0ff}.mx[data-m="1"] .c1{background:#f0f}.mx[data-m="1"] .c2{background:#ff0}.mx b.off{opacity:0}
@media (prefers-reduced-motion:reduce){.mx b{transition:none}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
</style></head>
<body><div class="stage">
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Mode"><button data-p="0" aria-pressed="true">Additive light (RGB)</button><button data-p="1" aria-pressed="false">Subtractive ink (CMY)</button></div><div class="mx" id="mx" data-m="0"><b class="c0"></b><b class="c1"></b><b class="c2"></b></div><div class="pre" id="tg" role="group" aria-label="Circles"></div><p class="out" id="out" role="status"></p></div>
</div>
<script>
const N=[['Red','Green','Blue'],['Cyan','Magenta','Yellow']],R=[{'12':'Yellow','24':'Magenta','34':'Cyan'},{'12':'Blue','24':'Red','34':'Green'}],mx=document.getElementById('mx'),tg=document.getElementById('tg'),bs=[...document.querySelectorAll('#pre button')];let p=0,on=[1,1,1];
function build(){tg.innerHTML=N[p].map((n,i)=>'<button type="button" data-i="'+i+'" aria-pressed="'+!!on[i]+'">'+n+'</button>').join('');}
function up(){mx.dataset.m=p;[...mx.children].forEach((c,i)=>c.classList.toggle('off',!on[i]));build();const a=on.map((v,i)=>v?i:-1).filter(i=>i>=0),k=a.length;let t;if(k===0)t=p?'Nothing printed: white paper.':'No light: black.';else if(k===1)t=N[p][a[0]]+' only.';else if(k===2){const m={'0,1':'12','1,2':'34','0,2':'24'};t=N[p][a[0]]+' + '+N[p][a[1]]+' = '+R[p][m[a.join()]]+'.';}else t=p?'All three inks: near black.':'All three lights: white.';document.getElementById('out').textContent=t;bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;up();}));tg.addEventListener('click',e=>{const b=e.target.closest('button');if(!b)return;on[+b.dataset.i]^=1;up();const nb=tg.querySelector('[data-i="'+b.dataset.i+'"]');if(nb)nb.focus();});up();
</script>
</body></html>