Middle Red Purple Ocelot is a shadcn/ui theme built around a deep violet primary color (#260a33) with deep purple accents (#330a2c). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep violet primary (#260a33) on a neutral background (#060307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060307black |
| Foreground | #0a020dblack | #faf8fcghostwhite |
| Card | #fcfcfcsnow | #09050ablack |
| Card foreground | #060109black | #fdfcfdwhite |
| Popover | #ffffffwhite | #060307black |
| Popover foreground | #0a020dblack | #faf8fcghostwhite |
| Primary | #260a33midnightblue | #260a33midnightblue |
| Primary foreground | #c987e8orchid | #c987e8orchid |
| Secondary | #110a33black | #110a33black |
| Secondary foreground | #9987e8mediumpurple | #9987e8mediumpurple |
| Muted | #efeef1whitesmoke | #0f0e11black |
| Muted foreground | #504e55darkslategray | #abaab1darkgray |
| Accent | #330a2cblack | #330a2cblack |
| Accent foreground | #e887d6violet | #e887d6violet |
| Destructive | #ae1a0ffirebrick | #ef4f43tomato |
| Destructive foreground | #fef2f1seashell | #ffffffwhite |
| Border | #edeceewhitesmoke | #1a181bblack |
| Input | #edeceewhitesmoke | #1a181bblack |
| Ring | #260a33midnightblue | #260a33midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 6.26:1 | AA |
| Muted text | 7.11:1 | AAA |
| Accent | 7.26:1 | AAA |
| Destructive | 6.52:1 | AA |
| Text on background | 19.41:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 6.26:1 | AA |
| Muted text | 8.35:1 | AAA |
| Accent | 7.26:1 | AAA |
| Destructive | 3.58:1 | AA Large |
Paste this into your globals.css to use Middle Red Purple Ocelot in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.115 0.037 317.435);
--muted: oklch(0.952 0.003 294.759);
--muted-foreground: oklch(0.429 0.011 294.357);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.115 0.037 317.435);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.1 0.032 318.088);
--border: oklch(0.945 0.003 315.416);
--input: oklch(0.945 0.003 315.416);
--primary: oklch(0.216 0.081 313.028);
--primary-foreground: oklch(0.726 0.152 314.458);
--secondary: oklch(0.187 0.077 284.459);
--secondary-foreground: oklch(0.68 0.141 290.58);
--accent: oklch(0.234 0.081 336.078);
--accent-foreground: oklch(0.752 0.153 334.071);
--destructive: oklch(0.481 0.183 29.647);
--destructive-foreground: oklch(0.97 0.013 22.368);
--ring: oklch(0.216 0.081 313.028);
--chart-1: oklch(0.216 0.081 313.028);
--chart-2: oklch(0.187 0.077 284.459);
--chart-3: oklch(0.234 0.081 336.078);
--chart-4: oklch(0.21 0.093 283.401);
--chart-5: oklch(0.216 0.084 312.865);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.014 316.545);
--foreground: oklch(0.983 0.005 315.407);
--muted: oklch(0.166 0.005 294.248);
--muted-foreground: oklch(0.741 0.009 294.589);
--popover: oklch(0.109 0.014 316.545);
--popover-foreground: oklch(0.983 0.005 315.407);
--card: oklch(0.125 0.016 316.545);
--card-foreground: oklch(0.991 0.002 315.417);
--border: oklch(0.213 0.006 315.317);
--input: oklch(0.213 0.006 315.317);
--primary: oklch(0.216 0.081 313.028);
--primary-foreground: oklch(0.726 0.152 314.458);
--secondary: oklch(0.187 0.077 284.459);
--secondary-foreground: oklch(0.68 0.141 290.58);
--accent: oklch(0.234 0.081 336.078);
--accent-foreground: oklch(0.752 0.153 334.071);
--destructive: oklch(0.647 0.198 28.009);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.216 0.081 313.028);
--chart-1: oklch(0.216 0.081 313.028);
--chart-2: oklch(0.187 0.077 284.459);
--chart-3: oklch(0.234 0.081 336.078);
--chart-4: oklch(0.21 0.093 283.401);
--chart-5: oklch(0.216 0.084 312.865);
}