PreviewingGo to this paletteOpen in generator
Code
/* Violet Pure — colorset.net */
:root {
--color-1: #8B00FF;
--color-2: #9400D3;
--color-3: #9932CC;
--color-4: #BA55D3;
--color-5: #DDA0DD;
--color-bg: #FEF2FE;
--color-surface: #F5E9F5;
--color-border: #DECFDE;
--color-text: #604276;
--color-muted: #73667E;
--color-primary: #8B00FF;
--color-on-primary: #FFFFFF;
--color-accent: #99609A;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #140B1B;
--color-surface: #1E1526;
--color-border: #34283D;
--color-text: #CAAECA;
--color-muted: #927D92;
--color-primary: #8D1BFF;
--color-on-primary: #FFFFFF;
--color-accent: #DDA0DD;
--color-on-accent: #140B1B;
}
}
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 #DDA0DD | adjusted for contrast · from #9400D3 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #9932CC | adjusted for contrast · from #DDA0DD |
| Muted text | derived | derived |
| Primary | from palette · color 1 | adjusted for contrast · from #8B00FF |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #BA55D3 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.62:1 | AAA pass 4.5:1 | |
| Text on surface | 7.04:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.92:1 | AA pass 4.5:1 | |
| Label on primary | 5.93:1 | AA pass 4.5:1 | |
| Label on accent | 4.67:1 | AA pass 4.5:1 | |
| Primary on background | 5.46:1 | AA pass 3:1 | |
| Accent on background | 4.30:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.53:1 | AAA pass 4.5:1 | |
| Text on surface | 8.75:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.09:1 | AA pass 4.5:1 | |
| Label on primary | 5.63:1 | AA pass 4.5:1 | |
| Label on accent | 9.28:1 | AAA pass 4.5:1 | |
| Primary on background | 3.41:1 | AA Large pass 3:1 | |
| Accent on background | 9.28: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 | #8B00FF (Text 1) | #9400D3 (Text 2) | #9932CC (Text 3) | #BA55D3 (Text 4) | #DDA0DD (Text 5) |
|---|---|---|---|---|---|
| #8B00FF | Same color | 1.11— | 1.04— | 1.50— | 2.86— |
| #9400D3 | 1.11— | Same color | 1.15— | 1.67— | 3.17AA Large |
| #9932CC | 1.04— | 1.15— | Same color | 1.45— | 2.76— |
| #BA55D3 | 1.50— | 1.67— | 1.45— | Same color | 1.90— |
| #DDA0DD | 2.86— | 3.17AA Large | 2.76— | 1.90— | Same color |
Shades
Shades and tints (50–950)
