PreviewingGo to this paletteOpen in generator
Code
/* Violet Laser — colorset.net */
:root {
--color-1: #8A2BE2;
--color-2: #9A3BF2;
--color-3: #AA4BFF;
--color-4: #BA5BFF;
--color-5: #CA6BFF;
--color-bg: #FAF4FF;
--color-surface: #F2EAF8;
--color-border: #DAD1E1;
--color-text: #5A447A;
--color-muted: #706780;
--color-primary: #9A3BF2;
--color-on-primary: #FFFFFF;
--color-accent: #6400A7;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120B1C;
--color-surface: #1C1527;
--color-border: #31293F;
--color-text: #B19FBE;
--color-muted: #8C7E96;
--color-primary: #9A3BF2;
--color-on-primary: #FFFFFF;
--color-accent: #CA6BFF;
--color-on-accent: #120B1C;
}
}
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 #CA6BFF | adjusted for contrast · from #8A2BE2 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8A2BE2 | adjusted for contrast · from #CA6BFF |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #8A2BE2 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.65:1 | AAA pass 4.5:1 | |
| Text on surface | 7.04:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 4.90:1 | AA pass 4.5:1 | |
| Label on accent | 10.00:1 | AAA pass 4.5:1 | |
| Primary on background | 4.54:1 | AA pass 3:1 | |
| Accent on background | 9.26:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.86:1 | AAA pass 4.5:1 | |
| Text on surface | 7.23:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 4.90:1 | AA pass 4.5:1 | |
| Label on accent | 6.47:1 | AA pass 4.5:1 | |
| Primary on background | 3.93:1 | AA Large pass 3:1 | |
| Accent on background | 6.47: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 | #8A2BE2 (Text 1) | #9A3BF2 (Text 2) | #AA4BFF (Text 3) | #BA5BFF (Text 4) | #CA6BFF (Text 5) |
|---|---|---|---|---|---|
| #8A2BE2 | Same color | 1.21— | 1.46— | 1.71— | 2.00— |
| #9A3BF2 | 1.21— | Same color | 1.21— | 1.41— | 1.65— |
| #AA4BFF | 1.46— | 1.21— | Same color | 1.17— | 1.37— |
| #BA5BFF | 1.71— | 1.41— | 1.17— | Same color | 1.17— |
| #CA6BFF | 2.00— | 1.65— | 1.37— | 1.17— | Same color |
Shades
Shades and tints (50–950)
