PreviewingGo to this paletteOpen in generator
Code
/* Lavender Haze — colorset.net */
:root {
--color-1: #B4A5D6;
--color-2: #D2C5E8;
--color-3: #E8E0F2;
--color-4: #C5B1DD;
--color-5: #A699C9;
--color-bg: #F8F5FB;
--color-surface: #EFECF2;
--color-border: #D7D3DC;
--color-text: #544772;
--color-muted: #6E6780;
--color-primary: #8E81AF;
--color-on-primary: #000000;
--color-accent: #5C5276;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #110D1A;
--color-surface: #1B1725;
--color-border: #2F2A3D;
--color-text: #E8E0F2;
--color-muted: #888191;
--color-primary: #A699C9;
--color-on-primary: #110D1A;
--color-accent: #D2C5E8;
--color-on-accent: #110D1A;
}
}
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 #E8E0F2 | adjusted for contrast · from #A699C9 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #A699C9 | from palette · color 3 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #A699C9 | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #A699C9 | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.71:1 | AAA pass 4.5:1 | |
| Text on surface | 7.12:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 5.91:1 | AA pass 4.5:1 | |
| Label on accent | 7.18:1 | AAA pass 4.5:1 | |
| Primary on background | 3.29:1 | AA Large pass 3:1 | |
| Accent on background | 6.65:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.94:1 | AAA pass 4.5:1 | |
| Text on surface | 13.69:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.10:1 | AA pass 4.5:1 | |
| Label on primary | 7.32:1 | AAA pass 4.5:1 | |
| Label on accent | 11.76:1 | AAA pass 4.5:1 | |
| Primary on background | 7.32:1 | AAA pass 3:1 | |
| Accent on background | 11.76: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 | #B4A5D6 (Text 1) | #D2C5E8 (Text 2) | #E8E0F2 (Text 3) | #C5B1DD (Text 4) | #A699C9 (Text 5) |
|---|---|---|---|---|---|
| #B4A5D6 | Same color | 1.39— | 1.76— | 1.15— | 1.16— |
| #D2C5E8 | 1.39— | Same color | 1.27— | 1.20— | 1.61— |
| #E8E0F2 | 1.76— | 1.27— | Same color | 1.53— | 2.04— |
| #C5B1DD | 1.15— | 1.20— | 1.53— | Same color | 1.33— |
| #A699C9 | 1.16— | 1.61— | 2.04— | 1.33— | Same color |
Shades
Shades and tints (50–950)
