PreviewingGo to this paletteOpen in generator
Code
/* Green Magic — colorset.net */
:root {
--color-1: #1E8449;
--color-2: #239B56;
--color-3: #27AE60;
--color-4: #2ECC71;
--color-5: #58D68D;
--color-bg: #EDFBF1;
--color-surface: #E4F2E8;
--color-border: #C9DACE;
--color-text: #1A5932;
--color-muted: #5A7260;
--color-primary: #008846;
--color-on-primary: #FFFFFF;
--color-accent: #009E51;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #031408;
--color-surface: #0C1E11;
--color-border: #1E3424;
--color-text: #A1C4AC;
--color-muted: #708A78;
--color-primary: #008846;
--color-on-primary: #FFFFFF;
--color-accent: #58D68D;
--color-on-accent: #031408;
}
}
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 #58D68D | adjusted for contrast · from #1E8449 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #1E8449 | adjusted for contrast · from #58D68D |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #1E8449 | adjusted for contrast · from #1E8449 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #239B56 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.81:1 | AAA pass 4.5:1 | |
| Text on surface | 7.21:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.90:1 | AA pass 4.5:1 | |
| Label on primary | 4.56:1 | AA pass 4.5:1 | |
| Label on accent | 6.01:1 | AA pass 4.5:1 | |
| Primary on background | 4.27:1 | AA Large pass 3:1 | |
| Accent on background | 3.27:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.94:1 | AAA pass 4.5:1 | |
| Text on surface | 9.10:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 4.56:1 | AA pass 4.5:1 | |
| Label on accent | 10.31:1 | AAA pass 4.5:1 | |
| Primary on background | 4.16:1 | AA Large pass 3:1 | |
| Accent on background | 10.31: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 | #1E8449 (Text 1) | #239B56 (Text 2) | #27AE60 (Text 3) | #2ECC71 (Text 4) | #58D68D (Text 5) |
|---|---|---|---|---|---|
| #1E8449 | Same color | 1.32— | 1.64— | 2.24— | 2.56— |
| #239B56 | 1.32— | Same color | 1.24— | 1.70— | 1.94— |
| #27AE60 | 1.64— | 1.24— | Same color | 1.37— | 1.56— |
| #2ECC71 | 2.24— | 1.70— | 1.37— | Same color | 1.14— |
| #58D68D | 2.56— | 1.94— | 1.56— | 1.14— | Same color |
Shades
Shades and tints (50–950)
