PreviewingGo to this paletteOpen in generator
Code
/* Violet Bright — colorset.net */
:root {
--color-1: #9400D3;
--color-2: #A820E5;
--color-3: #BC40F7;
--color-4: #D060FF;
--color-5: #E480FF;
--color-bg: #FCF3FF;
--color-surface: #F3E9F6;
--color-border: #DCD0E0;
--color-text: #604276;
--color-muted: #73667E;
--color-primary: #A820E5;
--color-on-primary: #FFFFFF;
--color-accent: #AC49C6;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #140B1B;
--color-surface: #1E1526;
--color-border: #34283D;
--color-text: #BEA6C4;
--color-muted: #8E7C93;
--color-primary: #A820E5;
--color-on-primary: #FFFFFF;
--color-accent: #E480FF;
--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 #E480FF | adjusted for contrast · from #9400D3 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #9400D3 | adjusted for contrast · from #E480FF |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #A820E5 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.64:1 | AAA pass 4.5:1 | |
| Text on surface | 7.01:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 5.25:1 | AA pass 4.5:1 | |
| Label on accent | 4.64:1 | AA pass 4.5:1 | |
| Primary on background | 4.85:1 | AA pass 3:1 | |
| Accent on background | 4.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.63:1 | AAA pass 4.5:1 | |
| Text on surface | 7.93:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 5.25:1 | AA pass 4.5:1 | |
| Label on accent | 8.08:1 | AAA pass 4.5:1 | |
| Primary on background | 3.66:1 | AA Large pass 3:1 | |
| Accent on background | 8.08: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 | #9400D3 (Text 1) | #A820E5 (Text 2) | #BC40F7 (Text 3) | #D060FF (Text 4) | #E480FF (Text 5) |
|---|---|---|---|---|---|
| #9400D3 | Same color | 1.25— | 1.63— | 2.12— | 2.76— |
| #A820E5 | 1.25— | Same color | 1.30— | 1.70— | 2.21— |
| #BC40F7 | 1.63— | 1.30— | Same color | 1.30— | 1.69— |
| #D060FF | 2.12— | 1.70— | 1.30— | Same color | 1.30— |
| #E480FF | 2.76— | 2.21— | 1.69— | 1.30— | Same color |
Shades
Shades and tints (50–950)
