PreviewingGo to this paletteOpen in generator
Code
/* Lunar Lavender — colorset.net */
:root {
--color-1: #F5F2FB;
--color-2: #7B61C2;
--color-3: #3FA6BA;
--color-4: #DED5F2;
--color-5: #1F1A33;
--color-bg: #F5F2FB;
--color-surface: #FCFAFF;
--color-border: #DDD9E5;
--color-text: #1F1A33;
--color-muted: #6F6C86;
--color-primary: #7B61C2;
--color-on-primary: #FFFFFF;
--color-accent: #2B96AA;
--color-on-accent: #1F1A33;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1F1A33;
--color-surface: #2A253F;
--color-border: #3F3B53;
--color-text: #F5F2FB;
--color-muted: #939099;
--color-primary: #7B61C2;
--color-on-primary: #FFFFFF;
--color-accent: #3FA6BA;
--color-on-accent: #1F1A33;
}
}
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 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #3FA6BA | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.13:1 | AAA pass 4.5:1 | |
| Text on surface | 16.16:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.56:1 | AA pass 4.5:1 | |
| Label on primary | 4.85:1 | AA pass 4.5:1 | |
| Label on accent | 4.82:1 | AA pass 4.5:1 | |
| Primary on background | 4.38:1 | AA Large pass 3:1 | |
| Accent on background | 3.14:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.13:1 | AAA pass 4.5:1 | |
| Text on surface | 13.23:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.34:1 | AA pass 4.5:1 | |
| Label on primary | 4.85:1 | AA pass 4.5:1 | |
| Label on accent | 5.88:1 | AA pass 4.5:1 | |
| Primary on background | 3.45:1 | AA Large pass 3:1 | |
| Accent on background | 5.88:1 | AA 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 | #F5F2FB (Text 1) | #7B61C2 (Text 2) | #3FA6BA (Text 3) | #DED5F2 (Text 4) | #1F1A33 (Text 5) |
|---|---|---|---|---|---|
| #F5F2FB | Same color | 4.38AA Large | 2.57— | 1.27— | 15.13AAA |
| #7B61C2 | 4.38AA Large | Same color | 1.70— | 3.44AA Large | 3.45AA Large |
| #3FA6BA | 2.57— | 1.70— | Same color | 2.02— | 5.88AA |
| #DED5F2 | 1.27— | 3.44AA Large | 2.02— | Same color | 11.89AAA |
| #1F1A33 | 15.13AAA | 3.45AA Large | 5.88AA | 11.89AAA | Same color |
Shades
Shades and tints (50–950)
