PreviewingGo to this paletteOpen in generator
Code
/* Violet Pink — colorset.net */
:root {
--color-1: #9D4EDD;
--color-2: #C77DFF;
--color-3: #E0AAFF;
--color-4: #F3D4FF;
--color-5: #FAE8FF;
--color-bg: #FAE8FF;
--color-surface: #FCF3FF;
--color-border: #E2CFE8;
--color-text: #5C4176;
--color-muted: #71667E;
--color-primary: #9D4EDD;
--color-on-primary: #FFFFFF;
--color-accent: #938398;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #130B1B;
--color-surface: #1D1526;
--color-border: #33293E;
--color-text: #FAE8FF;
--color-muted: #918195;
--color-primary: #9D4EDD;
--color-on-primary: #FFFFFF;
--color-accent: #F3D4FF;
--color-on-accent: #130B1B;
}
}
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 | from palette · color 5 | adjusted for contrast · from #9D4EDD |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #9D4EDD | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 1 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #C77DFF | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.30:1 | AAA pass 4.5:1 | |
| Text on surface | 7.85:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.62:1 | AA pass 4.5:1 | |
| Label on primary | 4.60:1 | AA pass 4.5:1 | |
| Label on accent | 5.94:1 | AA pass 4.5:1 | |
| Primary on background | 3.95:1 | AA Large pass 3:1 | |
| Accent on background | 3.04:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.54:1 | AAA pass 4.5:1 | |
| Text on surface | 15.20:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.29:1 | AA pass 4.5:1 | |
| Label on primary | 4.60:1 | AA pass 4.5:1 | |
| Label on accent | 14.36:1 | AAA pass 4.5:1 | |
| Primary on background | 4.19:1 | AA Large pass 3:1 | |
| Accent on background | 14.36: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 | #9D4EDD (Text 1) | #C77DFF (Text 2) | #E0AAFF (Text 3) | #F3D4FF (Text 4) | #FAE8FF (Text 5) |
|---|---|---|---|---|---|
| #9D4EDD | Same color | 1.71— | 2.49— | 3.43AA Large | 3.95AA Large |
| #C77DFF | 1.71— | Same color | 1.46— | 2.01— | 2.31— |
| #E0AAFF | 2.49— | 1.46— | Same color | 1.38— | 1.59— |
| #F3D4FF | 3.43AA Large | 2.01— | 1.38— | Same color | 1.15— |
| #FAE8FF | 3.95AA Large | 2.31— | 1.59— | 1.15— | Same color |
Shades
Shades and tints (50–950)
