Royal Hunter Blue Wildcat for shadcn/ui

Royal Hunter Blue Wildcat is a shadcn/ui theme built around a vivid violet primary color (#4d0aeb) with muted light violet accents (#e3e0eb). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#4d0aeb) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040208black
#f7f6f9whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#040208black
#f7f6f9whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#040208black
#f7f6f9whitesmoke
Primary
#4d0aebblueviolet
#4d0aebblueviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e3e0eblavender
#28282adarkslategray
Secondary foreground
#463d5cdarkslategray
#c1c1c3silver
Muted
#efedf3whitesmoke
#0e0c12black
Muted foreground
#49474ddarkslategray
#b4b2b8silver
Accent
#e3e0eblavender
#28282adarkslategray
Accent foreground
#463d5cdarkslategray
#c1c1c3silver
Destructive
#a0350esaddlebrown
#e14a14chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#eaeaeclavender
#1e1d20black
Input
#eaeaeclavender
#1e1d20black
Ring
#4d0aebblueviolet
#4d0aebblueviolet

Contrast

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

Light mode
Text on background20.64:1AAA
Text on card20.64:1AAA
Primary button8.20:1AAA
Secondary button7.77:1AAA
Muted text7.86:1AAA
Accent7.77:1AAA
Destructive7.01:1AAA
Dark mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button8.20:1AAA
Secondary button8.17:1AAA
Muted text9.24:1AAA
Accent8.17:1AAA
Destructive4.03:1AA Large

CSS variables

Paste this into your globals.css to use Royal Hunter Blue Wildcat in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.099 0.022 300.27);
  --muted: oklch(0.948 0.008 299.897);
  --muted-foreground: oklch(0.402 0.01 299.617);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.099 0.022 300.27);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.099 0.022 300.27);
  --border: oklch(0.937 0.003 299.988);
  --input: oklch(0.937 0.003 299.988);
  --primary: oklch(0.462 0.276 279.676);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.913 0.014 299.778);
  --secondary-foreground: oklch(0.383 0.052 297.663);
  --accent: oklch(0.913 0.014 299.778);
  --accent-foreground: oklch(0.383 0.052 297.663);
  --destructive: oklch(0.48 0.149 37.762);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.462 0.276 279.676);
  --chart-1: oklch(0.462 0.276 279.676);
  --chart-2: oklch(0.913 0.014 299.778);
  --chart-3: oklch(0.913 0.014 299.778);
  --chart-4: oklch(0.939 0.01 299.863);
  --chart-5: oklch(0.464 0.281 278.826);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.974 0.005 299.959);
  --muted: oklch(0.161 0.012 298.729);
  --muted-foreground: oklch(0.767 0.009 299.851);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.974 0.005 299.959);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.974 0.005 299.959);
  --border: oklch(0.233 0.006 299.609);
  --input: oklch(0.233 0.006 299.609);
  --primary: oklch(0.462 0.276 279.676);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.278 0.003 299.854);
  --secondary-foreground: oklch(0.811 0.003 299.966);
  --accent: oklch(0.278 0.003 299.854);
  --accent-foreground: oklch(0.811 0.003 299.966);
  --destructive: oklch(0.616 0.196 37.337);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.462 0.276 279.676);
  --chart-1: oklch(0.462 0.276 279.676);
  --chart-2: oklch(0.278 0.003 299.854);
  --chart-3: oklch(0.278 0.003 299.854);
  --chart-4: oklch(0.308 0.004 299.847);
  --chart-5: oklch(0.464 0.281 278.826);
}