PreviewingGo to this paletteOpen in generator
Code
/* Royal Plum Night — colorset.net */
:root {
--color-1: #2E0854;
--color-2: #4B0082;
--color-3: #483D8B;
--color-4: #6A5ACD;
--color-5: #9370DB;
--color-bg: #F7F5FF;
--color-surface: #EEEBFA;
--color-border: #D6D2E4;
--color-text: #2B1547;
--color-muted: #6F6680;
--color-primary: #6A5ACD;
--color-on-primary: #FFFFFF;
--color-accent: #4B0082;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120C1C;
--color-surface: #1C1627;
--color-border: #31293F;
--color-text: #A9A1C3;
--color-muted: #867F9A;
--color-primary: #6A5ACD;
--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 #9370DB | adjusted for contrast · from #2E0854 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #2E0854 | adjusted for contrast · from #9370DB |
| Muted text | derived | derived |
| Primary | from palette · color 4 | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #6A5ACD |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.96:1 | AAA pass 4.5:1 | |
| Text on surface | 13.76:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 5.31:1 | AA pass 4.5:1 | |
| Label on accent | 12.95:1 | AAA pass 4.5:1 | |
| Primary on background | 4.92:1 | AA pass 3:1 | |
| Accent on background | 12.00:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.83:1 | AAA pass 4.5:1 | |
| Text on surface | 7.18:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 5.31:1 | AA pass 4.5:1 | |
| Label on accent | 5.64:1 | AA pass 4.5:1 | |
| Primary on background | 3.61: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) | #483D8B (Text 3) | #6A5ACD (Text 4) | #9370DB (Text 5) |
|---|---|---|---|---|---|
| #2E0854 | Same color | 1.27— | 1.81— | 3.09AA Large | 4.36AA Large |
| #4B0082 | 1.27— | Same color | 1.43— | 2.44— | 3.44AA Large |
| #483D8B | 1.81— | 1.43— | Same color | 1.71— | 2.41— |
| #6A5ACD | 3.09AA Large | 2.44— | 1.71— | Same color | 1.41— |
| #9370DB | 4.36AA Large | 3.44AA Large | 2.41— | 1.41— | Same color |
Shades
Shades and tints (50–950)
