PreviewingGo to this paletteOpen in generator
Code
/* Green Oasis — colorset.net */
:root {
--color-1: #166534;
--color-2: #15803D;
--color-3: #22C55E;
--color-4: #4ADE80;
--color-5: #86EFAC;
--color-bg: #EDFBF1;
--color-surface: #E4F2E8;
--color-border: #C9DACE;
--color-text: #1F5A32;
--color-muted: #59705E;
--color-primary: #009F46;
--color-on-primary: #000000;
--color-accent: #15803D;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #041408;
--color-surface: #0C1E11;
--color-border: #1E3424;
--color-text: #BCDFC6;
--color-muted: #708A78;
--color-primary: #22C55E;
--color-on-primary: #041408;
--color-accent: #297442;
--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 #86EFAC | adjusted for contrast · from #166534 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #166534 | adjusted for contrast · from #86EFAC |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #15803D | from palette · color 3 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #15803D |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.66:1 | AAA pass 4.5:1 | |
| Text on surface | 7.08:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 6.05:1 | AA pass 4.5:1 | |
| Label on accent | 5.02:1 | AA pass 4.5:1 | |
| Primary on background | 3.25:1 | AA Large pass 3:1 | |
| Accent on background | 4.70:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.09:1 | AAA pass 4.5:1 | |
| Text on surface | 12.00:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 8.31:1 | AAA pass 4.5:1 | |
| Label on accent | 5.72:1 | AA pass 4.5:1 | |
| Primary on background | 8.31:1 | AAA pass 3:1 | |
| Accent on background | 3.31: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 | #166534 (Text 1) | #15803D (Text 2) | #22C55E (Text 3) | #4ADE80 (Text 4) | #86EFAC (Text 5) |
|---|---|---|---|---|---|
| #166534 | Same color | 1.42— | 3.13AA Large | 4.09AA Large | 5.08AA |
| #15803D | 1.42— | Same color | 2.20— | 2.88— | 3.57AA Large |
| #22C55E | 3.13AA Large | 2.20— | Same color | 1.31— | 1.62— |
| #4ADE80 | 4.09AA Large | 2.88— | 1.31— | Same color | 1.24— |
| #86EFAC | 5.08AA | 3.57AA Large | 1.62— | 1.24— | Same color |
Shades
Shades and tints (50–950)
