PreviewingGo to this paletteOpen in generator
Code
/* Lavender Fields — colorset.net */
:root {
--color-1: #F6F3FE;
--color-2: #6C4AB3;
--color-3: #E9C944;
--color-4: #AD98D5;
--color-5: #211A34;
--color-bg: #F6F3FE;
--color-surface: #FDFCFF;
--color-border: #DEDAE8;
--color-text: #211A34;
--color-muted: #726C86;
--color-primary: #6C4AB3;
--color-on-primary: #FFFFFF;
--color-accent: #A58A00;
--color-on-accent: #211A34;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #211A34;
--color-surface: #2C2540;
--color-border: #413C53;
--color-text: #F6F3FE;
--color-muted: #94919B;
--color-primary: #805FCA;
--color-on-primary: #FFFFFF;
--color-accent: #E9C944;
--color-on-accent: #211A34;
}
}
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 #6C4AB3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #E9C944 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.19:1 | AAA pass 4.5:1 | |
| Text on surface | 16.28:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.56:1 | AA pass 4.5:1 | |
| Label on primary | 6.43:1 | AA pass 4.5:1 | |
| Label on accent | 4.94:1 | AA pass 4.5:1 | |
| Primary on background | 5.87:1 | AA pass 3:1 | |
| Accent on background | 3.07:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.19:1 | AAA pass 4.5:1 | |
| Text on surface | 13.26:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.37:1 | AA pass 4.5:1 | |
| Label on primary | 4.76:1 | AA pass 4.5:1 | |
| Label on accent | 10.22:1 | AAA pass 4.5:1 | |
| Primary on background | 3.49:1 | AA Large pass 3:1 | |
| Accent on background | 10.22: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 | #F6F3FE (Text 1) | #6C4AB3 (Text 2) | #E9C944 (Text 3) | #AD98D5 (Text 4) | #211A34 (Text 5) |
|---|---|---|---|---|---|
| #F6F3FE | Same color | 5.87AA | 1.49— | 2.33— | 15.19AAA |
| #6C4AB3 | 5.87AA | Same color | 3.95AA Large | 2.52— | 2.59— |
| #E9C944 | 1.49— | 3.95AA Large | Same color | 1.57— | 10.22AAA |
| #AD98D5 | 2.33— | 2.52— | 1.57— | Same color | 6.52AA |
| #211A34 | 15.19AAA | 2.59— | 10.22AAA | 6.52AA | Same color |
Shades
Shades and tints (50–950)
