Neutral Grey Ramps: Cool, Neutral, Warm
The same interface in cool, pure and warm grey ramps, with the nine steps listed.
AI prompt
Set of three identical minimal app cards each in a different grey family: a cool bluish grey scale, a pure neutral grey scale and a warm beige-tinted grey scale, each card with a title, short text, a secondary button and a nine-step swatch strip below showing the ramp from near-white to near-black, flat modern style, clean light background. Negative: bright colours, gradients, clutter, text errors. Reduced motion: static set.About this pattern
Definition
Pure grey can look lifeless next to colour. Tinting the greys slightly toward the brand hue makes an interface feel designed: cool greys feel technical and clean, warm greys feel friendly and editorial. The tint should be subtle, a few percent saturation, and the same across all steps.
When to use it
- Build a ramp of about nine steps from near-white to near-black.
- Add 4 to 12 percent saturation with a fixed hue: blue for cool, orange or yellow for warm.
- Keep lightness steps even so contrast is predictable.
- Check text contrast between the text step and background step.
What the controls do
- Three ramp buttons; the card and the swatch strip update.
Motion & timing
- Colours change over 200ms.
- Reduced motion: no transition.
Tips & variations
- Do not mix tints within one product; pick one family.
- Test on both bright and dim displays.
Code of this live preview
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Ramp"><button data-p="0" aria-pressed="true">Cool</button><button data-p="1" aria-pressed="false">Neutral</button><button data-p="2" aria-pressed="false">Warm</button></div><div class="cd" id="cd"><b>Project notes</b><span>Draft the outline and share it with the team.</span><button type="button" tabindex="-1">Share</button></div><div class="rp" id="rp"></div></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}
.cd{border-radius:12px;padding:12px;display:grid;gap:6px;justify-items:start;font-size:12.5px;background:var(--g1);color:var(--g8);border:1px solid var(--g3);transition:background .2s,color .2s}.cd b{font-size:15px;color:var(--g9)}.cd span{color:var(--g6)}.cd button{padding:6px 14px;border-radius:99px;background:var(--g8);color:var(--g0);font-weight:700;font-size:12px;pointer-events:none}.rp{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:3px}.rp span{height:44px;border-radius:6px;font-size:8px;display:flex;align-items:flex-end;justify-content:center;padding-bottom:3px;border:1px solid rgba(0,0,0,.08)}@media (prefers-reduced-motion:reduce){.cd{transition:none}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const H=[[220,14],[0,0],[38,12]],cd=document.getElementById('cd'),rp=document.getElementById('rp'),bs=[...document.querySelectorAll('#pre button')],L=[98,94,88,78,62,46,32,20,10,6];let p=0;
function hex(h,s,l){s/=100;l/=100;const a=s*Math.min(l,1-l),f=n=>{const k=(n+h/30)%12,c=l-a*Math.max(-1,Math.min(k-3,Math.min(9-k,1)));return Math.round(255*c).toString(16).padStart(2,'0');};return '#'+f(0)+f(8)+f(4);}
function up(){const [h,s]=H[p],cs=L.slice(0,10).map(l=>hex(h,s,l));cs.forEach((c,i)=>cd.style.setProperty('--g'+i,c));rp.innerHTML=cs.slice(0,9).map((c,i)=>'<span style="background:'+c+';color:'+(L[i]>55?'#222':'#fff')+'">'+(i+1)+'</span>').join('');bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;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>Neutral Grey Ramps: Cool, Neutral, Warm — 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}
.cd{border-radius:12px;padding:12px;display:grid;gap:6px;justify-items:start;font-size:12.5px;background:var(--g1);color:var(--g8);border:1px solid var(--g3);transition:background .2s,color .2s}.cd b{font-size:15px;color:var(--g9)}.cd span{color:var(--g6)}.cd button{padding:6px 14px;border-radius:99px;background:var(--g8);color:var(--g0);font-weight:700;font-size:12px;pointer-events:none}.rp{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:3px}.rp span{height:44px;border-radius:6px;font-size:8px;display:flex;align-items:flex-end;justify-content:center;padding-bottom:3px;border:1px solid rgba(0,0,0,.08)}@media (prefers-reduced-motion:reduce){.cd{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="Ramp"><button data-p="0" aria-pressed="true">Cool</button><button data-p="1" aria-pressed="false">Neutral</button><button data-p="2" aria-pressed="false">Warm</button></div><div class="cd" id="cd"><b>Project notes</b><span>Draft the outline and share it with the team.</span><button type="button" tabindex="-1">Share</button></div><div class="rp" id="rp"></div></div>
</div>
<script>
const H=[[220,14],[0,0],[38,12]],cd=document.getElementById('cd'),rp=document.getElementById('rp'),bs=[...document.querySelectorAll('#pre button')],L=[98,94,88,78,62,46,32,20,10,6];let p=0;
function hex(h,s,l){s/=100;l/=100;const a=s*Math.min(l,1-l),f=n=>{const k=(n+h/30)%12,c=l-a*Math.max(-1,Math.min(k-3,Math.min(9-k,1)));return Math.round(255*c).toString(16).padStart(2,'0');};return '#'+f(0)+f(8)+f(4);}
function up(){const [h,s]=H[p],cs=L.slice(0,10).map(l=>hex(h,s,l));cs.forEach((c,i)=>cd.style.setProperty('--g'+i,c));rp.innerHTML=cs.slice(0,9).map((c,i)=>'<span style="background:'+c+';color:'+(L[i]>55?'#222':'#fff')+'">'+(i+1)+'</span>').join('');bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;up();}));up();
</script>
</body></html>