PreviewingGo to this paletteOpen in generator
Code
/* Forest Night — colorset.net */
:root {
--color-1: #112200;
--color-2: #223300;
--color-3: #334400;
--color-4: #445500;
--color-5: #556600;
--color-bg: #F5F9EA;
--color-surface: #EBF0E1;
--color-border: #D2D8C6;
--color-text: #112200;
--color-muted: #616F57;
--color-primary: #556600;
--color-on-primary: #FFFFFF;
--color-accent: #223300;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #112200;
--color-surface: #1B2D09;
--color-border: #35412B;
--color-text: #AFB996;
--color-muted: #8C9479;
--color-primary: #687B22;
--color-on-primary: #FFFFFF;
--color-accent: #9BAE67;
--color-on-accent: #112200;
}
}
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 #556600 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #556600 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #556600 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #556600 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.66:1 | AAA pass 4.5:1 | |
| Text on surface | 14.44:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 6.39:1 | AA pass 4.5:1 | |
| Label on accent | 13.62:1 | AAA pass 4.5:1 | |
| Primary on background | 5.97:1 | AA pass 3:1 | |
| Accent on background | 12.73:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.14:1 | AAA pass 4.5:1 | |
| Text on surface | 7.16:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.29:1 | AA pass 4.5:1 | |
| Label on primary | 4.72:1 | AA pass 4.5:1 | |
| Label on accent | 6.90:1 | AA pass 4.5:1 | |
| Primary on background | 3.55:1 | AA Large pass 3:1 | |
| Accent on background | 6.90:1 | AA 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 | #112200 (Text 1) | #223300 (Text 2) | #334400 (Text 3) | #445500 (Text 4) | #556600 (Text 5) |
|---|---|---|---|---|---|
| #112200 | Same color | 1.23— | 1.57— | 2.03— | 2.62— |
| #223300 | 1.23— | Same color | 1.28— | 1.65— | 2.13— |
| #334400 | 1.57— | 1.28— | Same color | 1.29— | 1.67— |
| #445500 | 2.03— | 1.65— | 1.29— | Same color | 1.29— |
| #556600 | 2.62— | 2.13— | 1.67— | 1.29— | Same color |
Shades
Shades and tints (50–950)
