PreviewingGo to this paletteOpen in generator
Code
/* Royal Magenta — colorset.net */
:root {
--color-1: #660066;
--color-2: #8B008B;
--color-3: #9932CC;
--color-4: #BA55D3;
--color-5: #C779D0;
--color-bg: #FEF3FF;
--color-surface: #F4E9F5;
--color-border: #DDD0DF;
--color-text: #552954;
--color-muted: #786377;
--color-primary: #9932CC;
--color-on-primary: #FFFFFF;
--color-accent: #660066;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #180917;
--color-surface: #221322;
--color-border: #392738;
--color-text: #B49BB7;
--color-muted: #8F7B91;
--color-primary: #9932CC;
--color-on-primary: #FFFFFF;
--color-accent: #9C409A;
--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 #C779D0 | adjusted for contrast · from #660066 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #660066 | adjusted for contrast · from #C779D0 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | from palette · color 1 | adjusted for contrast · from #9932CC |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.64:1 | AAA pass 4.5:1 | |
| Text on surface | 9.73: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 | 11.95:1 | AAA pass 4.5:1 | |
| Primary on background | 5.29:1 | AA pass 3:1 | |
| Accent on background | 11.09:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.62:1 | AAA pass 4.5:1 | |
| Text on surface | 7.02:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 5.70:1 | AA pass 4.5:1 | |
| Label on accent | 5.81:1 | AA pass 4.5:1 | |
| Primary on background | 3.38:1 | AA Large pass 3:1 | |
| Accent on background | 3.31: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 | #660066 (Text 1) | #8B008B (Text 2) | #9932CC (Text 3) | #BA55D3 (Text 4) | #C779D0 (Text 5) |
|---|---|---|---|---|---|
| #660066 | Same color | 1.41— | 2.10— | 3.03AA Large | 4.03AA Large |
| #8B008B | 1.41— | Same color | 1.49— | 2.16— | 2.86— |
| #9932CC | 2.10— | 1.49— | Same color | 1.45— | 1.92— |
| #BA55D3 | 3.03AA Large | 2.16— | 1.45— | Same color | 1.33— |
| #C779D0 | 4.03AA Large | 2.86— | 1.92— | 1.33— | Same color |
Shades
Shades and tints (50–950)
