PreviewingGo to this paletteOpen in generator
Code
/* Juniper Dark — colorset.net */
:root {
--color-1: #2F5040;
--color-2: #426654;
--color-3: #557D68;
--color-4: #68947C;
--color-5: #7BAB90;
--color-bg: #ECFBF2;
--color-surface: #E3F2E9;
--color-border: #C8DACF;
--color-text: #2F5040;
--color-muted: #557162;
--color-primary: #557D68;
--color-on-primary: #FFFFFF;
--color-accent: #639278;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #08120D;
--color-surface: #111C17;
--color-border: #23322A;
--color-text: #8AAE99;
--color-muted: #6F8A7A;
--color-primary: #557D68;
--color-on-primary: #FFFFFF;
--color-accent: #68947C;
--color-on-accent: #08120D;
}
}
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 #7BAB90 | adjusted for contrast · from #2F5040 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #7BAB90 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #68947C | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.39:1 | AAA pass 4.5:1 | |
| Text on surface | 7.75:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 4.65:1 | AA pass 4.5:1 | |
| Label on accent | 5.91:1 | AA pass 4.5:1 | |
| Primary on background | 4.35:1 | AA Large pass 3:1 | |
| Accent on background | 3.32:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.79:1 | AAA pass 4.5:1 | |
| Text on surface | 7.15:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.07:1 | AA pass 4.5:1 | |
| Label on primary | 4.65:1 | AA pass 4.5:1 | |
| Label on accent | 5.55:1 | AA pass 4.5:1 | |
| Primary on background | 4.10:1 | AA Large pass 3:1 | |
| Accent on background | 5.55: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 | #2F5040 (Text 1) | #426654 (Text 2) | #557D68 (Text 3) | #68947C (Text 4) | #7BAB90 (Text 5) |
|---|---|---|---|---|---|
| #2F5040 | Same color | 1.39— | 1.93— | 2.61— | 3.45AA Large |
| #426654 | 1.39— | Same color | 1.39— | 1.88— | 2.48— |
| #557D68 | 1.93— | 1.39— | Same color | 1.35— | 1.79— |
| #68947C | 2.61— | 1.88— | 1.35— | Same color | 1.32— |
| #7BAB90 | 3.45AA Large | 2.48— | 1.79— | 1.32— | Same color |
Shades
Shades and tints (50–950)
