Increasing Amygdala Purple for shadcn/ui

Increasing Amygdala Purple is a shadcn/ui theme built around a deep purple primary color (#661461) with neutral gray accents (#d2d1d1). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the deep purple primary (#661461) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7fcsnow
#000000black
Foreground
#090108black
#f8f7f8whitesmoke
Card
#fdf7fcsnow
#000000black
Card foreground
#090108black
#f8f7f8whitesmoke
Popover
#fdf7fcsnow
#000000black
Popover foreground
#090108black
#f8f7f8whitesmoke
Primary
#661461purple
#661461purple
Primary foreground
#f2bbeethistle
#f2bbeethistle
Secondary
#d2d1d1lightgrey
#161216black
Secondary foreground
#393839darkslategray
#b6a5b4darkgray
Muted
#f4e6f3lavenderblush
#190b18black
Muted foreground
#685a67dimgray
#a597a4darkgray
Accent
#d2d1d1lightgrey
#161216black
Accent foreground
#393839darkslategray
#b6a5b4darkgray
Destructive
#c12d10firebrick
#e73613orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e6e0e6gainsboro
#1c171cblack
Input
#e6e0e6gainsboro
#1c171cblack
Ring
#661461purple
#661461purple

Contrast

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

Light mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button7.12:1AAA
Secondary button7.63:1AAA
Muted text5.38:1AA
Accent7.63:1AAA
Destructive5.72:1AA
Dark mode
Text on background19.65:1AAA
Text on card19.65:1AAA
Primary button7.12:1AAA
Secondary button7.95:1AAA
Muted text6.86:1AA
Accent7.95:1AAA
Destructive4.24:1AA Large

CSS variables

Paste this into your globals.css to use Increasing Amygdala Purple in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.009 327.637);
  --foreground: oklch(0.106 0.032 329.308);
  --muted: oklch(0.94 0.023 327.788);
  --muted-foreground: oklch(0.486 0.026 328.063);
  --popover: oklch(0.982 0.009 327.637);
  --popover-foreground: oklch(0.106 0.032 329.308);
  --card: oklch(0.982 0.009 327.637);
  --card-foreground: oklch(0.106 0.032 329.308);
  --border: oklch(0.913 0.01 327.655);
  --input: oklch(0.913 0.01 327.655);
  --primary: oklch(0.367 0.145 331.06);
  --primary-foreground: oklch(0.856 0.091 328.541);
  --secondary: oklch(0.861 0.002 327.564);
  --secondary-foreground: oklch(0.34 0.002 327.614);
  --accent: oklch(0.861 0.002 327.564);
  --accent-foreground: oklch(0.34 0.002 327.614);
  --destructive: oklch(0.533 0.188 32.675);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.367 0.145 331.06);
  --chart-1: oklch(0.367 0.145 331.06);
  --chart-2: oklch(0.861 0.002 327.564);
  --chart-3: oklch(0.861 0.002 327.564);
  --chart-4: oklch(0.884 0.001 327.56);
  --chart-5: oklch(0.37 0.149 331.154);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.976 0.003 327.573);
  --muted: oklch(0.176 0.035 329.325);
  --muted-foreground: oklch(0.693 0.024 327.881);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.976 0.003 327.573);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.976 0.003 327.573);
  --border: oklch(0.212 0.013 328.144);
  --input: oklch(0.212 0.013 328.144);
  --primary: oklch(0.367 0.145 331.06);
  --primary-foreground: oklch(0.856 0.091 328.541);
  --secondary: oklch(0.19 0.01 328.047);
  --secondary-foreground: oklch(0.741 0.028 327.915);
  --accent: oklch(0.19 0.01 328.047);
  --accent-foreground: oklch(0.741 0.028 327.915);
  --destructive: oklch(0.607 0.217 32.582);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.367 0.145 331.06);
  --chart-1: oklch(0.367 0.145 331.06);
  --chart-2: oklch(0.19 0.01 328.047);
  --chart-3: oklch(0.19 0.01 328.047);
  --chart-4: oklch(0.223 0.013 328.109);
  --chart-5: oklch(0.37 0.149 331.154);
}