PreviewingGo to this paletteOpen in generator
Code
/* Royal Purple — colorset.net */
:root {
--color-1: #2F1B69;
--color-2: #44318D;
--color-3: #6C5CE7;
--color-4: #A29BFE;
--color-5: #DDBDFF;
--color-bg: #F9F4FF;
--color-surface: #F1EAF8;
--color-border: #D9D1E2;
--color-text: #2E2458;
--color-muted: #696781;
--color-primary: #6C5CE7;
--color-on-primary: #FFFFFF;
--color-accent: #886AA6;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0D1E;
--color-surface: #191729;
--color-border: #2D2B41;
--color-text: #D5C5E7;
--color-muted: #8A7E97;
--color-primary: #6C5CE7;
--color-on-primary: #FFFFFF;
--color-accent: #675BAE;
--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 #DDBDFF | adjusted for contrast · from #2F1B69 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #2F1B69 | adjusted for contrast · from #DDBDFF |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #6C5CE7 | adjusted for contrast · from #6C5CE7 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.86:1 | AAA pass 4.5:1 | |
| Text on surface | 11.84:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 4.86:1 | AA pass 4.5:1 | |
| Label on accent | 4.51:1 | AA pass 4.5:1 | |
| Primary on background | 4.49:1 | AA Large pass 3:1 | |
| Accent on background | 4.17:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.83:1 | AAA pass 4.5:1 | |
| Text on surface | 10.84:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 4.86:1 | AA pass 4.5:1 | |
| Label on accent | 5.70:1 | AA pass 4.5:1 | |
| Primary on background | 3.94:1 | AA Large pass 3:1 | |
| Accent on background | 3.36: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 | #2F1B69 (Text 1) | #44318D (Text 2) | #6C5CE7 (Text 3) | #A29BFE (Text 4) | #DDBDFF (Text 5) |
|---|---|---|---|---|---|
| #2F1B69 | Same color | 1.40— | 2.92— | 5.84AA | 8.64AAA |
| #44318D | 1.40— | Same color | 2.09— | 4.18AA Large | 6.18AA |
| #6C5CE7 | 2.92— | 2.09— | Same color | 2.00— | 2.96— |
| #A29BFE | 5.84AA | 4.18AA Large | 2.00— | Same color | 1.48— |
| #DDBDFF | 8.64AAA | 6.18AA | 2.96— | 1.48— | Same color |
Shades
Shades and tints (50–950)
