PreviewingGo to this paletteOpen in generator
Code
/* Midnight Gala — colorset.net */
:root {
--color-1: #141B2E;
--color-2: #D9B36C;
--color-3: #C98A9A;
--color-4: #2C3550;
--color-5: #F3EEE6;
--color-bg: #F3EEE6;
--color-surface: #F9F6F1;
--color-border: #DCD5CA;
--color-text: #141B2E;
--color-muted: #626B83;
--color-primary: #B57888;
--color-on-primary: #141B2E;
--color-accent: #2C3550;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #141B2E;
--color-surface: #1E263A;
--color-border: #333B51;
--color-text: #F3EEE6;
--color-muted: #928D86;
--color-primary: #C98A9A;
--color-on-primary: #141B2E;
--color-accent: #646F8D;
--color-on-accent: #FFFFFF;
}
}
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 #C98A9A | from palette · color 3 |
| On primary | derived | derived |
| Accent | from palette · color 4 | adjusted for contrast · from #C98A9A |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.83:1 | AAA pass 4.5:1 | |
| Text on surface | 15.89:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.60:1 | AA pass 4.5:1 | |
| Label on primary | 4.90:1 | AA pass 4.5:1 | |
| Label on accent | 12.12:1 | AAA pass 4.5:1 | |
| Primary on background | 3.03:1 | AA Large pass 3:1 | |
| Accent on background | 10.50:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.83:1 | AAA pass 4.5:1 | |
| Text on surface | 13.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.20:1 | AA pass 4.5:1 | |
| Label on primary | 6.19:1 | AA pass 4.5:1 | |
| Label on accent | 5.00:1 | AA pass 4.5:1 | |
| Primary on background | 6.19:1 | AA pass 3:1 | |
| Accent on background | 3.43: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 | #141B2E (Text 1) | #D9B36C (Text 2) | #C98A9A (Text 3) | #2C3550 (Text 4) | #F3EEE6 (Text 5) |
|---|---|---|---|---|---|
| #141B2E | Same color | 8.66AAA | 6.19AA | 1.41— | 14.83AAA |
| #D9B36C | 8.66AAA | Same color | 1.40— | 6.13AA | 1.71— |
| #C98A9A | 6.19AA | 1.40— | Same color | 4.38AA Large | 2.40— |
| #2C3550 | 1.41— | 6.13AA | 4.38AA Large | Same color | 10.50AAA |
| #F3EEE6 | 14.83AAA | 1.71— | 2.40— | 10.50AAA | Same color |
Shades
Shades and tints (50–950)
