PreviewingGo to this paletteOpen in generator
Code
/* Midnight Woods — colorset.net */
:root {
--color-1: #0F1A17;
--color-2: #4E9A7A;
--color-3: #C8A2D8;
--color-4: #233530;
--color-5: #E6EFEB;
--color-bg: #E6EFEB;
--color-surface: #F0F5F3;
--color-border: #CBD7D2;
--color-text: #0F1A17;
--color-muted: #5E6B67;
--color-primary: #348263;
--color-on-primary: #FFFFFF;
--color-accent: #8C699B;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F1A17;
--color-surface: #192521;
--color-border: #2B3B36;
--color-text: #E6EFEB;
--color-muted: #848D89;
--color-primary: #4E9A7A;
--color-on-primary: #0F1A17;
--color-accent: #C8A2D8;
--color-on-accent: #0F1A17;
}
}
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 5 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #4E9A7A | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #4E9A7A | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.17:1 | AAA pass 4.5:1 | |
| Text on surface | 16.15:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.74:1 | AA pass 4.5:1 | |
| Label on primary | 4.65:1 | AA pass 4.5:1 | |
| Label on accent | 4.56:1 | AA pass 4.5:1 | |
| Primary on background | 3.96:1 | AA Large pass 3:1 | |
| Accent on background | 3.89:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.17:1 | AAA pass 4.5:1 | |
| Text on surface | 13.49:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.21:1 | AA pass 4.5:1 | |
| Label on primary | 5.28:1 | AA pass 4.5:1 | |
| Label on accent | 8.15:1 | AAA pass 4.5:1 | |
| Primary on background | 5.28:1 | AA pass 3:1 | |
| Accent on background | 8.15: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 | #0F1A17 (Text 1) | #4E9A7A (Text 2) | #C8A2D8 (Text 3) | #233530 (Text 4) | #E6EFEB (Text 5) |
|---|---|---|---|---|---|
| #0F1A17 | Same color | 5.28AA | 8.15AAA | 1.38— | 15.17AAA |
| #4E9A7A | 5.28AA | Same color | 1.54— | 3.84AA Large | 2.88— |
| #C8A2D8 | 8.15AAA | 1.54— | Same color | 5.92AA | 1.86— |
| #233530 | 1.38— | 3.84AA Large | 5.92AA | Same color | 11.03AAA |
| #E6EFEB | 15.17AAA | 2.88— | 1.86— | 11.03AAA | Same color |
Shades
Shades and tints (50–950)
