PreviewingGo to this paletteOpen in generator
Code
/* Amethyst Dusk — colorset.net */
:root {
--color-1: #4B0082;
--color-2: #6A0DAD;
--color-3: #9966CC;
--color-4: #AA98A9;
--color-5: #D3AAD5;
--color-bg: #FEF2FE;
--color-surface: #F5E9F5;
--color-border: #DED0DE;
--color-text: #402A5E;
--color-muted: #6F667E;
--color-primary: #6A0DAD;
--color-on-primary: #FFFFFF;
--color-accent: #A079A2;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120B1C;
--color-surface: #1C1527;
--color-border: #31293F;
--color-text: #CBB0CC;
--color-muted: #8F7B90;
--color-primary: #8A3ED2;
--color-on-primary: #FFFFFF;
--color-accent: #AA98A9;
--color-on-accent: #120B1C;
}
}
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 #D3AAD5 | adjusted for contrast · from #4B0082 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #4B0082 | adjusted for contrast · from #D3AAD5 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | adjusted for contrast · from #9966CC |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #AA98A9 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.31:1 | AAA pass 4.5:1 | |
| Text on surface | 10.44:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 9.24:1 | AAA pass 4.5:1 | |
| Label on accent | 5.75:1 | AA pass 4.5:1 | |
| Primary on background | 8.51:1 | AAA pass 3:1 | |
| Accent on background | 3.36:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.74:1 | AAA pass 4.5:1 | |
| Text on surface | 8.96:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 5.68:1 | AA pass 4.5:1 | |
| Label on accent | 7.13:1 | AAA pass 4.5:1 | |
| Primary on background | 3.39:1 | AA Large pass 3:1 | |
| Accent on background | 7.13: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 | #4B0082 (Text 1) | #6A0DAD (Text 2) | #9966CC (Text 3) | #AA98A9 (Text 4) | #D3AAD5 (Text 5) |
|---|---|---|---|---|---|
| #4B0082 | Same color | 1.40— | 3.16AA Large | 4.79AA | 6.46AA |
| #6A0DAD | 1.40— | Same color | 2.25— | 3.42AA Large | 4.61AA |
| #9966CC | 3.16AA Large | 2.25— | Same color | 1.52— | 2.04— |
| #AA98A9 | 4.79AA | 3.42AA Large | 1.52— | Same color | 1.35— |
| #D3AAD5 | 6.46AA | 4.61AA | 2.04— | 1.35— | Same color |
Shades
Shades and tints (50–950)
