PreviewingGo to this paletteOpen in generator
Code
/* Silk Purple — colorset.net */
:root {
--color-1: #F8F8FF;
--color-2: #E6E6FA;
--color-3: #DDA0DD;
--color-4: #C8A2C8;
--color-5: #BA55D3;
--color-bg: #F8F8FF;
--color-surface: #EFEFF6;
--color-border: #D6D6E0;
--color-text: #664070;
--color-muted: #78667C;
--color-primary: #AD48C6;
--color-on-primary: #FFFFFF;
--color-accent: #89898F;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #160A19;
--color-surface: #201424;
--color-border: #37273B;
--color-text: #F8F8FF;
--color-muted: #8C8C92;
--color-primary: #AD48C6;
--color-on-primary: #FFFFFF;
--color-accent: #E6E6FA;
--color-on-accent: #160A19;
}
}
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 1 | adjusted for contrast · from #BA55D3 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #BA55D3 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #BA55D3 | adjusted for contrast · from #BA55D3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #C8A2C8 | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.84:1 | AAA pass 4.5:1 | |
| Text on surface | 7.25:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 4.65:1 | AA pass 4.5:1 | |
| Label on accent | 6.04:1 | AA pass 4.5:1 | |
| Primary on background | 4.40:1 | AA Large pass 3:1 | |
| Accent on background | 3.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.20:1 | AAA pass 4.5:1 | |
| Text on surface | 16.73:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.75:1 | AA pass 4.5:1 | |
| Label on primary | 4.65:1 | AA pass 4.5:1 | |
| Label on accent | 15.63:1 | AAA pass 4.5:1 | |
| Primary on background | 4.14:1 | AA Large pass 3:1 | |
| Accent on background | 15.63: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 | #F8F8FF (Text 1) | #E6E6FA (Text 2) | #DDA0DD (Text 3) | #C8A2C8 (Text 4) | #BA55D3 (Text 5) |
|---|---|---|---|---|---|
| #F8F8FF | Same color | 1.16— | 1.96— | 2.10— | 3.73AA Large |
| #E6E6FA | 1.16— | Same color | 1.68— | 1.80— | 3.20AA Large |
| #DDA0DD | 1.96— | 1.68— | Same color | 1.07— | 1.90— |
| #C8A2C8 | 2.10— | 1.80— | 1.07— | Same color | 1.78— |
| #BA55D3 | 3.73AA Large | 3.20AA Large | 1.90— | 1.78— | Same color |
Shades
Shades and tints (50–950)
