Intact Old Fashioned Purple for shadcn/ui

Intact Old Fashioned Purple is a shadcn/ui theme built around a muted purple primary color (#764768) with muted light purple accents (#d9c9d4). The light mode uses a neutral background (#fefbfd). Dark mode keeps the muted purple primary (#764768) on a purple-tinted background (#10050c).

Color palette

TokenLightDark
Background
#fefbfdsnow
#10050cblack
Foreground
#040103black
#fdfcfdwhite
Card
#fdf7fbsnow
#14060fblack
Card foreground
#000000black
#ffffffwhite
Popover
#fefbfdsnow
#10050cblack
Popover foreground
#040103black
#fdfcfdwhite
Primary
#764768dimgray
#764768dimgray
Primary foreground
#f9f5f8whitesmoke
#f9f5f8whitesmoke
Secondary
#d9c9d4thistle
#2b2b2bdarkslategray
Secondary foreground
#422f3cdarkslategray
#c4c4c4silver
Muted
#e5e0e4gainsboro
#1f1a1ablack
Muted foreground
#6f5d6adimgray
#a29090rosybrown
Accent
#d9c9d4thistle
#2b2b2bdarkslategray
Accent foreground
#422f3cdarkslategray
#c4c4c4silver
Destructive
#d31b03firebrick
#fb2509orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#eeededwhitesmoke
#272527darkslategray
Input
#eeededwhitesmoke
#272527darkslategray
Ring
#764768dimgray
#764768dimgray

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card19.88:1AAA
Primary button6.78:1AA
Secondary button7.79:1AAA
Muted text4.68:1AA
Accent7.79:1AAA
Destructive5.34:1AA
Dark mode
Text on background19.58:1AAA
Text on card19.77:1AAA
Primary button6.78:1AA
Secondary button8.07:1AAA
Muted text5.70:1AA
Accent8.07:1AAA
Destructive3.90:1AA Large

CSS variables

Paste this into your globals.css to use Intact Old Fashioned Purple in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 335.939);
  --foreground: oklch(0.086 0.016 336.357);
  --muted: oklch(0.913 0.007 336.017);
  --muted-foreground: oklch(0.5 0.031 336.98);
  --popover: oklch(0.991 0.004 335.939);
  --popover-foreground: oklch(0.086 0.016 336.357);
  --card: oklch(0.982 0.007 336.011);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.946 0.002 335.898);
  --input: oklch(0.946 0.002 335.898);
  --primary: oklch(0.463 0.079 338.856);
  --primary-foreground: oklch(0.975 0.005 335.972);
  --secondary: oklch(0.853 0.023 336.363);
  --secondary-foreground: oklch(0.331 0.035 337.763);
  --accent: oklch(0.853 0.023 336.363);
  --accent-foreground: oklch(0.331 0.035 337.763);
  --destructive: oklch(0.553 0.215 30.711);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.463 0.079 338.856);
  --chart-1: oklch(0.463 0.079 338.856);
  --chart-2: oklch(0.853 0.023 336.363);
  --chart-3: oklch(0.853 0.023 336.363);
  --chart-4: oklch(0.878 0.019 336.267);
  --chart-5: oklch(0.463 0.089 339.199);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.027 337.997);
  --foreground: oklch(0.992 0.002 335.905);
  --muted: oklch(0.222 0.008 17.771);
  --muted-foreground: oklch(0.669 0.022 17.715);
  --popover: oklch(0.137 0.027 337.997);
  --popover-foreground: oklch(0.992 0.002 335.905);
  --card: oklch(0.15 0.031 338.892);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.268 0.004 336.179);
  --input: oklch(0.268 0.004 336.179);
  --primary: oklch(0.463 0.079 338.856);
  --primary-foreground: oklch(0.975 0.005 335.972);
  --secondary: oklch(0.29 0 180);
  --secondary-foreground: oklch(0.821 0 171.87);
  --accent: oklch(0.29 0 180);
  --accent-foreground: oklch(0.821 0 171.87);
  --destructive: oklch(0.632 0.244 30.682);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.463 0.079 338.856);
  --chart-1: oklch(0.463 0.079 338.856);
  --chart-2: oklch(0.29 0 180);
  --chart-3: oklch(0.29 0 180);
  --chart-4: oklch(0.321 0 180);
  --chart-5: oklch(0.463 0.089 339.199);
}