PreviewingGo to this paletteOpen in generator
Code
/* Amethyst Dark — colorset.net */
:root {
--color-1: #2E0854;
--color-2: #4B0082;
--color-3: #5E35B1;
--color-4: #673AB7;
--color-5: #9575CD;
--color-bg: #F8F5FF;
--color-surface: #EFEBF9;
--color-border: #D7D2E3;
--color-text: #2B1547;
--color-muted: #6F6680;
--color-primary: #673AB7;
--color-on-primary: #FFFFFF;
--color-accent: #8666BD;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120C1C;
--color-surface: #1C1627;
--color-border: #31293F;
--color-text: #ACA1C3;
--color-muted: #857D97;
--color-primary: #784DCB;
--color-on-primary: #FFFFFF;
--color-accent: #7658A7;
--color-on-accent: #FFFFFF;
}
}
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 | adjusted for contrast · from #9575CD | adjusted for contrast · from #2E0854 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #2E0854 | adjusted for contrast · from #9575CD |
| Muted text | derived | derived |
| Primary | from palette · color 4 | adjusted for contrast · from #673AB7 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #9575CD | adjusted for contrast · from #673AB7 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.99:1 | AAA pass 4.5:1 | |
| Text on surface | 13.78:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 7.33:1 | AAA pass 4.5:1 | |
| Label on accent | 4.52:1 | AA pass 4.5:1 | |
| Primary on background | 6.80:1 | AA pass 3:1 | |
| Accent on background | 4.19:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.89:1 | AAA pass 4.5:1 | |
| Text on surface | 7.24:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.91:1 | AA pass 4.5:1 | |
| Label on primary | 5.64:1 | AA pass 4.5:1 | |
| Label on accent | 5.64:1 | AA pass 4.5:1 | |
| Primary on background | 3.40:1 | AA Large pass 3:1 | |
| Accent on background | 3.40:1 | AA Large 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 | #2E0854 (Text 1) | #4B0082 (Text 2) | #5E35B1 (Text 3) | #673AB7 (Text 4) | #9575CD (Text 5) |
|---|---|---|---|---|---|
| #2E0854 | Same color | 1.27— | 2.05— | 2.24— | 4.46AA Large |
| #4B0082 | 1.27— | Same color | 1.62— | 1.77— | 3.52AA Large |
| #5E35B1 | 2.05— | 1.62— | Same color | 1.09— | 2.18— |
| #673AB7 | 2.24— | 1.77— | 1.09— | Same color | 1.99— |
| #9575CD | 4.46AA Large | 3.52AA Large | 2.18— | 1.99— | Same color |
Shades
Shades and tints (50–950)
