PreviewingGo to this paletteOpen in generator
Code
/* Lavender Dusk — colorset.net */
:root {
--color-1: #F6F0F7;
--color-2: #8A5BA6;
--color-3: #F2A65A;
--color-4: #E0CFE6;
--color-5: #2A1E33;
--color-bg: #F6F0F7;
--color-surface: #FCF8FC;
--color-border: #DFD6E0;
--color-text: #2A1E33;
--color-muted: #74677F;
--color-primary: #8A5BA6;
--color-on-primary: #FFFFFF;
--color-accent: #C37A2A;
--color-on-accent: #2A1E33;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #2A1E33;
--color-surface: #35293F;
--color-border: #4B3F55;
--color-text: #F6F0F7;
--color-muted: #9B959B;
--color-primary: #9364B0;
--color-on-primary: #000000;
--color-accent: #F2A65A;
--color-on-accent: #2A1E33;
}
}
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 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | adjusted for contrast · from #8A5BA6 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #F2A65A | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.06:1 | AAA pass 4.5:1 | |
| Text on surface | 14.99:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.69:1 | AA pass 4.5:1 | |
| Label on primary | 5.09:1 | AA pass 4.5:1 | |
| Label on accent | 4.61:1 | AA pass 4.5:1 | |
| Primary on background | 4.54:1 | AA pass 3:1 | |
| Accent on background | 3.05:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.06:1 | AAA pass 4.5:1 | |
| Text on surface | 12.16:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.38:1 | AA pass 4.5:1 | |
| Label on primary | 4.69:1 | AA pass 4.5:1 | |
| Label on accent | 7.79:1 | AAA pass 4.5:1 | |
| Primary on background | 3.52:1 | AA Large pass 3:1 | |
| Accent on background | 7.79: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 | #F6F0F7 (Text 1) | #8A5BA6 (Text 2) | #F2A65A (Text 3) | #E0CFE6 (Text 4) | #2A1E33 (Text 5) |
|---|---|---|---|---|---|
| #F6F0F7 | Same color | 4.54AA | 1.80— | 1.32— | 14.06AAA |
| #8A5BA6 | 4.54AA | Same color | 2.51— | 3.45AA Large | 3.10AA Large |
| #F2A65A | 1.80— | 2.51— | Same color | 1.37— | 7.79AAA |
| #E0CFE6 | 1.32— | 3.45AA Large | 1.37— | Same color | 10.69AAA |
| #2A1E33 | 14.06AAA | 3.10AA Large | 7.79AAA | 10.69AAA | Same color |
Shades
Shades and tints (50–950)
