Purple Opulence Octopus is a shadcn/ui theme built around a muted indigo primary color (#5c5397) with muted light indigo accents (#e6e5eb). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the muted indigo primary (#5c5397) on an indigo-tinted background (#06050a).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #06050ablack |
| Foreground | #04020dblack | #fcfcfdwhite |
| Card | #fbfbfeghostwhite | #06050ablack |
| Card foreground | #04020dblack | #fcfcfdwhite |
| Popover | #fbfbfeghostwhite | #06050ablack |
| Popover foreground | #04020dblack | #fcfcfdwhite |
| Primary | #5c5397darkslateblue | #5c5397darkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e6e5eblavender | #2f2d39darkslategray |
| Secondary foreground | #484659darkslategray | #c8c6d2lightgrey |
| Muted | #eae8f2lavender | #0e0d17black |
| Muted foreground | #4e4b63darkslategray | #9f9cb4darkgray |
| Accent | #e6e5eblavender | #2f2d39darkslategray |
| Accent foreground | #484659darkslategray | #c8c6d2lightgrey |
| Destructive | #c1140bfirebrick | #e3180dred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #eeeef2whitesmoke | #1c1b23black |
| Input | #eeeef2whitesmoke | #1c1b23black |
| Ring | #5c5397darkslateblue | #5c5397darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.95:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 6.65:1 | AA |
| Secondary button | 7.31:1 | AAA |
| Muted text | 6.90:1 | AA |
| Accent | 7.31:1 | AAA |
| Destructive | 6.23:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 6.65:1 | AA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 7.24:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 4.78:1 | AA |
Paste this into your globals.css to use Purple Opulence Octopus in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 292.473);
--foreground: oklch(0.102 0.033 288.955);
--muted: oklch(0.936 0.013 292.282);
--muted-foreground: oklch(0.424 0.04 290.695);
--popover: oklch(0.989 0.004 292.473);
--popover-foreground: oklch(0.102 0.033 288.955);
--card: oklch(0.989 0.004 292.473);
--card-foreground: oklch(0.102 0.033 288.955);
--border: oklch(0.95 0.005 292.438);
--input: oklch(0.95 0.005 292.438);
--primary: oklch(0.484 0.107 287.83);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.925 0.007 292.392);
--secondary-foreground: oklch(0.403 0.032 291.014);
--accent: oklch(0.925 0.007 292.392);
--accent-foreground: oklch(0.403 0.032 291.014);
--destructive: oklch(0.515 0.202 29.436);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.484 0.107 287.83);
--chart-1: oklch(0.484 0.107 287.83);
--chart-2: oklch(0.925 0.007 292.392);
--chart-3: oklch(0.925 0.007 292.392);
--chart-4: oklch(0.95 0.005 292.446);
--chart-5: oklch(0.477 0.118 287.167);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.015 291.415);
--foreground: oklch(0.991 0.002 292.503);
--muted: oklch(0.166 0.02 290.136);
--muted-foreground: oklch(0.704 0.035 291.585);
--popover: oklch(0.119 0.015 291.415);
--popover-foreground: oklch(0.991 0.002 292.503);
--card: oklch(0.119 0.015 291.415);
--card-foreground: oklch(0.991 0.002 292.503);
--border: oklch(0.225 0.015 291.226);
--input: oklch(0.225 0.015 291.226);
--primary: oklch(0.484 0.107 287.83);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.305 0.02 291.273);
--secondary-foreground: oklch(0.832 0.016 292.19);
--accent: oklch(0.305 0.02 291.273);
--accent-foreground: oklch(0.832 0.016 292.19);
--destructive: oklch(0.581 0.229 29.464);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.484 0.107 287.83);
--chart-1: oklch(0.484 0.107 287.83);
--chart-2: oklch(0.305 0.02 291.273);
--chart-3: oklch(0.305 0.02 291.273);
--chart-4: oklch(0.333 0.023 291.232);
--chart-5: oklch(0.477 0.118 287.167);
}