PreviewingGo to this paletteOpen in generator
Code
/* Midnight Plum — colorset.net */
:root {
--color-1: #2F1229;
--color-2: #4A1D42;
--color-3: #65285B;
--color-4: #803374;
--color-5: #9B3E8D;
--color-bg: #FFF2FC;
--color-surface: #F6E9F3;
--color-border: #E0CFDC;
--color-text: #2F1229;
--color-muted: #7A6274;
--color-primary: #9B3E8D;
--color-on-primary: #FFFFFF;
--color-accent: #4A1D42;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #2F1229;
--color-surface: #3B1D34;
--color-border: #4C3747;
--color-text: #CBABC4;
--color-muted: #9F879A;
--color-primary: #AB4D9C;
--color-on-primary: #FFFFFF;
--color-accent: #8A6681;
--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 | adjusted for contrast · from #9B3E8D | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #9B3E8D |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #9B3E8D |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #9B3E8D |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.62:1 | AAA pass 4.5:1 | |
| Text on surface | 14.42:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 6.06:1 | AA pass 4.5:1 | |
| Label on accent | 13.59:1 | AAA pass 4.5:1 | |
| Primary on background | 5.58:1 | AA pass 3:1 | |
| Accent on background | 12.53:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.20:1 | AAA pass 4.5:1 | |
| Text on surface | 7.20:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.17:1 | AA pass 4.5:1 | |
| Label on primary | 4.91:1 | AA pass 4.5:1 | |
| Label on accent | 4.89:1 | AA pass 4.5:1 | |
| Primary on background | 3.45:1 | AA Large pass 3:1 | |
| Accent on background | 3.47: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 | #2F1229 (Text 1) | #4A1D42 (Text 2) | #65285B (Text 3) | #803374 (Text 4) | #9B3E8D (Text 5) |
|---|---|---|---|---|---|
| #2F1229 | Same color | 1.25— | 1.62— | 2.13— | 2.80— |
| #4A1D42 | 1.25— | Same color | 1.30— | 1.71— | 2.24— |
| #65285B | 1.62— | 1.30— | Same color | 1.32— | 1.73— |
| #803374 | 2.13— | 1.71— | 1.32— | Same color | 1.31— |
| #9B3E8D | 2.80— | 2.24— | 1.73— | 1.31— | Same color |
Shades
Shades and tints (50–950)
