PreviewingGo to this paletteOpen in generator
Code
/* Moon White — colorset.net */
:root {
--color-1: #DDDDFF;
--color-2: #EEEEFF;
--color-3: #F5F5FF;
--color-4: #FAFAFF;
--color-5: #FFFFFF;
--color-bg: #FFFFFF;
--color-surface: #F6F6F6;
--color-border: #E0DCDD;
--color-text: #52516E;
--color-muted: #6F6F88;
--color-primary: #8B8BAA;
--color-on-primary: #000000;
--color-accent: #5A5A73;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0E17;
--color-surface: #181822;
--color-border: #2C2C39;
--color-text: #FFFFFF;
--color-muted: #8F8F8F;
--color-primary: #DDDDFF;
--color-on-primary: #0F0E17;
--color-accent: #A7A7C3;
--color-on-accent: #0F0E17;
}
}
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 #DDDDFF |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #DDDDFF | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #DDDDFF | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #DDDDFF | adjusted for contrast · from #DDDDFF |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.61:1 | AAA pass 4.5:1 | |
| Text on surface | 7.04:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.88:1 | AA pass 4.5:1 | |
| Label on primary | 6.37:1 | AA pass 4.5:1 | |
| Label on accent | 6.68:1 | AA pass 4.5:1 | |
| Primary on background | 3.30:1 | AA Large pass 3:1 | |
| Accent on background | 6.68:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 19.17:1 | AAA pass 4.5:1 | |
| Text on surface | 17.61:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.93:1 | AA pass 4.5:1 | |
| Label on primary | 14.48:1 | AAA pass 4.5:1 | |
| Label on accent | 8.18:1 | AAA pass 4.5:1 | |
| Primary on background | 14.48:1 | AAA pass 3:1 | |
| Accent on background | 8.18: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 | #DDDDFF (Text 1) | #EEEEFF (Text 2) | #F5F5FF (Text 3) | #FAFAFF (Text 4) | #FFFFFF (Text 5) |
|---|---|---|---|---|---|
| #DDDDFF | Same color | 1.15— | 1.22— | 1.27— | 1.32— |
| #EEEEFF | 1.15— | Same color | 1.06— | 1.10— | 1.15— |
| #F5F5FF | 1.22— | 1.06— | Same color | 1.04— | 1.08— |
| #FAFAFF | 1.27— | 1.10— | 1.04— | Same color | 1.04— |
| #FFFFFF | 1.32— | 1.15— | 1.08— | 1.04— | Same color |
Shades
Shades and tints (50–950)
