PreviewingGo to this paletteOpen in generator
Code
/* Potion Shelf — colorset.net */
:root {
--color-1: #1B1630;
--color-2: #8A4FFF;
--color-3: #35C7A5;
--color-4: #F2C14E;
--color-5: #EEE9FA;
--color-bg: #EEE9FA;
--color-surface: #F4F2FC;
--color-border: #D6D0E4;
--color-text: #1B1630;
--color-muted: #6A6680;
--color-primary: #8A4FFF;
--color-on-primary: #FFFFFF;
--color-accent: #946F00;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1B1630;
--color-surface: #25213C;
--color-border: #3A374E;
--color-text: #EEE9FA;
--color-muted: #8E8999;
--color-primary: #8A4FFF;
--color-on-primary: #FFFFFF;
--color-accent: #F2C14E;
--color-on-accent: #1B1630;
}
}
Color values
| Color | HEX | RGB | HSL | OKLCH |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 |
Roles & contrast
Original colors are kept; roles are adjusted only when needed for contrast.
| Role | Light mode | Dark mode |
|---|---|---|
| Background | from palette · color 5 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #35C7A5 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.68:1 | AAA pass 4.5:1 | |
| Text on surface | 15.74:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.62:1 | AA pass 4.5:1 | |
| Label on primary | 4.52:1 | AA pass 4.5:1 | |
| Label on accent | 4.63:1 | AA pass 4.5:1 | |
| Primary on background | 3.81:1 | AA Large pass 3:1 | |
| Accent on background | 3.90:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.68:1 | AAA pass 4.5:1 | |
| Text on surface | 12.98:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.14:1 | AA pass 4.5:1 | |
| Label on primary | 4.52:1 | AA pass 4.5:1 | |
| Label on accent | 10.39:1 | AAA pass 4.5:1 | |
| Primary on background | 3.86:1 | AA Large pass 3:1 | |
| Accent on background | 10.39:1 | AAA pass 3:1 |
Every color on every color
Rows are backgrounds and columns are text colors, using the actual palette colors. Ratios: AAA 7:1, AA 4.5:1, AA large text 3:1.
| Background / Text | #1B1630 (Text 1) | #8A4FFF (Text 2) | #35C7A5 (Text 3) | #F2C14E (Text 4) | #EEE9FA (Text 5) |
|---|---|---|---|---|---|
| #1B1630 | Same color | 3.86AA Large | 8.19AAA | 10.39AAA | 14.68AAA |
| #8A4FFF | 3.86AA Large | Same color | 2.12— | 2.70— | 3.81AA Large |
| #35C7A5 | 8.19AAA | 2.12— | Same color | 1.27— | 1.79— |
| #F2C14E | 10.39AAA | 2.70— | 1.27— | Same color | 1.41— |
| #EEE9FA | 14.68AAA | 3.81AA Large | 1.79— | 1.41— | Same color |
Shades
Shades and tints (50–950)
