PreviewingGo to this paletteOpen in generator
Code
/* Gaming Purple — colorset.net */
:root {
--color-1: #9146FF;
--color-2: #772CE8;
--color-3: #5C16C5;
--color-4: #6441A5;
--color-5: #A970FF;
--color-bg: #F8F5FF;
--color-surface: #EFEBF9;
--color-border: #D7D2E3;
--color-text: #50467D;
--color-muted: #6B6881;
--color-primary: #9146FF;
--color-on-primary: #FFFFFF;
--color-accent: #5C16C5;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #100C1D;
--color-surface: #191628;
--color-border: #2E2A41;
--color-text: #A99EC0;
--color-muted: #867E98;
--color-primary: #9146FF;
--color-on-primary: #FFFFFF;
--color-accent: #7553B9;
--color-on-accent: #FFFFFF;
}
}
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 #A970FF | adjusted for contrast · from #6441A5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #6441A5 | adjusted for contrast · from #A970FF |
| Muted text | derived | derived |
| Primary | from palette · color 1 | from palette · color 1 |
| On primary | derived | derived |
| Accent | from palette · color 3 | adjusted for contrast · from #6441A5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.76:1 | AAA pass 4.5:1 | |
| Text on surface | 7.13:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 4.64:1 | AA pass 4.5:1 | |
| Label on accent | 8.84:1 | AAA pass 4.5:1 | |
| Primary on background | 4.31:1 | AA Large pass 3:1 | |
| Accent on background | 8.21:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.63:1 | AAA pass 4.5:1 | |
| Text on surface | 7.03:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 4.64:1 | AA pass 4.5:1 | |
| Label on accent | 5.68:1 | AA pass 4.5:1 | |
| Primary on background | 4.14:1 | AA Large pass 3:1 | |
| Accent on background | 3.38:1 | AA Large 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 | #9146FF (Text 1) | #772CE8 (Text 2) | #5C16C5 (Text 3) | #6441A5 (Text 4) | #A970FF (Text 5) |
|---|---|---|---|---|---|
| #9146FF | Same color | 1.37— | 1.90— | 1.59— | 1.43— |
| #772CE8 | 1.37— | Same color | 1.39— | 1.16— | 1.95— |
| #5C16C5 | 1.90— | 1.39— | Same color | 1.20— | 2.71— |
| #6441A5 | 1.59— | 1.16— | 1.20— | Same color | 2.27— |
| #A970FF | 1.43— | 1.95— | 2.71— | 2.27— | Same color |
Shades
Shades and tints (50–950)
