PreviewingGo to this paletteOpen in generator
Code
/* Violet Twilight — colorset.net */
:root {
--color-1: #512DA8;
--color-2: #5E35B1;
--color-3: #673AB7;
--color-4: #7986CB;
--color-5: #9FA8DA;
--color-bg: #F4F6FF;
--color-surface: #EAEDFB;
--color-border: #D0D4E6;
--color-text: #4D447B;
--color-muted: #6C6983;
--color-primary: #673AB7;
--color-on-primary: #FFFFFF;
--color-accent: #7E86B6;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0C1E;
--color-surface: #191729;
--color-border: #2D2A41;
--color-text: #A3A9CC;
--color-muted: #7D829C;
--color-primary: #784DCB;
--color-on-primary: #FFFFFF;
--color-accent: #7986CB;
--color-on-accent: #0F0C1E;
}
}
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 #9FA8DA | adjusted for contrast · from #512DA8 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #512DA8 | adjusted for contrast · from #9FA8DA |
| Muted text | derived | derived |
| Primary | from palette · color 3 | adjusted for contrast · from #673AB7 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #7986CB | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.02:1 | AAA pass 4.5:1 | |
| Text on surface | 7.41:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.89:1 | AA pass 4.5:1 | |
| Label on primary | 7.33:1 | AAA pass 4.5:1 | |
| Label on accent | 5.97:1 | AA pass 4.5:1 | |
| Primary on background | 6.80:1 | AA pass 3:1 | |
| Accent on background | 3.26:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.34:1 | AAA pass 4.5:1 | |
| Text on surface | 7.61:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 5.64:1 | AA pass 4.5:1 | |
| Label on accent | 5.57:1 | AA pass 4.5:1 | |
| Primary on background | 3.41:1 | AA Large pass 3:1 | |
| Accent on background | 5.57:1 | AA 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 | #512DA8 (Text 1) | #5E35B1 (Text 2) | #673AB7 (Text 3) | #7986CB (Text 4) | #9FA8DA (Text 5) |
|---|---|---|---|---|---|
| #512DA8 | Same color | 1.14— | 1.25— | 2.66— | 3.97AA Large |
| #5E35B1 | 1.14— | Same color | 1.09— | 2.32— | 3.47AA Large |
| #673AB7 | 1.25— | 1.09— | Same color | 2.12— | 3.17AA Large |
| #7986CB | 2.66— | 2.32— | 2.12— | Same color | 1.49— |
| #9FA8DA | 3.97AA Large | 3.47AA Large | 3.17AA Large | 1.49— | Same color |
Shades
Shades and tints (50–950)
