PreviewingGo to this paletteOpen in generator
Code
/* Cedar Green — colorset.net */
:root {
--color-1: #3E5F51;
--color-2: #527965;
--color-3: #669379;
--color-4: #7AAD8D;
--color-5: #8EC7A1;
--color-bg: #EDFBF1;
--color-surface: #E4F2E8;
--color-border: #C9DACE;
--color-text: #335446;
--color-muted: #537164;
--color-primary: #669379;
--color-on-primary: #000000;
--color-accent: #527965;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #08120E;
--color-surface: #111C17;
--color-border: #23322B;
--color-text: #9FC1AA;
--color-muted: #6F8977;
--color-primary: #669379;
--color-on-primary: #08120E;
--color-accent: #4C6D5F;
--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 #8EC7A1 | adjusted for contrast · from #3E5F51 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #3E5F51 | adjusted for contrast · from #8EC7A1 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #527965 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.88:1 | AAA pass 4.5:1 | |
| Text on surface | 7.27:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 6.01:1 | AA pass 4.5:1 | |
| Label on accent | 4.90:1 | AA pass 4.5:1 | |
| Primary on background | 3.27:1 | AA Large pass 3:1 | |
| Accent on background | 4.59:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.68:1 | AAA pass 4.5:1 | |
| Text on surface | 8.89:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 5.45:1 | AA pass 4.5:1 | |
| Label on accent | 5.74:1 | AA pass 4.5:1 | |
| Primary on background | 5.45:1 | AA pass 3:1 | |
| Accent on background | 3.32: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 | #3E5F51 (Text 1) | #527965 (Text 2) | #669379 (Text 3) | #7AAD8D (Text 4) | #8EC7A1 (Text 5) |
|---|---|---|---|---|---|
| #3E5F51 | Same color | 1.45— | 2.03— | 2.77— | 3.66AA Large |
| #527965 | 1.45— | Same color | 1.40— | 1.91— | 2.53— |
| #669379 | 2.03— | 1.40— | Same color | 1.36— | 1.80— |
| #7AAD8D | 2.77— | 1.91— | 1.36— | Same color | 1.32— |
| #8EC7A1 | 3.66AA Large | 2.53— | 1.80— | 1.32— | Same color |
Shades
Shades and tints (50–950)
