Tint, Shade & Tone Ramps
Pick one colour and see its tints (towards white), tones (towards grey) and shades (towards black).
AI prompt
Clean colour-scale reference sheet for a single teal hue: three horizontal rows of seven square swatches on a white background, the first row blending teal toward white (tints), the second toward mid grey (tones), the third toward black (shades), tiny hex codes under each swatch, even spacing, flat vector style, no gradients, no shadows. Variants: coral, indigo, olive. Negative: unrelated hues, uneven steps, noisy texture, decorative frames, text errors. Reduced motion: static sheet.About this pattern
Definition
A tint adds white, a shade adds black and a tone adds grey. Together they turn one hue into a full scale that always belongs together, which is how most design systems build their colour steps.
When to use it
- Use tints for backgrounds and hover fills, tones for calm secondary elements, shades for text and pressed states.
- Seven steps per row is enough for most interfaces; name them 100 to 900.
- In prompts, ask for a monochrome palette from one hue plus its ramp for a cohesive look.
What the controls do
- A colour picker, four quick colours and a swatch per step; click a swatch to copy its hex.
Motion & timing
- Swatches update on input; there is no animation.
- Reduced motion: nothing to change.
Tips & variations
- Check text contrast between ramp steps; the middle steps often fail on white.
- Show the hex value so the scale can be copied.
Code of this live preview
<div class="bx"><div class="rw" style="grid-auto-flow:column;align-items:center;justify-content:start;gap:8px"><input id="cp" type="color" value="#1f8a8a" aria-label="Base colour"><div class="pre" id="pre" role="group" aria-label="Quick colours"><button data-p="0" aria-pressed="true">Teal</button><button data-p="1" aria-pressed="false">Coral</button><button data-p="2" aria-pressed="false">Indigo</button><button data-p="3" aria-pressed="false">Olive</button></div></div><div id="rows"></div><p class="out" id="out" aria-live="polite">Click a swatch to copy its hex.</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}
.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}
.sw{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;margin-bottom:3px}.sw button{height:30px;border-radius:6px;border:1px solid rgba(0,0,0,.08);padding:0;cursor:pointer}
.lb{font-size:10.5px;color:var(--muted);margin:3px 0 2px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const Q=['#1f8a8a','#e4604a','#4a4fd1','#7a8a2e'],cp=document.getElementById('cp'),rows=document.getElementById('rows'),out=document.getElementById('out'),bs=[...document.querySelectorAll('#pre button')];let p=0;
const h=c=>[1,3,5].map(i=>parseInt(c.slice(i,i+2),16)),x=a=>'#'+a.map(v=>Math.round(v).toString(16).padStart(2,'0')).join('');
const mix=(a,b,t)=>a.map((v,i)=>v+(b[i]-v)*t);
function build(){const base=h(cp.value);rows.innerHTML='';[['Tints',[255,255,255]],['Tones',[128,128,128]],['Shades',[0,0,0]]].forEach(([n,t])=>{const l=document.createElement('div');l.className='lb';l.textContent=n;const w=document.createElement('div');w.className='sw';
for(let i=0;i<7;i++){const c=x(mix(base,t,i*.13)),b=document.createElement('button');b.type='button';b.style.background=c;b.setAttribute('aria-label',n+' step '+(i+1)+' '+c);b.addEventListener('click',()=>{out.innerHTML='<b>'+c+'</b>'+(navigator.clipboard?' copied':'');try{navigator.clipboard.writeText(c).catch(()=>{});}catch(e){}});w.appendChild(b);}
rows.appendChild(l);rows.appendChild(w);});}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;cp.value=Q[p];bs.forEach(k=>k.setAttribute('aria-pressed',String(+k.dataset.p===p)));build();}));cp.addEventListener('input',()=>{bs.forEach(k=>k.setAttribute('aria-pressed','false'));build();});build();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>Tint, Shade & Tone Ramps — 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}}
.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}
.sw{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;margin-bottom:3px}.sw button{height:30px;border-radius:6px;border:1px solid rgba(0,0,0,.08);padding:0;cursor:pointer}
.lb{font-size:10.5px;color:var(--muted);margin:3px 0 2px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
</style></head>
<body><div class="stage">
<div class="bx"><div class="rw" style="grid-auto-flow:column;align-items:center;justify-content:start;gap:8px"><input id="cp" type="color" value="#1f8a8a" aria-label="Base colour"><div class="pre" id="pre" role="group" aria-label="Quick colours"><button data-p="0" aria-pressed="true">Teal</button><button data-p="1" aria-pressed="false">Coral</button><button data-p="2" aria-pressed="false">Indigo</button><button data-p="3" aria-pressed="false">Olive</button></div></div><div id="rows"></div><p class="out" id="out" aria-live="polite">Click a swatch to copy its hex.</p></div>
</div>
<script>
const Q=['#1f8a8a','#e4604a','#4a4fd1','#7a8a2e'],cp=document.getElementById('cp'),rows=document.getElementById('rows'),out=document.getElementById('out'),bs=[...document.querySelectorAll('#pre button')];let p=0;
const h=c=>[1,3,5].map(i=>parseInt(c.slice(i,i+2),16)),x=a=>'#'+a.map(v=>Math.round(v).toString(16).padStart(2,'0')).join('');
const mix=(a,b,t)=>a.map((v,i)=>v+(b[i]-v)*t);
function build(){const base=h(cp.value);rows.innerHTML='';[['Tints',[255,255,255]],['Tones',[128,128,128]],['Shades',[0,0,0]]].forEach(([n,t])=>{const l=document.createElement('div');l.className='lb';l.textContent=n;const w=document.createElement('div');w.className='sw';
for(let i=0;i<7;i++){const c=x(mix(base,t,i*.13)),b=document.createElement('button');b.type='button';b.style.background=c;b.setAttribute('aria-label',n+' step '+(i+1)+' '+c);b.addEventListener('click',()=>{out.innerHTML='<b>'+c+'</b>'+(navigator.clipboard?' copied':'');try{navigator.clipboard.writeText(c).catch(()=>{});}catch(e){}});w.appendChild(b);}
rows.appendChild(l);rows.appendChild(w);});}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;cp.value=Q[p];bs.forEach(k=>k.setAttribute('aria-pressed',String(+k.dataset.p===p)));build();}));cp.addEventListener('input',()=>{bs.forEach(k=>k.setAttribute('aria-pressed','false'));build();});build();
</script>
</body></html>