PreviewingGo to this paletteOpen in generator
Code
/* Lemon Grid — colorset.net */
:root {
--color-1: #FAF9F1;
--color-2: #F2CF3B;
--color-3: #3F5482;
--color-4: #AA9935;
--color-5: #242217;
--color-bg: #FAF9F1;
--color-surface: #F1F0E8;
--color-border: #D9D7CC;
--color-text: #242217;
--color-muted: #6E6B5E;
--color-primary: #9B8A21;
--color-on-primary: #242217;
--color-accent: #3F5482;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #242217;
--color-surface: #2F2D22;
--color-border: #464334;
--color-text: #FAF9F1;
--color-muted: #98978F;
--color-primary: #AA9935;
--color-on-primary: #242217;
--color-accent: #6077A7;
--color-on-accent: #000000;
}
}
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 | from palette · color 1 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #AA9935 | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 3 | adjusted for contrast · from #3F5482 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.11:1 | AAA pass 4.5:1 | |
| Text on surface | 13.96:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 4.60:1 | AA pass 4.5:1 | |
| Label on accent | 7.50:1 | AAA pass 4.5:1 | |
| Primary on background | 3.29:1 | AA Large pass 3:1 | |
| Accent on background | 7.10:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.11:1 | AAA pass 4.5:1 | |
| Text on surface | 13.09:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.44:1 | AA pass 4.5:1 | |
| Label on primary | 5.56:1 | AA pass 4.5:1 | |
| Label on accent | 4.69:1 | AA pass 4.5:1 | |
| Primary on background | 5.56:1 | AA pass 3:1 | |
| Accent on background | 3.57: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 | #FAF9F1 (Text 1) | #F2CF3B (Text 2) | #3F5482 (Text 3) | #AA9935 (Text 4) | #242217 (Text 5) |
|---|---|---|---|---|---|
| #FAF9F1 | Same color | 1.44— | 7.10AAA | 2.72— | 15.11AAA |
| #F2CF3B | 1.44— | Same color | 4.91AA | 1.88— | 10.46AAA |
| #3F5482 | 7.10AAA | 4.91AA | Same color | 2.61— | 2.13— |
| #AA9935 | 2.72— | 1.88— | 2.61— | Same color | 5.56AA |
| #242217 | 15.11AAA | 10.46AAA | 2.13— | 5.56AA | Same color |
Shades
Shades and tints (50–950)
