PreviewingGo to this paletteOpen in generator
Code
/* Moon Dust — colorset.net */
:root {
--color-1: #EEEEF2;
--color-2: #5A5F8A;
--color-3: #C9A87C;
--color-4: #CFD0DA;
--color-5: #1E1F2E;
--color-bg: #EEEEF2;
--color-surface: #F5F5F8;
--color-border: #D5D5DD;
--color-text: #1E1F2E;
--color-muted: #696B7D;
--color-primary: #5A5F8A;
--color-on-primary: #FFFFFF;
--color-accent: #A38358;
--color-on-accent: #1E1F2E;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1E1F2E;
--color-surface: #292A3A;
--color-border: #3E3F53;
--color-text: #EEEEF2;
--color-muted: #939397;
--color-primary: #6E73A0;
--color-on-primary: #FFFFFF;
--color-accent: #C9A87C;
--color-on-accent: #1E1F2E;
}
}
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 #5A5F8A |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #C9A87C | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.06:1 | AAA pass 4.5:1 | |
| Text on surface | 14.95:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.54:1 | AA pass 4.5:1 | |
| Label on primary | 6.11:1 | AA pass 4.5:1 | |
| Label on accent | 4.61:1 | AA pass 4.5:1 | |
| Primary on background | 5.28:1 | AA pass 3:1 | |
| Accent on background | 3.05:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.06:1 | AAA pass 4.5:1 | |
| Text on surface | 12.21:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.32:1 | AA pass 4.5:1 | |
| Label on primary | 4.54:1 | AA pass 4.5:1 | |
| Label on accent | 7.26:1 | AAA pass 4.5:1 | |
| Primary on background | 3.58:1 | AA Large pass 3:1 | |
| Accent on background | 7.26: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 | #EEEEF2 (Text 1) | #5A5F8A (Text 2) | #C9A87C (Text 3) | #CFD0DA (Text 4) | #1E1F2E (Text 5) |
|---|---|---|---|---|---|
| #EEEEF2 | Same color | 5.28AA | 1.94— | 1.33— | 14.06AAA |
| #5A5F8A | 5.28AA | Same color | 2.73— | 3.98AA Large | 2.66— |
| #C9A87C | 1.94— | 2.73— | Same color | 1.46— | 7.26AAA |
| #CFD0DA | 1.33— | 3.98AA Large | 1.46— | Same color | 10.61AAA |
| #1E1F2E | 14.06AAA | 2.66— | 7.26AAA | 10.61AAA | Same color |
Shades
Shades and tints (50–950)
