PreviewingGo to this paletteOpen in generator
Code
/* Royal Violet — colorset.net */
:root {
--color-1: #4B0082;
--color-2: #5E1A99;
--color-3: #7133B0;
--color-4: #844DC7;
--color-5: #9766DE;
--color-bg: #F8F5FF;
--color-surface: #EFEBF9;
--color-border: #D7D1E3;
--color-text: #402A5E;
--color-muted: #6F667E;
--color-primary: #844DC7;
--color-on-primary: #FFFFFF;
--color-accent: #4B0082;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120B1C;
--color-surface: #1C1527;
--color-border: #31293F;
--color-text: #ABA0C2;
--color-muted: #877F99;
--color-primary: #844DC7;
--color-on-primary: #FFFFFF;
--color-accent: #B489F3;
--color-on-accent: #120B1C;
}
}
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 #9766DE | adjusted for contrast · from #4B0082 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #4B0082 | adjusted for contrast · from #9766DE |
| Muted text | derived | derived |
| Primary | from palette · color 4 | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 1 | adjusted for contrast · from #9766DE |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.40:1 | AAA pass 4.5:1 | |
| Text on surface | 10.48:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 5.43:1 | AA pass 4.5:1 | |
| Label on accent | 12.95:1 | AAA pass 4.5:1 | |
| Primary on background | 5.04:1 | AA pass 3:1 | |
| Accent on background | 12.02:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.83:1 | AAA pass 4.5:1 | |
| Text on surface | 7.20:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.07:1 | AA pass 4.5:1 | |
| Label on primary | 5.43:1 | AA pass 4.5:1 | |
| Label on accent | 7.17:1 | AAA pass 4.5:1 | |
| Primary on background | 3.55:1 | AA Large pass 3:1 | |
| Accent on background | 7.17:1 | AAA 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 | #4B0082 (Text 1) | #5E1A99 (Text 2) | #7133B0 (Text 3) | #844DC7 (Text 4) | #9766DE (Text 5) |
|---|---|---|---|---|---|
| #4B0082 | Same color | 1.29— | 1.73— | 2.39— | 3.25AA Large |
| #5E1A99 | 1.29— | Same color | 1.35— | 1.86— | 2.53— |
| #7133B0 | 1.73— | 1.35— | Same color | 1.38— | 1.88— |
| #844DC7 | 2.39— | 1.86— | 1.38— | Same color | 1.36— |
| #9766DE | 3.25AA Large | 2.53— | 1.88— | 1.36— | Same color |
Shades
Shades and tints (50–950)
