PreviewingGo to this paletteOpen in generator
Code
/* Avocado Green — colorset.net */
:root {
--color-1: #9ACD32;
--color-2: #ADFF2F;
--color-3: #F5DEB3;
--color-4: #DEB887;
--color-5: #D2B48C;
--color-bg: #F2FAEC;
--color-surface: #E9F0E3;
--color-border: #CFD8C7;
--color-text: #3F5417;
--color-muted: #636D55;
--color-primary: #548200;
--color-on-primary: #FFFFFF;
--color-accent: #A48051;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0B1202;
--color-surface: #151C0A;
--color-border: #28321B;
--color-text: #D7EAC7;
--color-muted: #79866D;
--color-primary: #ADFF2F;
--color-on-primary: #0B1202;
--color-accent: #DEB887;
--color-on-accent: #0B1202;
}
}
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 #F5DEB3 | adjusted for contrast · from #D2B48C |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #D2B48C | adjusted for contrast · from #F5DEB3 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #9ACD32 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #D2B48C | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.89:1 | AAA pass 4.5:1 | |
| Text on surface | 7.24:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.11:1 | AA pass 4.5:1 | |
| Label on primary | 4.60:1 | AA pass 4.5:1 | |
| Label on accent | 5.78:1 | AA pass 4.5:1 | |
| Primary on background | 4.30:1 | AA Large pass 3:1 | |
| Accent on background | 3.40:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.96:1 | AAA pass 4.5:1 | |
| Text on surface | 13.71:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 15.54:1 | AAA pass 4.5:1 | |
| Label on accent | 10.27:1 | AAA pass 4.5:1 | |
| Primary on background | 15.54:1 | AAA pass 3:1 | |
| Accent on background | 10.27: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 | #9ACD32 (Text 1) | #ADFF2F (Text 2) | #F5DEB3 (Text 3) | #DEB887 (Text 4) | #D2B48C (Text 5) |
|---|---|---|---|---|---|
| #9ACD32 | Same color | 1.54— | 1.43— | 1.01— | 1.05— |
| #ADFF2F | 1.54— | Same color | 1.07— | 1.51— | 1.61— |
| #F5DEB3 | 1.43— | 1.07— | Same color | 1.41— | 1.50— |
| #DEB887 | 1.01— | 1.51— | 1.41— | Same color | 1.06— |
| #D2B48C | 1.05— | 1.61— | 1.50— | 1.06— | Same color |
Shades
Shades and tints (50–950)
