Rough Wisteria Purple for shadcn/ui

Rough Wisteria Purple is a shadcn/ui theme built around a muted violet primary color (#865f9b) with muted purple accents (#9b5f92). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the muted violet primary (#865f9b) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbf7fdghostwhite
#000000black
Foreground
#000000black
#faf9fbghostwhite
Card
#fbf7fdghostwhite
#000000black
Card foreground
#000000black
#faf9fbghostwhite
Popover
#fbf7fdghostwhite
#000000black
Popover foreground
#000000black
#faf9fbghostwhite
Primary
#865f9bslategray
#865f9bslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#685f9bslategray
#685f9bslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d8d5ecgainsboro
#16132ablack
Muted foreground
#4e4c5ddarkslategray
#a5a2b3darkgray
Accent
#9b5f92gray
#9b5f92gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#640c02maroon
#eb1c05red
Destructive foreground
#fda59blightsalmon
#ffffffwhite
Border
#e8e7e9lavender
#272527darkslategray
Input
#e8e7e9lavender
#272527darkslategray
Ring
#865f9bslategray
#865f9bslategray

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button5.09:1AA
Secondary button5.68:1AA
Muted text5.81:1AA
Accent4.72:1AA
Destructive6.92:1AA
Dark mode
Text on background20.00:1AAA
Text on card20.00:1AAA
Primary button5.09:1AA
Secondary button5.68:1AA
Muted text7.24:1AAA
Accent4.72:1AA
Destructive4.47:1AA Large

CSS variables

Paste this into your globals.css to use Rough Wisteria Purple in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.008 314.173);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.882 0.032 292.621);
  --muted-foreground: oklch(0.424 0.028 292.051);
  --popover: oklch(0.981 0.008 314.173);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.008 314.173);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.93 0.002 314.207);
  --input: oklch(0.93 0.002 314.207);
  --primary: oklch(0.549 0.1 313.161);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.52 0.093 289.621);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.569 0.104 332.428);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.324 0.122 31.256);
  --destructive-foreground: oklch(0.806 0.106 26.587);
  --ring: oklch(0.549 0.1 313.161);
  --chart-1: oklch(0.549 0.1 313.161);
  --chart-2: oklch(0.52 0.093 289.621);
  --chart-3: oklch(0.569 0.104 332.428);
  --chart-4: oklch(0.547 0.09 289.948);
  --chart-5: oklch(0.546 0.112 313.001);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.004 314.198);
  --muted: oklch(0.204 0.045 288.607);
  --muted-foreground: oklch(0.721 0.024 292.669);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.004 314.198);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.983 0.004 314.198);
  --border: oklch(0.267 0.005 314.122);
  --input: oklch(0.267 0.005 314.122);
  --primary: oklch(0.549 0.1 313.161);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.52 0.093 289.621);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.569 0.104 332.428);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.598 0.235 30.313);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.549 0.1 313.161);
  --chart-1: oklch(0.549 0.1 313.161);
  --chart-2: oklch(0.52 0.093 289.621);
  --chart-3: oklch(0.569 0.104 332.428);
  --chart-4: oklch(0.547 0.09 289.948);
  --chart-5: oklch(0.546 0.112 313.001);
}