Black & White Channel Mixer
Convert a scene to black and white with red, green and blue weights and watch sky, roof and tree change.
AI prompt
Black and white landscape photograph taken as if through a strong red filter: a dramatic nearly black sky with bright white clouds, a pale red barn roof glowing almost white against dark green trees rendered deep grey, rich tonal separation, fine film grain, 35mm lens, crisp and high contrast, timeless documentary feel. Variants: a green filter version with luminous foliage and a soft grey sky, and a blue filter version with a bright airy sky. Negative: flat grey mush, blown whites, colour fringes, text, watermark. Reduced motion: static image.About this pattern
Definition
A black and white photo is not simply a desaturated colour one. Converting with a channel mixer lets you choose how bright each colour becomes in grey: a red filter darkens blue skies and lightens red objects, while a green filter lightens foliage.
When to use it
- Standard weights are about 30 percent red, 59 green and 11 blue.
- Red filter: dramatic dark sky and bright skin or red brick.
- Green filter: lighter foliage, softer sky.
- Blue filter: lighter sky, darker reds and skin.
- Keep the total near 100 percent so the exposure stays the same.
What the controls do
- Four filter presets and three weight sliders.
Motion & timing
- The picture updates as you move the sliders.
- Reduced motion: nothing animates.
Tips & variations
- Judge the result by separation: neighbouring objects should differ in tone.
- Do not clip: weights summing well over 100 percent brighten and burn highlights.
Code of this live preview
<svg width="0" height="0" aria-hidden="true" focusable="false"><defs><filter id="bwf" color-interpolation-filters="sRGB"><feColorMatrix id="bwm" type="matrix" values="0.3 0.59 0.11 0 0 0.3 0.59 0.11 0 0 0.3 0.59 0.11 0 0 0 0 0 1 0"/></filter></defs></svg><div class="bx"><div class="pre" id="pre" role="group" aria-label="Filter"><button data-p="0" aria-pressed="true">Standard</button><button data-p="1" aria-pressed="false">Red filter</button><button data-p="2" aria-pressed="false">Green filter</button><button data-p="3" aria-pressed="false">Blue filter</button></div><div class="sc" id="sc"><i class="sk"></i><i class="rf"></i><i class="wl"></i><i class="tr"></i><i class="gr"></i></div><div class="three"><label class="rw">Red <b id="rv">30</b><input id="r" type="range" min="-50" max="150" value="30"></label><label class="rw">Green <b id="gv">59</b><input id="g" type="range" min="-50" max="150" value="59"></label><label class="rw">Blue <b id="bv">11</b><input id="b" type="range" min="-50" max="150" value="11"></label></div><p class="out" id="out"></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}
.sc{height:110px;border-radius:12px;position:relative;overflow:hidden;filter:url(#bwf)}.sc i{position:absolute;display:block}.sk{inset:0 0 40% 0;background:#5aa0e6}.gr{left:0;right:0;bottom:0;height:34%;background:#4f9a3e}.wl{left:14%;bottom:34%;width:70px;height:34px;background:#d8d2c4}.rf{left:10%;bottom:calc(34% + 34px);width:0;height:0;border-left:42px solid transparent;border-right:42px solid transparent;border-bottom:26px solid #c0392b;margin-left:-4px;z-index:1}.tr{left:68%;bottom:30%;width:46px;height:56px;border-radius:50% 50% 40% 40%;background:#2f8a3c}.three{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const PR=[[30,59,11],[90,40,-30],[-20,110,10],[-30,20,110]],m=document.getElementById('bwm'),R=document.getElementById('r'),G=document.getElementById('g'),B=document.getElementById('b'),bs=[...document.querySelectorAll('#pre button')];let p=0;
function up(){const r=+R.value/100,g=+G.value/100,b=+B.value/100,row=r+' '+g+' '+b+' 0 0 ';m.setAttribute('values',row+row+row+'0 0 0 1 0');document.getElementById('rv').textContent=R.value;document.getElementById('gv').textContent=G.value;document.getElementById('bv').textContent=B.value;const t=+R.value+ +G.value+ +B.value;document.getElementById('out').textContent='Total '+t+'%: '+(t>115?'brighter than the original, highlights may burn.':t<85?'darker than the original.':'exposure is about the same.');bs.forEach(k=>k.setAttribute('aria-pressed',String(PR[+k.dataset.p].join()===[R.value,G.value,B.value].map(Number).join())));}
bs.forEach(k=>k.addEventListener('click',()=>{const v=PR[+k.dataset.p];R.value=v[0];G.value=v[1];B.value=v[2];up();}));[R,G,B].forEach(i=>i.addEventListener('input',up));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>Black & White Channel Mixer — 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}
.sc{height:110px;border-radius:12px;position:relative;overflow:hidden;filter:url(#bwf)}.sc i{position:absolute;display:block}.sk{inset:0 0 40% 0;background:#5aa0e6}.gr{left:0;right:0;bottom:0;height:34%;background:#4f9a3e}.wl{left:14%;bottom:34%;width:70px;height:34px;background:#d8d2c4}.rf{left:10%;bottom:calc(34% + 34px);width:0;height:0;border-left:42px solid transparent;border-right:42px solid transparent;border-bottom:26px solid #c0392b;margin-left:-4px;z-index:1}.tr{left:68%;bottom:30%;width:46px;height:56px;border-radius:50% 50% 40% 40%;background:#2f8a3c}.three{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
</style></head>
<body><div class="stage">
<svg width="0" height="0" aria-hidden="true" focusable="false"><defs><filter id="bwf" color-interpolation-filters="sRGB"><feColorMatrix id="bwm" type="matrix" values="0.3 0.59 0.11 0 0 0.3 0.59 0.11 0 0 0.3 0.59 0.11 0 0 0 0 0 1 0"/></filter></defs></svg><div class="bx"><div class="pre" id="pre" role="group" aria-label="Filter"><button data-p="0" aria-pressed="true">Standard</button><button data-p="1" aria-pressed="false">Red filter</button><button data-p="2" aria-pressed="false">Green filter</button><button data-p="3" aria-pressed="false">Blue filter</button></div><div class="sc" id="sc"><i class="sk"></i><i class="rf"></i><i class="wl"></i><i class="tr"></i><i class="gr"></i></div><div class="three"><label class="rw">Red <b id="rv">30</b><input id="r" type="range" min="-50" max="150" value="30"></label><label class="rw">Green <b id="gv">59</b><input id="g" type="range" min="-50" max="150" value="59"></label><label class="rw">Blue <b id="bv">11</b><input id="b" type="range" min="-50" max="150" value="11"></label></div><p class="out" id="out"></p></div>
</div>
<script>
const PR=[[30,59,11],[90,40,-30],[-20,110,10],[-30,20,110]],m=document.getElementById('bwm'),R=document.getElementById('r'),G=document.getElementById('g'),B=document.getElementById('b'),bs=[...document.querySelectorAll('#pre button')];let p=0;
function up(){const r=+R.value/100,g=+G.value/100,b=+B.value/100,row=r+' '+g+' '+b+' 0 0 ';m.setAttribute('values',row+row+row+'0 0 0 1 0');document.getElementById('rv').textContent=R.value;document.getElementById('gv').textContent=G.value;document.getElementById('bv').textContent=B.value;const t=+R.value+ +G.value+ +B.value;document.getElementById('out').textContent='Total '+t+'%: '+(t>115?'brighter than the original, highlights may burn.':t<85?'darker than the original.':'exposure is about the same.');bs.forEach(k=>k.setAttribute('aria-pressed',String(PR[+k.dataset.p].join()===[R.value,G.value,B.value].map(Number).join())));}
bs.forEach(k=>k.addEventListener('click',()=>{const v=PR[+k.dataset.p];R.value=v[0];G.value=v[1];B.value=v[2];up();}));[R,G,B].forEach(i=>i.addEventListener('input',up));up();
</script>
</body></html>