PreviewingGo to this paletteOpen in generator
Code
/* Midsummer Night — colorset.net */
:root {
--color-1: #121A2C;
--color-2: #F7D046;
--color-3: #E86A9A;
--color-4: #2A3550;
--color-5: #F2F1F6;
--color-bg: #F2F1F6;
--color-surface: #F9F9FC;
--color-border: #D9D8E0;
--color-text: #121A2C;
--color-muted: #626C82;
--color-primary: #DD6191;
--color-on-primary: #121A2C;
--color-accent: #A78800;
--color-on-accent: #121A2C;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #121A2C;
--color-surface: #1C2538;
--color-border: #303A50;
--color-text: #F2F1F6;
--color-muted: #8F8E93;
--color-primary: #E86A9A;
--color-on-primary: #121A2C;
--color-accent: #F7D046;
--color-on-accent: #121A2C;
}
}
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 #E86A9A | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #E86A9A | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.45:1 | AAA pass 4.5:1 | |
| Text on surface | 16.52:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.69:1 | AA pass 4.5:1 | |
| Label on primary | 5.12:1 | AA pass 4.5:1 | |
| Label on accent | 5.10:1 | AA pass 4.5:1 | |
| Primary on background | 3.02:1 | AA Large pass 3:1 | |
| Accent on background | 3.03:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.45:1 | AAA pass 4.5:1 | |
| Text on surface | 13.63:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.34:1 | AA pass 4.5:1 | |
| Label on primary | 5.75:1 | AA pass 4.5:1 | |
| Label on accent | 11.63:1 | AAA pass 4.5:1 | |
| Primary on background | 5.75:1 | AA pass 3:1 | |
| Accent on background | 11.63: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 | #121A2C (Text 1) | #F7D046 (Text 2) | #E86A9A (Text 3) | #2A3550 (Text 4) | #F2F1F6 (Text 5) |
|---|---|---|---|---|---|
| #121A2C | Same color | 11.63AAA | 5.75AA | 1.42— | 15.45AAA |
| #F7D046 | 11.63AAA | Same color | 2.02— | 8.16AAA | 1.33— |
| #E86A9A | 5.75AA | 2.02— | Same color | 4.04AA Large | 2.69— |
| #2A3550 | 1.42— | 8.16AAA | 4.04AA Large | Same color | 10.84AAA |
| #F2F1F6 | 15.45AAA | 1.33— | 2.69— | 10.84AAA | Same color |
Shades
Shades and tints (50–950)
