PreviewingGo to this paletteOpen in generator
Code
/* Purple Royal — colorset.net */
:root {
--color-1: #2D1B69;
--color-2: #4C1D95;
--color-3: #5B21B6;
--color-4: #7C3AED;
--color-5: #8B5CF6;
--color-bg: #F7F5FF;
--color-surface: #EDEBFA;
--color-border: #D5D2E4;
--color-text: #2C2458;
--color-muted: #686780;
--color-primary: #7C3AED;
--color-on-primary: #FFFFFF;
--color-accent: #4C1D95;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0E0D1E;
--color-surface: #181729;
--color-border: #2C2B41;
--color-text: #A7A1C4;
--color-muted: #84809A;
--color-primary: #7C3AED;
--color-on-primary: #FFFFFF;
--color-accent: #655BAE;
--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 #8B5CF6 | adjusted for contrast · from #2D1B69 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #2D1B69 | adjusted for contrast · from #8B5CF6 |
| 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 #7C3AED |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.97:1 | AAA pass 4.5:1 | |
| Text on surface | 11.91:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.07:1 | AA pass 4.5:1 | |
| Label on primary | 5.70:1 | AA pass 4.5:1 | |
| Label on accent | 10.95:1 | AAA pass 4.5:1 | |
| Primary on background | 5.28:1 | AA pass 3:1 | |
| Accent on background | 10.15:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.80:1 | AAA pass 4.5:1 | |
| Text on surface | 7.15:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 5.70:1 | AA pass 4.5:1 | |
| Label on accent | 5.74:1 | AA pass 4.5:1 | |
| Primary on background | 3.37:1 | AA Large pass 3:1 | |
| Accent on background | 3.34: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 | #2D1B69 (Text 1) | #4C1D95 (Text 2) | #5B21B6 (Text 3) | #7C3AED (Text 4) | #8B5CF6 (Text 5) |
|---|---|---|---|---|---|
| #2D1B69 | Same color | 1.30— | 1.59— | 2.50— | 3.37AA Large |
| #4C1D95 | 1.30— | Same color | 1.22— | 1.92— | 2.59— |
| #5B21B6 | 1.59— | 1.22— | Same color | 1.58— | 2.12— |
| #7C3AED | 2.50— | 1.92— | 1.58— | Same color | 1.35— |
| #8B5CF6 | 3.37AA Large | 2.59— | 2.12— | 1.35— | Same color |
Shades
Shades and tints (50–950)
