PreviewingGo to this paletteOpen in generator
Code
/* Fir Green — colorset.net */
:root {
--color-1: #1A4D2E;
--color-2: #246742;
--color-3: #2E8156;
--color-4: #389B6A;
--color-5: #52B57E;
--color-bg: #EDFBF1;
--color-surface: #E3F2E8;
--color-border: #C8DACE;
--color-text: #1A4D2E;
--color-muted: #5A7261;
--color-primary: #1B8556;
--color-on-primary: #FFFFFF;
--color-accent: #246742;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #051309;
--color-surface: #0E1E13;
--color-border: #1F3326;
--color-text: #8BAE98;
--color-muted: #708A79;
--color-primary: #389B6A;
--color-on-primary: #051309;
--color-accent: #407251;
--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 #52B57E | adjusted for contrast · from #1A4D2E |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #52B57E |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #2E8156 | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #2E8156 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.17:1 | AAA pass 4.5:1 | |
| Text on surface | 8.45:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.90:1 | AA pass 4.5:1 | |
| Label on primary | 4.63:1 | AA pass 4.5:1 | |
| Label on accent | 6.79:1 | AA pass 4.5:1 | |
| Primary on background | 4.34:1 | AA Large pass 3:1 | |
| Accent on background | 6.36:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.80:1 | AAA pass 4.5:1 | |
| Text on surface | 7.09:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.07:1 | AA pass 4.5:1 | |
| Label on primary | 5.50:1 | AA pass 4.5:1 | |
| Label on accent | 5.61:1 | AA pass 4.5:1 | |
| Primary on background | 5.50:1 | AA pass 3:1 | |
| Accent on background | 3.39: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 | #1A4D2E (Text 1) | #246742 (Text 2) | #2E8156 (Text 3) | #389B6A (Text 4) | #52B57E (Text 5) |
|---|---|---|---|---|---|
| #1A4D2E | Same color | 1.44— | 2.05— | 2.83— | 3.86AA Large |
| #246742 | 1.44— | Same color | 1.42— | 1.96— | 2.67— |
| #2E8156 | 2.05— | 1.42— | Same color | 1.38— | 1.88— |
| #389B6A | 2.83— | 1.96— | 1.38— | Same color | 1.36— |
| #52B57E | 3.86AA Large | 2.67— | 1.88— | 1.36— | Same color |
Shades
Shades and tints (50–950)
