Opulent Mauve Hyena for shadcn/ui

Opulent Mauve Hyena is a shadcn/ui theme built around a deep purple primary color (#482346) with muted light purple accents (#d8cad7). The light mode uses a neutral background (#fdf6fd). Dark mode keeps the deep purple primary (#482346) on a neutral background (#070307).

Color palette

TokenLightDark
Background
#fdf6fdsnow
#070307black
Foreground
#0d020cblack
#f9f6f9whitesmoke
Card
#fcf2fcghostwhite
#0b050ablack
Card foreground
#090208black
#fbf9fbsnow
Popover
#fcf2fcghostwhite
#0b050ablack
Popover foreground
#090208black
#fbf9fbsnow
Primary
#482346darkslategray
#482346darkslategray
Primary foreground
#e0beddthistle
#e0beddthistle
Secondary
#d8cad7thistle
#3b2b3adarkslategray
Secondary foreground
#41303fdarkslategray
#d4c4d3thistle
Muted
#f5ebf4whitesmoke
#140a14black
Muted foreground
#6d5f6cdimgray
#a0929fdarkgray
Accent
#d8cad7thistle
#3b2b3adarkslategray
Accent foreground
#41303fdarkslategray
#d4c4d3thistle
Destructive
#94160adarkred
#e52210red
Destructive foreground
#fcd7d4mistyrose
#ffffffwhite
Border
#ede8edlavender
#1d161dblack
Input
#ede8edlavender
#1d161dblack
Ring
#482346darkslategray
#482346darkslategray

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.24:1AAA
Text on card18.83:1AAA
Primary button7.84:1AAA
Secondary button7.77:1AAA
Muted text5.14:1AA
Accent7.77:1AAA
Destructive6.66:1AA
Dark mode
Text on background19.08:1AAA
Text on card19.29:1AAA
Primary button7.84:1AAA
Secondary button7.94:1AAA
Muted text6.55:1AA
Accent7.94:1AAA
Destructive4.60:1AA

CSS variables

Paste this into your globals.css to use Opulent Mauve Hyena in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.011 327.656);
  --foreground: oklch(0.122 0.036 329.504);
  --muted: oklch(0.95 0.016 327.716);
  --muted-foreground: oklch(0.503 0.027 328.066);
  --popover: oklch(0.973 0.017 327.713);
  --popover-foreground: oklch(0.106 0.031 329.259);
  --card: oklch(0.973 0.017 327.713);
  --card-foreground: oklch(0.106 0.031 329.259);
  --border: oklch(0.936 0.009 327.644);
  --input: oklch(0.936 0.009 327.644);
  --primary: oklch(0.321 0.077 329.686);
  --primary-foreground: oklch(0.839 0.057 328.193);
  --secondary: oklch(0.855 0.023 327.808);
  --secondary-foreground: oklch(0.333 0.036 328.543);
  --accent: oklch(0.855 0.023 327.808);
  --accent-foreground: oklch(0.333 0.036 328.543);
  --destructive: oklch(0.429 0.161 30.073);
  --destructive-foreground: oklch(0.91 0.041 24.08);
  --ring: oklch(0.321 0.077 329.686);
  --chart-1: oklch(0.321 0.077 329.686);
  --chart-2: oklch(0.855 0.023 327.808);
  --chart-3: oklch(0.855 0.023 327.808);
  --chart-4: oklch(0.879 0.019 327.758);
  --chart-5: oklch(0.322 0.083 329.837);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.016 328.473);
  --foreground: oklch(0.976 0.004 327.591);
  --muted: oklch(0.165 0.025 328.947);
  --muted-foreground: oklch(0.676 0.025 327.909);
  --popover: oklch(0.127 0.019 328.5);
  --popover-foreground: oklch(0.984 0.003 327.576);
  --card: oklch(0.127 0.019 328.5);
  --card-foreground: oklch(0.984 0.003 327.576);
  --border: oklch(0.212 0.017 328.303);
  --input: oklch(0.212 0.017 328.303);
  --primary: oklch(0.321 0.077 329.686);
  --primary-foreground: oklch(0.839 0.057 328.193);
  --secondary: oklch(0.313 0.035 328.586);
  --secondary-foreground: oklch(0.838 0.028 327.864);
  --accent: oklch(0.313 0.035 328.586);
  --accent-foreground: oklch(0.838 0.028 327.864);
  --destructive: oklch(0.59 0.227 30.092);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.321 0.077 329.686);
  --chart-1: oklch(0.321 0.077 329.686);
  --chart-2: oklch(0.313 0.035 328.586);
  --chart-3: oklch(0.313 0.035 328.586);
  --chart-4: oklch(0.342 0.039 328.615);
  --chart-5: oklch(0.322 0.083 329.837);
}