PreviewingGo to this paletteOpen in generator
Code
/* Encore Violet — colorset.net */
:root {
--color-1: #150B24;
--color-2: #AB6AEA;
--color-3: #EDBB64;
--color-4: #3D285C;
--color-5: #F0ECFA;
--color-bg: #F0ECFA;
--color-surface: #F7F4FD;
--color-border: #D8D3E4;
--color-text: #150B24;
--color-muted: #675F78;
--color-primary: #AB6AEA;
--color-on-primary: #150B24;
--color-accent: #9C6E00;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #150B24;
--color-surface: #1F152F;
--color-border: #332B41;
--color-text: #F0ECFA;
--color-muted: #898692;
--color-primary: #AB6AEA;
--color-on-primary: #150B24;
--color-accent: #EDBB64;
--color-on-accent: #150B24;
}
}
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 | from palette · color 5 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #EDBB64 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.36:1 | AAA pass 4.5:1 | |
| Text on surface | 17.47:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.19:1 | AA pass 4.5:1 | |
| Label on primary | 5.41:1 | AA pass 4.5:1 | |
| Label on accent | 4.52:1 | AA pass 4.5:1 | |
| Primary on background | 3.02:1 | AA Large pass 3:1 | |
| Accent on background | 3.89:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.36:1 | AAA pass 4.5:1 | |
| Text on surface | 14.99:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.33:1 | AA pass 4.5:1 | |
| Label on primary | 5.41:1 | AA pass 4.5:1 | |
| Label on accent | 10.76:1 | AAA pass 4.5:1 | |
| Primary on background | 5.41:1 | AA pass 3:1 | |
| Accent on background | 10.76: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 | #150B24 (Text 1) | #AB6AEA (Text 2) | #EDBB64 (Text 3) | #3D285C (Text 4) | #F0ECFA (Text 5) |
|---|---|---|---|---|---|
| #150B24 | Same color | 5.41AA | 10.76AAA | 1.50— | 16.36AAA |
| #AB6AEA | 5.41AA | Same color | 1.99— | 3.61AA Large | 3.02AA Large |
| #EDBB64 | 10.76AAA | 1.99— | Same color | 7.18AAA | 1.52— |
| #3D285C | 1.50— | 3.61AA Large | 7.18AAA | Same color | 10.92AAA |
| #F0ECFA | 16.36AAA | 3.02AA Large | 1.52— | 10.92AAA | Same color |
Shades
Shades and tints (50–950)
