PreviewingGo to this paletteOpen in generator
Code
/* Violet Ribbon — colorset.net */
:root {
--color-1: #7C3AED;
--color-2: #8B5CF6;
--color-3: #A78BFA;
--color-4: #C4B5FD;
--color-5: #E9D5FF;
--color-bg: #F9F4FF;
--color-surface: #F0EBF7;
--color-border: #D9D1E1;
--color-text: #52467D;
--color-muted: #6C6881;
--color-primary: #7C3AED;
--color-on-primary: #FFFFFF;
--color-accent: #9381A7;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #100C1D;
--color-surface: #1A1628;
--color-border: #2E2A40;
--color-text: #E7D7FA;
--color-muted: #887C95;
--color-primary: #7C3AED;
--color-on-primary: #FFFFFF;
--color-accent: #C4B5FD;
--color-on-accent: #100C1D;
}
}
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 #E9D5FF | adjusted for contrast · from #7C3AED |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #7C3AED | adjusted for contrast · from #E9D5FF |
| Muted text | derived | derived |
| Primary | from palette · color 1 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #A78BFA | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.67:1 | AAA pass 4.5:1 | |
| Text on surface | 7.08:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.93:1 | AA pass 4.5:1 | |
| Label on primary | 5.70:1 | AA pass 4.5:1 | |
| Label on accent | 5.94:1 | AA pass 4.5:1 | |
| Primary on background | 5.27:1 | AA pass 3:1 | |
| Accent on background | 3.27:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.19:1 | AAA pass 4.5:1 | |
| Text on surface | 13.03:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.91:1 | AA pass 4.5:1 | |
| Label on primary | 5.70:1 | AA pass 4.5:1 | |
| Label on accent | 10.41:1 | AAA pass 4.5:1 | |
| Primary on background | 3.37:1 | AA Large pass 3:1 | |
| Accent on background | 10.41: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 | #7C3AED (Text 1) | #8B5CF6 (Text 2) | #A78BFA (Text 3) | #C4B5FD (Text 4) | #E9D5FF (Text 5) |
|---|---|---|---|---|---|
| #7C3AED | Same color | 1.35— | 2.09— | 3.09AA Large | 4.19AA Large |
| #8B5CF6 | 1.35— | Same color | 1.56— | 2.29— | 3.11AA Large |
| #A78BFA | 2.09— | 1.56— | Same color | 1.47— | 2.00— |
| #C4B5FD | 3.09AA Large | 2.29— | 1.47— | Same color | 1.36— |
| #E9D5FF | 4.19AA Large | 3.11AA Large | 2.00— | 1.36— | Same color |
Shades
Shades and tints (50–950)
