PreviewingGo to this paletteOpen in generator
Code
/* Violet Dust — colorset.net */
:root {
--color-1: #9370DB;
--color-2: #A480E3;
--color-3: #B590EB;
--color-4: #C6A0F3;
--color-5: #8260D3;
--color-bg: #F9F5FF;
--color-surface: #F0EAF9;
--color-border: #D8D1E3;
--color-text: #53457C;
--color-muted: #6C6781;
--color-primary: #8260D3;
--color-on-primary: #FFFFFF;
--color-accent: #51338F;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #100C1D;
--color-surface: #1A1628;
--color-border: #2F2A40;
--color-text: #BBADCF;
--color-muted: #887D96;
--color-primary: #8260D3;
--color-on-primary: #FFFFFF;
--color-accent: #C6A0F3;
--color-on-accent: #100C1D;
}
}
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 #C6A0F3 | adjusted for contrast · from #8260D3 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8260D3 | adjusted for contrast · from #C6A0F3 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #8260D3 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.78: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 | 4.60:1 | AA pass 4.5:1 | |
| Label on accent | 9.46:1 | AAA pass 4.5:1 | |
| Primary on background | 4.28:1 | AA Large pass 3:1 | |
| Accent on background | 8.80:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.15:1 | AAA pass 4.5:1 | |
| Text on surface | 8.40:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 4.60:1 | AA pass 4.5:1 | |
| Label on accent | 8.90:1 | AAA pass 4.5:1 | |
| Primary on background | 4.18:1 | AA Large pass 3:1 | |
| Accent on background | 8.90: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 | #9370DB (Text 1) | #A480E3 (Text 2) | #B590EB (Text 3) | #C6A0F3 (Text 4) | #8260D3 (Text 5) |
|---|---|---|---|---|---|
| #9370DB | Same color | 1.21— | 1.46— | 1.74— | 1.22— |
| #A480E3 | 1.21— | Same color | 1.20— | 1.44— | 1.48— |
| #B590EB | 1.46— | 1.20— | Same color | 1.19— | 1.79— |
| #C6A0F3 | 1.74— | 1.44— | 1.19— | Same color | 2.13— |
| #8260D3 | 1.22— | 1.48— | 1.79— | 2.13— | Same color |
Shades
Shades and tints (50–950)
