PreviewingGo to this paletteOpen in generator
Code
/* Cedar Moss — colorset.net */
:root {
--color-1: #3C5233;
--color-2: #4F6844;
--color-3: #627F56;
--color-4: #789669;
--color-5: #8FAD7D;
--color-bg: #F1FAED;
--color-surface: #E8F1E3;
--color-border: #CED9C8;
--color-text: #3C5233;
--color-muted: #61715A;
--color-primary: #627F56;
--color-on-primary: #000000;
--color-accent: #4F6844;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0B1208;
--color-surface: #151C12;
--color-border: #273123;
--color-text: #99AD8D;
--color-muted: #7A8971;
--color-primary: #627F56;
--color-on-primary: #000000;
--color-accent: #789669;
--color-on-accent: #0B1208;
}
}
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 #8FAD7D | adjusted for contrast · from #3C5233 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #8FAD7D |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | from palette · color 2 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.03:1 | AAA pass 4.5:1 | |
| Text on surface | 7.41:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.89:1 | AA pass 4.5:1 | |
| Label on primary | 4.69:1 | AA pass 4.5:1 | |
| Label on accent | 6.18:1 | AA pass 4.5:1 | |
| Primary on background | 4.19:1 | AA Large pass 3:1 | |
| Accent on background | 5.78:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.89:1 | AAA pass 4.5:1 | |
| Text on surface | 7.22:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.11:1 | AA pass 4.5:1 | |
| Label on primary | 4.69:1 | AA pass 4.5:1 | |
| Label on accent | 5.76:1 | AA pass 4.5:1 | |
| Primary on background | 4.25:1 | AA Large pass 3:1 | |
| Accent on background | 5.76:1 | AA 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 | #3C5233 (Text 1) | #4F6844 (Text 2) | #627F56 (Text 3) | #789669 (Text 4) | #8FAD7D (Text 5) |
|---|---|---|---|---|---|
| #3C5233 | Same color | 1.39— | 1.92— | 2.60— | 3.45AA Large |
| #4F6844 | 1.39— | Same color | 1.38— | 1.87— | 2.49— |
| #627F56 | 1.92— | 1.38— | Same color | 1.36— | 1.80— |
| #789669 | 2.60— | 1.87— | 1.36— | Same color | 1.33— |
| #8FAD7D | 3.45AA Large | 2.49— | 1.80— | 1.33— | Same color |
Shades
Shades and tints (50–950)
