PreviewingGo to this paletteOpen in generator
Code
/* Royal Violet Velvet — colorset.net */
:root {
--color-1: #7B1FA2;
--color-2: #8E24AA;
--color-3: #9C27B0;
--color-4: #AB47BC;
--color-5: #BA68C8;
--color-bg: #FDF3FF;
--color-surface: #F4E9F6;
--color-border: #DDD0DF;
--color-text: #624174;
--color-muted: #74667D;
--color-primary: #9C27B0;
--color-on-primary: #FFFFFF;
--color-accent: #A756B4;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #150A1A;
--color-surface: #1F1425;
--color-border: #35283C;
--color-text: #B59CB9;
--color-muted: #8F7C93;
--color-primary: #A22FB7;
--color-on-primary: #FFFFFF;
--color-accent: #A756B4;
--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 #BA68C8 | adjusted for contrast · from #7B1FA2 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #7B1FA2 | adjusted for contrast · from #BA68C8 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | adjusted for contrast · from #9C27B0 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #AB47BC | adjusted for contrast · from #AB47BC |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.69:1 | AAA pass 4.5:1 | |
| Text on surface | 7.06:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 6.30:1 | AA pass 4.5:1 | |
| Label on accent | 4.53:1 | AA pass 4.5:1 | |
| Primary on background | 5.84:1 | AA pass 3:1 | |
| Accent on background | 4.20:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.72:1 | AAA pass 4.5:1 | |
| Text on surface | 7.11:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 5.79:1 | AA pass 4.5:1 | |
| Label on accent | 4.53:1 | AA pass 4.5:1 | |
| Primary on background | 3.33:1 | AA Large pass 3:1 | |
| Accent on background | 4.25: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 | #7B1FA2 (Text 1) | #8E24AA (Text 2) | #9C27B0 (Text 3) | #AB47BC (Text 4) | #BA68C8 (Text 5) |
|---|---|---|---|---|---|
| #7B1FA2 | Same color | 1.17— | 1.30— | 1.70— | 2.31— |
| #8E24AA | 1.17— | Same color | 1.12— | 1.46— | 1.98— |
| #9C27B0 | 1.30— | 1.12— | Same color | 1.31— | 1.77— |
| #AB47BC | 1.70— | 1.46— | 1.31— | Same color | 1.35— |
| #BA68C8 | 2.31— | 1.98— | 1.77— | 1.35— | Same color |
Shades
Shades and tints (50–950)
