PreviewingGo to this paletteOpen in generator
Code
/* Midnight Serum — colorset.net */
:root {
--color-1: #13111C;
--color-2: #C9A7F5;
--color-3: #F4B9A3;
--color-4: #2E2A3D;
--color-5: #F3EFF8;
--color-bg: #F3EFF8;
--color-surface: #F9F7FD;
--color-border: #DBD6E2;
--color-text: #13111C;
--color-muted: #666472;
--color-primary: #9D7CC6;
--color-on-primary: #13111C;
--color-accent: #B57E6A;
--color-on-accent: #13111C;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #13111C;
--color-surface: #1D1B27;
--color-border: #322F3F;
--color-text: #F3EFF8;
--color-muted: #8C8890;
--color-primary: #C9A7F5;
--color-on-primary: #13111C;
--color-accent: #F4B9A3;
--color-on-accent: #13111C;
}
}
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 #C9A7F5 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #F4B9A3 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.46:1 | AAA pass 4.5:1 | |
| Text on surface | 17.56:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.10:1 | AA pass 4.5:1 | |
| Label on primary | 5.45:1 | AA pass 4.5:1 | |
| Label on accent | 5.47:1 | AA pass 4.5:1 | |
| Primary on background | 3.02:1 | AA Large pass 3:1 | |
| Accent on background | 3.01:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.46:1 | AAA pass 4.5:1 | |
| Text on surface | 14.95:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.37:1 | AA pass 4.5:1 | |
| Label on primary | 9.18:1 | AAA pass 4.5:1 | |
| Label on accent | 10.95:1 | AAA pass 4.5:1 | |
| Primary on background | 9.18:1 | AAA pass 3:1 | |
| Accent on background | 10.95: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 | #13111C (Text 1) | #C9A7F5 (Text 2) | #F4B9A3 (Text 3) | #2E2A3D (Text 4) | #F3EFF8 (Text 5) |
|---|---|---|---|---|---|
| #13111C | Same color | 9.18AAA | 10.95AAA | 1.35— | 16.46AAA |
| #C9A7F5 | 9.18AAA | Same color | 1.19— | 6.82AA | 1.79— |
| #F4B9A3 | 10.95AAA | 1.19— | Same color | 8.13AAA | 1.50— |
| #2E2A3D | 1.35— | 6.82AA | 8.13AAA | Same color | 12.22AAA |
| #F3EFF8 | 16.46AAA | 1.79— | 1.50— | 12.22AAA | Same color |
Shades
Shades and tints (50–950)
