Quiet Lusty Lavender for shadcn/ui

Quiet Lusty Lavender is a shadcn/ui theme built around a violet primary color (#875abf) with purple accents (#ba5abf). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#875abf) on a violet-tinted background (#0a050f).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a050fblack
Foreground
#000000black
#ffffffwhite
Card
#ffffffwhite
#0a050fblack
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#0a050fblack
Popover foreground
#000000black
#ffffffwhite
Primary
#875abfslateblue
#875abfslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#5a5fbfslateblue
#5a5fbfslateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d6d7e0gainsboro
#1f1f29black
Muted foreground
#454654darkslategray
#abacbadarkgray
Accent
#ba5abfmediumorchid
#ba5abfmediumorchid
Accent foreground
#000000black
#000000black
Destructive
#811803maroon
#ea2c06orangered
Destructive foreground
#fdc5b9lightpink
#ffffffwhite
Border
#eae8eelavender
#211c26black
Input
#eae8eelavender
#211c26black
Ring
#875abfslateblue
#875abfslateblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button4.95:1AA
Secondary button5.50:1AA
Muted text6.48:1AA
Accent5.28:1AA
Destructive6.68:1AA
Dark mode
Text on background20.13:1AAA
Text on card20.13:1AAA
Primary button4.95:1AA
Secondary button5.50:1AA
Muted text7.25:1AAA
Accent5.28:1AA
Destructive4.32:1AA Large

CSS variables

Paste this into your globals.css to use Quiet Lusty Lavender in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.881 0.013 283.714);
  --muted-foreground: oklch(0.398 0.024 282.849);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.933 0.009 306.31);
  --input: oklch(0.933 0.009 306.31);
  --primary: oklch(0.561 0.155 302.475);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.53 0.148 277.826);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.62 0.176 325.518);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.394 0.143 32.752);
  --destructive-foreground: oklch(0.87 0.067 31.397);
  --ring: oklch(0.561 0.155 302.475);
  --chart-1: oklch(0.561 0.155 302.475);
  --chart-2: oklch(0.53 0.148 277.826);
  --chart-3: oklch(0.62 0.176 325.518);
  --chart-4: oklch(0.562 0.137 278.755);
  --chart-5: oklch(0.558 0.164 302.121);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.131 0.024 306.085);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.244 0.018 282.603);
  --muted-foreground: oklch(0.747 0.021 283.48);
  --popover: oklch(0.131 0.024 306.085);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.131 0.024 306.085);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.237 0.02 305.356);
  --input: oklch(0.237 0.02 305.356);
  --primary: oklch(0.561 0.155 302.475);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.53 0.148 277.826);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.62 0.176 325.518);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.604 0.226 31.958);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.561 0.155 302.475);
  --chart-1: oklch(0.561 0.155 302.475);
  --chart-2: oklch(0.53 0.148 277.826);
  --chart-3: oklch(0.62 0.176 325.518);
  --chart-4: oklch(0.562 0.137 278.755);
  --chart-5: oklch(0.558 0.164 302.121);
}