PreviewingGo to this paletteOpen in generator
Code
/* Lunar Purple — colorset.net */
:root {
--color-1: #2F2F4F;
--color-2: #483D8B;
--color-3: #6A5ACD;
--color-4: #9370DB;
--color-5: #E6E6FA;
--color-bg: #E6E6FA;
--color-surface: #EEEEFA;
--color-border: #CDCDE4;
--color-text: #2F2F4F;
--color-muted: #64667F;
--color-primary: #6A5ACD;
--color-on-primary: #FFFFFF;
--color-accent: #828193;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0E0E19;
--color-surface: #181824;
--color-border: #2C2C3B;
--color-text: #E6E6FA;
--color-muted: #828294;
--color-primary: #6A5ACD;
--color-on-primary: #FFFFFF;
--color-accent: #616286;
--color-on-accent: #FFFFFF;
}
}
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 #2F2F4F |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #9370DB | adjusted for contrast · from #483D8B |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.40:1 | AAA pass 4.5:1 | |
| Text on surface | 11.12:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.55:1 | AA pass 4.5:1 | |
| Label on primary | 5.31:1 | AA pass 4.5:1 | |
| Label on accent | 5.51:1 | AA pass 4.5:1 | |
| Primary on background | 4.31:1 | AA Large pass 3:1 | |
| Accent on background | 3.10:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.58:1 | AAA pass 4.5:1 | |
| Text on surface | 14.28:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 5.31:1 | AA pass 4.5:1 | |
| Label on accent | 5.83:1 | AA pass 4.5:1 | |
| Primary on background | 3.61:1 | AA Large pass 3:1 | |
| Accent on background | 3.29:1 | AA Large 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 | #2F2F4F (Text 1) | #483D8B (Text 2) | #6A5ACD (Text 3) | #9370DB (Text 4) | #E6E6FA (Text 5) |
|---|---|---|---|---|---|
| #2F2F4F | Same color | 1.41— | 2.41— | 3.40AA Large | 10.40AAA |
| #483D8B | 1.41— | Same color | 1.71— | 2.41— | 7.37AAA |
| #6A5ACD | 2.41— | 1.71— | Same color | 1.41— | 4.31AA Large |
| #9370DB | 3.40AA Large | 2.41— | 1.41— | Same color | 3.06AA Large |
| #E6E6FA | 10.40AAA | 7.37AAA | 4.31AA Large | 3.06AA Large | Same color |
Shades
Shades and tints (50–950)
