PreviewingGo to this paletteOpen in generator
Code
/* Violet Rich — colorset.net */
:root {
--color-1: #8E4585;
--color-2: #A569BD;
--color-3: #BB8FCE;
--color-4: #D7BDE2;
--color-5: #EBDEF0;
--color-bg: #F9F5FB;
--color-surface: #F0ECF1;
--color-border: #D8D2DB;
--color-text: #6E3D67;
--color-muted: #7B6477;
--color-primary: #995DB0;
--color-on-primary: #FFFFFF;
--color-accent: #8F8393;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #180916;
--color-surface: #231321;
--color-border: #3A2637;
--color-text: #EBDEF0;
--color-muted: #8B7F8F;
--color-primary: #995DB0;
--color-on-primary: #FFFFFF;
--color-accent: #D7BDE2;
--color-on-accent: #180916;
}
}
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 #EBDEF0 | adjusted for contrast · from #8E4585 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8E4585 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #A569BD | adjusted for contrast · from #A569BD |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #A569BD | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.71:1 | AAA pass 4.5:1 | |
| Text on surface | 7.11:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 4.62:1 | AA pass 4.5:1 | |
| Label on accent | 5.84:1 | AA pass 4.5:1 | |
| Primary on background | 4.28:1 | AA Large pass 3:1 | |
| Accent on background | 3.34:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.91:1 | AAA pass 4.5:1 | |
| Text on surface | 13.69:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 4.62:1 | AA pass 4.5:1 | |
| Label on accent | 11.26:1 | AAA pass 4.5:1 | |
| Primary on background | 4.17:1 | AA Large pass 3:1 | |
| Accent on background | 11.26: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 | #8E4585 (Text 1) | #A569BD (Text 2) | #BB8FCE (Text 3) | #D7BDE2 (Text 4) | #EBDEF0 (Text 5) |
|---|---|---|---|---|---|
| #8E4585 | Same color | 1.60— | 2.38— | 3.67AA Large | 4.86AA |
| #A569BD | 1.60— | Same color | 1.48— | 2.29— | 3.03AA Large |
| #BB8FCE | 2.38— | 1.48— | Same color | 1.55— | 2.05— |
| #D7BDE2 | 3.67AA Large | 2.29— | 1.55— | Same color | 1.32— |
| #EBDEF0 | 4.86AA | 3.03AA Large | 2.05— | 1.32— | Same color |
Shades
Shades and tints (50–950)
