PreviewingGo to this paletteOpen in generator
Code
/* Needle Green — colorset.net */
:root {
--color-1: #0F4C1B;
--color-2: #1A5726;
--color-3: #256231;
--color-4: #306D3C;
--color-5: #3B7847;
--color-bg: #EEFBEF;
--color-surface: #E5F1E6;
--color-border: #CADACC;
--color-text: #174B20;
--color-muted: #5B705C;
--color-primary: #3B7847;
--color-on-primary: #FFFFFF;
--color-accent: #256231;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #051306;
--color-surface: #0E1E0F;
--color-border: #203322;
--color-text: #8FAD93;
--color-muted: #738A75;
--color-primary: #3B7847;
--color-on-primary: #FFFFFF;
--color-accent: #76AA7E;
--color-on-accent: #051306;
}
}
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 #3B7847 | adjusted for contrast · from #0F4C1B |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #0F4C1B | adjusted for contrast · from #3B7847 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | from palette · color 3 | adjusted for contrast · from #3B7847 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.54:1 | AAA pass 4.5:1 | |
| Text on surface | 8.75:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 5.30:1 | AA pass 4.5:1 | |
| Label on accent | 7.32:1 | AAA pass 4.5:1 | |
| Primary on background | 4.97:1 | AA pass 3:1 | |
| Accent on background | 6.86:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.77:1 | AAA pass 4.5:1 | |
| Text on surface | 7.07:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.10:1 | AA pass 4.5:1 | |
| Label on primary | 5.30:1 | AA pass 4.5:1 | |
| Label on accent | 7.10:1 | AAA pass 4.5:1 | |
| Primary on background | 3.60:1 | AA Large pass 3:1 | |
| Accent on background | 7.10: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 | #0F4C1B (Text 1) | #1A5726 (Text 2) | #256231 (Text 3) | #306D3C (Text 4) | #3B7847 (Text 5) |
|---|---|---|---|---|---|
| #0F4C1B | Same color | 1.18— | 1.39— | 1.63— | 1.91— |
| #1A5726 | 1.18— | Same color | 1.18— | 1.39— | 1.63— |
| #256231 | 1.39— | 1.18— | Same color | 1.18— | 1.38— |
| #306D3C | 1.63— | 1.39— | 1.18— | Same color | 1.17— |
| #3B7847 | 1.91— | 1.63— | 1.38— | 1.17— | Same color |
Shades
Shades and tints (50–950)
