Palette Families Compared
Five palette families (pastel, neon, earth, jewel, mono) applied to the same card, with their hex values.
AI prompt
Set of five identical clean app cards, each in a different colour family: soft pastel pinks and mints, neon cyan and magenta on near-black, earthy terracotta olive and cream, deep jewel emerald sapphire and ruby, and a single-hue blue monochrome ramp, each card with a heading, a short line of text, a button and five small swatch squares underneath, flat modern style. Negative: gradients, photos, clutter, text errors. Reduced motion: static set.About this pattern
Definition
Palettes fall into families with a recognisable feel. Pastels are soft and friendly, neons are loud and digital, earth tones are warm and natural, jewel tones are rich and premium, monochrome is calm and serious. Trying one family on the same layout shows how much personality colour adds before any other change.
When to use it
- Pastel: high lightness, low to medium saturation, dark text needed.
- Neon: very high saturation on a dark background.
- Earth: browns, olives, terracotta, cream.
- Jewel: deep saturated hues such as emerald, sapphire, ruby.
- Mono: one hue in several lightness steps.
- Keep to five colours and check text contrast.
What the controls do
- Five family buttons; the card and swatches update, hex codes are listed.
Motion & timing
- Colours change over 200ms.
- Reduced motion: no transition.
Tips & variations
- Neon on white fails contrast; place it on dark surfaces.
- Pastels need a dark text colour to pass contrast.
Code of this live preview
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Family"><button data-p="0" aria-pressed="true">Pastel</button><button data-p="1" aria-pressed="false">Neon</button><button data-p="2" aria-pressed="false">Earth</button><button data-p="3" aria-pressed="false">Jewel</button><button data-p="4" aria-pressed="false">Mono</button></div><div class="cd" id="cd"><b>Weekend plans</b><span>Pick a place and invite friends.</span><button type="button" tabindex="-1">Invite</button></div><div class="sw5" id="sw5"></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(--p1);color:var(--tx);transition:background .2s,color .2s}.cd b{font-size:15px}.cd button{padding:6px 14px;border-radius:99px;background:var(--p3);color:var(--bt);font-weight:700;font-size:12px;pointer-events:none}.sw5{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.sw5 span{border-radius:8px;padding:16px 2px 4px;font-size:9.5px;text-align:center;font-weight:600;border:1px solid rgba(0,0,0,.08)}.sw5 span.dk{color:#fff}@media (prefers-reduced-motion:reduce){.cd{transition:none}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const F=[['#fde2ea','#c7f0e1','#ffe9b8','#d9d3ff','#bfe3ff','#4a3a44','#4a3a44'],['#0b0d17','#00e5ff','#ff2bd6','#b6ff00','#1b1f33','#e8f1ff','#0b0d17'],['#f3e8d4','#c1683f','#7a8450','#e2c08d','#5b4636','#4b3a2c','#fff'],['#10261f','#1f9d6b','#2753b8','#b3263e','#d8b04a','#eaf5ef','#fff'],['#e8f0ff','#b9cfff','#3f6fe0','#2a55c4','#1a3f9e','#12306f','#fff']],cd=document.getElementById('cd'),sw5=document.getElementById('sw5'),bs=[...document.querySelectorAll('#pre button')];let p=0;
function lum(h){const n=parseInt(h.slice(1),16),c=[n>>16,(n>>8)&255,n&255].map(v=>{v/=255;return v<=.03928?v/12.92:Math.pow((v+.055)/1.055,2.4);});return .2126*c[0]+.7152*c[1]+.0722*c[2];}
function up(){const f=F[p];cd.style.setProperty('--p1',f[0]);cd.style.setProperty('--p3',f[2]);cd.style.setProperty('--tx',f[5]);cd.style.setProperty('--bt',f[6]);sw5.innerHTML=f.slice(0,5).map(h=>'<span class="'+(lum(h)<.3?'dk':'')+'" style="background:'+h+'">'+h+'</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>Palette Families Compared — 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(--p1);color:var(--tx);transition:background .2s,color .2s}.cd b{font-size:15px}.cd button{padding:6px 14px;border-radius:99px;background:var(--p3);color:var(--bt);font-weight:700;font-size:12px;pointer-events:none}.sw5{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.sw5 span{border-radius:8px;padding:16px 2px 4px;font-size:9.5px;text-align:center;font-weight:600;border:1px solid rgba(0,0,0,.08)}.sw5 span.dk{color:#fff}@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="Family"><button data-p="0" aria-pressed="true">Pastel</button><button data-p="1" aria-pressed="false">Neon</button><button data-p="2" aria-pressed="false">Earth</button><button data-p="3" aria-pressed="false">Jewel</button><button data-p="4" aria-pressed="false">Mono</button></div><div class="cd" id="cd"><b>Weekend plans</b><span>Pick a place and invite friends.</span><button type="button" tabindex="-1">Invite</button></div><div class="sw5" id="sw5"></div></div>
</div>
<script>
const F=[['#fde2ea','#c7f0e1','#ffe9b8','#d9d3ff','#bfe3ff','#4a3a44','#4a3a44'],['#0b0d17','#00e5ff','#ff2bd6','#b6ff00','#1b1f33','#e8f1ff','#0b0d17'],['#f3e8d4','#c1683f','#7a8450','#e2c08d','#5b4636','#4b3a2c','#fff'],['#10261f','#1f9d6b','#2753b8','#b3263e','#d8b04a','#eaf5ef','#fff'],['#e8f0ff','#b9cfff','#3f6fe0','#2a55c4','#1a3f9e','#12306f','#fff']],cd=document.getElementById('cd'),sw5=document.getElementById('sw5'),bs=[...document.querySelectorAll('#pre button')];let p=0;
function lum(h){const n=parseInt(h.slice(1),16),c=[n>>16,(n>>8)&255,n&255].map(v=>{v/=255;return v<=.03928?v/12.92:Math.pow((v+.055)/1.055,2.4);});return .2126*c[0]+.7152*c[1]+.0722*c[2];}
function up(){const f=F[p];cd.style.setProperty('--p1',f[0]);cd.style.setProperty('--p3',f[2]);cd.style.setProperty('--tx',f[5]);cd.style.setProperty('--bt',f[6]);sw5.innerHTML=f.slice(0,5).map(h=>'<span class="'+(lum(h)<.3?'dk':'')+'" style="background:'+h+'">'+h+'</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>