PreviewingGo to this paletteOpen in generator
Code
/* Lavender Field — colorset.net */
:root {
--color-1: #D8BFE0;
--color-2: #E1CEE6;
--color-3: #EADDEC;
--color-4: #F3ECF2;
--color-5: #FCFBF8;
--color-bg: #FCFBF8;
--color-surface: #F3F2EF;
--color-border: #DBD9D2;
--color-text: #5E4864;
--color-muted: #78677D;
--color-primary: #9C84A3;
--color-on-primary: #000000;
--color-accent: #67556D;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #130C15;
--color-surface: #1E1620;
--color-border: #332A36;
--color-text: #FCFBF8;
--color-muted: #8E8D8B;
--color-primary: #D8BFE0;
--color-on-primary: #130C15;
--color-accent: #EADDEC;
--color-on-accent: #130C15;
}
}
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 #D8BFE0 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #D8BFE0 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #D8BFE0 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #D8BFE0 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.84:1 | AAA pass 4.5:1 | |
| Text on surface | 7.25:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 6.24:1 | AA pass 4.5:1 | |
| Label on accent | 6.78:1 | AA pass 4.5:1 | |
| Primary on background | 3.25:1 | AA Large pass 3:1 | |
| Accent on background | 6.55:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.60:1 | AAA pass 4.5:1 | |
| Text on surface | 17.04:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.80:1 | AA pass 4.5:1 | |
| Label on primary | 11.41:1 | AAA pass 4.5:1 | |
| Label on accent | 14.71:1 | AAA pass 4.5:1 | |
| Primary on background | 11.41:1 | AAA pass 3:1 | |
| Accent on background | 14.71: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 | #D8BFE0 (Text 1) | #E1CEE6 (Text 2) | #EADDEC (Text 3) | #F3ECF2 (Text 4) | #FCFBF8 (Text 5) |
|---|---|---|---|---|---|
| #D8BFE0 | Same color | 1.14— | 1.29— | 1.45— | 1.63— |
| #E1CEE6 | 1.14— | Same color | 1.13— | 1.28— | 1.43— |
| #EADDEC | 1.29— | 1.13— | Same color | 1.13— | 1.26— |
| #F3ECF2 | 1.45— | 1.28— | 1.13— | Same color | 1.12— |
| #FCFBF8 | 1.63— | 1.43— | 1.26— | 1.12— | Same color |
Shades
Shades and tints (50–950)
