PreviewingGo to this paletteOpen in generator
Code
/* Moon Grey — colorset.net */
:root {
--color-1: #D3D3D3;
--color-2: #DCDCDC;
--color-3: #E5E5E5;
--color-4: #EEEEEE;
--color-5: #F7F7F7;
--color-bg: #F7F7F7;
--color-surface: #EEEEEE;
--color-border: #D8D4D5;
--color-text: #4F4F4F;
--color-muted: #6B6B6B;
--color-primary: #888888;
--color-on-primary: #000000;
--color-accent: #575757;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F0F;
--color-surface: #191919;
--color-border: #302D2E;
--color-text: #F7F7F7;
--color-muted: #8B8B8B;
--color-primary: #D3D3D3;
--color-on-primary: #0F0F0F;
--color-accent: #9D9D9D;
--color-on-accent: #0F0F0F;
}
}
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 #D3D3D3 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #D3D3D3 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #D3D3D3 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #D3D3D3 | adjusted for contrast · from #D3D3D3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.65:1 | AAA pass 4.5:1 | |
| Text on surface | 7.06:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 5.92:1 | AA pass 4.5:1 | |
| Label on accent | 7.23:1 | AAA pass 4.5:1 | |
| Primary on background | 3.31:1 | AA Large pass 3:1 | |
| Accent on background | 6.75:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.89:1 | AAA pass 4.5:1 | |
| Text on surface | 16.41:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.63:1 | AA pass 4.5:1 | |
| Label on primary | 12.80:1 | AAA pass 4.5:1 | |
| Label on accent | 7.07:1 | AAA pass 4.5:1 | |
| Primary on background | 12.80:1 | AAA pass 3:1 | |
| Accent on background | 7.07: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 | #D3D3D3 (Text 1) | #DCDCDC (Text 2) | #E5E5E5 (Text 3) | #EEEEEE (Text 4) | #F7F7F7 (Text 5) |
|---|---|---|---|---|---|
| #D3D3D3 | Same color | 1.09— | 1.19— | 1.29— | 1.40— |
| #DCDCDC | 1.09— | Same color | 1.09— | 1.18— | 1.28— |
| #E5E5E5 | 1.19— | 1.09— | Same color | 1.09— | 1.18— |
| #EEEEEE | 1.29— | 1.18— | 1.09— | Same color | 1.08— |
| #F7F7F7 | 1.40— | 1.28— | 1.18— | 1.08— | Same color |
Shades
Shades and tints (50–950)
