PreviewingGo to this paletteOpen in generator
Code
/* Lavender Mist — colorset.net */
:root {
--color-1: #E6E6FA;
--color-2: #F0F0FF;
--color-3: #F5F5FF;
--color-4: #FAFAFF;
--color-5: #DCDCFA;
--color-bg: #FAFAFF;
--color-surface: #F1F1F6;
--color-border: #D8D8E0;
--color-text: #4E4E67;
--color-muted: #6B6B84;
--color-primary: #8787A3;
--color-on-primary: #000000;
--color-accent: #57566C;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0E16;
--color-surface: #191821;
--color-border: #2D2C38;
--color-text: #FAFAFF;
--color-muted: #8D8D91;
--color-primary: #DCDCFA;
--color-on-primary: #0F0E16;
--color-accent: #A6A6BE;
--color-on-accent: #0F0E16;
}
}
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 4 | adjusted for contrast · from #DCDCFA |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #DCDCFA | from palette · color 4 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #DCDCFA | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #DCDCFA | adjusted for contrast · from #DCDCFA |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.73:1 | AAA pass 4.5:1 | |
| Text on surface | 7.15:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 6.02:1 | AA pass 4.5:1 | |
| Label on accent | 7.11:1 | AAA pass 4.5:1 | |
| Primary on background | 3.35:1 | AA Large pass 3:1 | |
| Accent on background | 6.83:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.44:1 | AAA pass 4.5:1 | |
| Text on surface | 16.90:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.80:1 | AA pass 4.5:1 | |
| Label on primary | 14.31:1 | AAA pass 4.5:1 | |
| Label on accent | 8.06:1 | AAA pass 4.5:1 | |
| Primary on background | 14.31:1 | AAA pass 3:1 | |
| Accent on background | 8.06: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 | #E6E6FA (Text 1) | #F0F0FF (Text 2) | #F5F5FF (Text 3) | #FAFAFF (Text 4) | #DCDCFA (Text 5) |
|---|---|---|---|---|---|
| #E6E6FA | Same color | 1.09— | 1.14— | 1.18— | 1.09— |
| #F0F0FF | 1.09— | Same color | 1.04— | 1.08— | 1.19— |
| #F5F5FF | 1.14— | 1.04— | Same color | 1.04— | 1.24— |
| #FAFAFF | 1.18— | 1.08— | 1.04— | Same color | 1.29— |
| #DCDCFA | 1.09— | 1.19— | 1.24— | 1.29— | Same color |
Shades
Shades and tints (50–950)
