PreviewingGo to this paletteOpen in generator
Code
/* Moss Dark — colorset.net */
:root {
--color-1: #283D2C;
--color-2: #3A5340;
--color-3: #4C6954;
--color-4: #5F7F68;
--color-5: #73957F;
--color-bg: #EFFAF3;
--color-surface: #E6F1E9;
--color-border: #CBD9CF;
--color-text: #283D2C;
--color-muted: #5A715E;
--color-primary: #5F7F68;
--color-on-primary: #000000;
--color-accent: #3A5340;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0A110C;
--color-surface: #141C16;
--color-border: #273128;
--color-text: #8BAE97;
--color-muted: #708A79;
--color-primary: #5F7F68;
--color-on-primary: #000000;
--color-accent: #536C58;
--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 | adjusted for contrast · from #73957F | adjusted for contrast · from #283D2C |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #73957F |
| Muted text | derived | derived |
| Primary | from palette · color 4 | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #4C6954 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.95:1 | AAA pass 4.5:1 | |
| Text on surface | 10.10:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 4.72:1 | AA pass 4.5:1 | |
| Label on accent | 8.43:1 | AAA pass 4.5:1 | |
| Primary on background | 4.16:1 | AA Large pass 3:1 | |
| Accent on background | 7.88:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.83:1 | AAA pass 4.5:1 | |
| Text on surface | 7.12:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.10:1 | AA pass 4.5:1 | |
| Label on primary | 4.72:1 | AA pass 4.5:1 | |
| Label on accent | 5.75:1 | AA pass 4.5:1 | |
| Primary on background | 4.30:1 | AA Large pass 3:1 | |
| Accent on background | 3.33: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 | #283D2C (Text 1) | #3A5340 (Text 2) | #4C6954 (Text 3) | #5F7F68 (Text 4) | #73957F (Text 5) |
|---|---|---|---|---|---|
| #283D2C | Same color | 1.39— | 1.93— | 2.63— | 3.53AA Large |
| #3A5340 | 1.39— | Same color | 1.39— | 1.90— | 2.54— |
| #4C6954 | 1.93— | 1.39— | Same color | 1.37— | 1.83— |
| #5F7F68 | 2.63— | 1.90— | 1.37— | Same color | 1.34— |
| #73957F | 3.53AA Large | 2.54— | 1.83— | 1.34— | Same color |
Shades
Shades and tints (50–950)
