Clear Luscious Purple for shadcn/ui

Clear Luscious Purple is a shadcn/ui theme built around a muted violet primary color (#645e73) with muted green accents (#6d735e). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted violet primary (#645e73) on a neutral background (#040208).

Color palette

TokenLightDark
Background
#fcfbfewhite
#040208black
Foreground
#05020dblack
#f9f8fbghostwhite
Card
#f9f8fcghostwhite
#06040cblack
Card foreground
#040209black
#fcfcfdwhite
Popover
#fcfbfewhite
#040208black
Popover foreground
#05020dblack
#f9f8fbghostwhite
Primary
#645e73dimgray
#645e73dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6d735edimgray
#6d735edimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ebf0e0beige
#1a1f0fblack
Muted foreground
#474a3fdarkslategray
#bdc0b5silver
Accent
#6d735edimgray
#6d735edimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d84a0echocolate
#d84a0echocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e4e3e8gainsboro
#1d1c22black
Input
#e4e3e8gainsboro
#1d1c22black
Ring
#645e73dimgray
#645e73dimgray

Contrast

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

Light mode
Text on background19.98:1AAA
Text on card19.47:1AAA
Primary button6.18:1AA
Secondary button4.92:1AA
Muted text7.79:1AAA
Accent4.92:1AA
Destructive4.27:1AA Large
Dark mode
Text on background19.47:1AAA
Text on card19.90:1AAA
Primary button6.18:1AA
Secondary button4.92:1AA
Muted text9.13:1AAA
Accent4.92:1AA
Destructive4.27:1AA Large

CSS variables

Paste this into your globals.css to use Clear Luscious Purple in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 299.253);
  --foreground: oklch(0.108 0.031 298.995);
  --muted: oklch(0.947 0.021 119.689);
  --muted-foreground: oklch(0.404 0.018 120.091);
  --popover: oklch(0.99 0.003 299.253);
  --popover-foreground: oklch(0.108 0.031 298.995);
  --card: oklch(0.98 0.006 299.2);
  --card-foreground: oklch(0.095 0.027 299.363);
  --border: oklch(0.918 0.007 299.173);
  --input: oklch(0.918 0.007 299.173);
  --primary: oklch(0.495 0.034 298.128);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.544 0.032 120.333);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.544 0.032 120.333);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.6 0.187 38.827);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.495 0.034 298.128);
  --chart-1: oklch(0.495 0.034 298.128);
  --chart-2: oklch(0.544 0.032 120.333);
  --chart-3: oklch(0.544 0.032 120.333);
  --chart-4: oklch(0.572 0.034 120.341);
  --chart-5: oklch(0.489 0.044 297.739);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.019 299.343);
  --foreground: oklch(0.982 0.004 299.232);
  --muted: oklch(0.229 0.029 121.601);
  --muted-foreground: oklch(0.801 0.016 119.639);
  --popover: oklch(0.101 0.019 299.343);
  --popover-foreground: oklch(0.982 0.004 299.232);
  --card: oklch(0.115 0.022 299.215);
  --card-foreground: oklch(0.991 0.002 299.269);
  --border: oklch(0.229 0.012 298.405);
  --input: oklch(0.229 0.012 298.405);
  --primary: oklch(0.495 0.034 298.128);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.544 0.032 120.333);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.544 0.032 120.333);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.6 0.187 38.827);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.495 0.034 298.128);
  --chart-1: oklch(0.495 0.034 298.128);
  --chart-2: oklch(0.544 0.032 120.333);
  --chart-3: oklch(0.544 0.032 120.333);
  --chart-4: oklch(0.572 0.034 120.341);
  --chart-5: oklch(0.489 0.044 297.739);
}