PreviewingGo to this paletteOpen in generator
Code
/* Dusty Lilac — colorset.net */
:root {
--color-1: #A68AB2;
--color-2: #B89FC7;
--color-3: #C9B4DD;
--color-4: #DBC9F2;
--color-5: #EDDFFF;
--color-bg: #F9F5FE;
--color-surface: #EFEBF5;
--color-border: #D8D2DF;
--color-text: #5F4569;
--color-muted: #75657C;
--color-primary: #9A7EA5;
--color-on-primary: #000000;
--color-accent: #654F6E;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #140C17;
--color-surface: #1E1622;
--color-border: #342939;
--color-text: #EDDFFF;
--color-muted: #887D96;
--color-primary: #A68AB2;
--color-on-primary: #140C17;
--color-accent: #DBC9F2;
--color-on-accent: #140C17;
}
}
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 #EDDFFF | adjusted for contrast · from #A68AB2 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #A68AB2 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #A68AB2 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #A68AB2 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.68:1 | AAA pass 4.5:1 | |
| Text on surface | 7.03:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 5.90:1 | AA pass 4.5:1 | |
| Label on accent | 7.25:1 | AAA pass 4.5:1 | |
| Primary on background | 3.31:1 | AA Large pass 3:1 | |
| Accent on background | 6.74:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.16:1 | AAA pass 4.5:1 | |
| Text on surface | 13.91:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.95:1 | AA pass 4.5:1 | |
| Label on primary | 6.30:1 | AA pass 4.5:1 | |
| Label on accent | 12.47:1 | AAA pass 4.5:1 | |
| Primary on background | 6.30:1 | AA pass 3:1 | |
| Accent on background | 12.47: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 | #A68AB2 (Text 1) | #B89FC7 (Text 2) | #C9B4DD (Text 3) | #DBC9F2 (Text 4) | #EDDFFF (Text 5) |
|---|---|---|---|---|---|
| #A68AB2 | Same color | 1.28— | 1.60— | 1.98— | 2.41— |
| #B89FC7 | 1.28— | Same color | 1.25— | 1.55— | 1.88— |
| #C9B4DD | 1.60— | 1.25— | Same color | 1.23— | 1.50— |
| #DBC9F2 | 1.98— | 1.55— | 1.23— | Same color | 1.22— |
| #EDDFFF | 2.41— | 1.88— | 1.50— | 1.22— | Same color |
Shades
Shades and tints (50–950)
