PreviewingGo to this paletteOpen in generator
Code
/* Lavender Fog — colorset.net */
:root {
--color-1: #C5B9D4;
--color-2: #D4C5E8;
--color-3: #E0D4F0;
--color-4: #E6E6FA;
--color-5: #F3F0FF;
--color-bg: #F3F0FF;
--color-surface: #FAF9FF;
--color-border: #DAD7E9;
--color-text: #564C63;
--color-muted: #736880;
--color-primary: #90859E;
--color-on-primary: #000000;
--color-accent: #5E5569;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #110E15;
--color-surface: #1B181F;
--color-border: #302B36;
--color-text: #F3F0FF;
--color-muted: #898794;
--color-primary: #C5B9D4;
--color-on-primary: #110E15;
--color-accent: #E0D4F0;
--color-on-accent: #110E15;
}
}
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 5 | adjusted for contrast · from #C5B9D4 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #C5B9D4 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #C5B9D4 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #C5B9D4 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.17:1 | AAA pass 4.5:1 | |
| Text on surface | 7.69:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.66:1 | AA pass 4.5:1 | |
| Label on primary | 6.03:1 | AA pass 4.5:1 | |
| Label on accent | 7.05:1 | AAA pass 4.5:1 | |
| Primary on background | 3.10:1 | AA Large pass 3:1 | |
| Accent on background | 6.28:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.06:1 | AAA pass 4.5:1 | |
| Text on surface | 15.64:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.43:1 | AA pass 4.5:1 | |
| Label on primary | 10.26:1 | AAA pass 4.5:1 | |
| Label on accent | 13.53:1 | AAA pass 4.5:1 | |
| Primary on background | 10.26:1 | AAA pass 3:1 | |
| Accent on background | 13.53: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 | #C5B9D4 (Text 1) | #D4C5E8 (Text 2) | #E0D4F0 (Text 3) | #E6E6FA (Text 4) | #F3F0FF (Text 5) |
|---|---|---|---|---|---|
| #C5B9D4 | Same color | 1.15— | 1.32— | 1.51— | 1.66— |
| #D4C5E8 | 1.15— | Same color | 1.15— | 1.32— | 1.45— |
| #E0D4F0 | 1.32— | 1.15— | Same color | 1.15— | 1.26— |
| #E6E6FA | 1.51— | 1.32— | 1.15— | Same color | 1.10— |
| #F3F0FF | 1.66— | 1.45— | 1.26— | 1.10— | Same color |
Shades
Shades and tints (50–950)
