PreviewingGo to this paletteOpen in generator
Code
/* Midnight Drive — colorset.net */
:root {
--color-1: #0F1630;
--color-2: #FF9F1C;
--color-3: #F72585;
--color-4: #2C3560;
--color-5: #F2EEF8;
--color-bg: #F2EEF8;
--color-surface: #F9F6FC;
--color-border: #DAD5E2;
--color-text: #0F1630;
--color-muted: #616981;
--color-primary: #E30076;
--color-on-primary: #FFFFFF;
--color-accent: #C67800;
--color-on-accent: #0F1630;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F1630;
--color-surface: #19213C;
--color-border: #30374D;
--color-text: #F2EEF8;
--color-muted: #8E8B94;
--color-primary: #E30076;
--color-on-primary: #FFFFFF;
--color-accent: #FF9F1C;
--color-on-accent: #0F1630;
}
}
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 #F72585 | adjusted for contrast · from #F72585 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FF9F1C | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.59:1 | AAA pass 4.5:1 | |
| Text on surface | 16.66:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.77:1 | AA pass 4.5:1 | |
| Label on primary | 4.64:1 | AA pass 4.5:1 | |
| Label on accent | 5.17:1 | AA pass 4.5:1 | |
| Primary on background | 4.06:1 | AA Large pass 3:1 | |
| Accent on background | 3.02:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.59:1 | AAA pass 4.5:1 | |
| Text on surface | 13.87:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.32:1 | AA pass 4.5:1 | |
| Label on primary | 4.64:1 | AA pass 4.5:1 | |
| Label on accent | 8.68:1 | AAA pass 4.5:1 | |
| Primary on background | 3.84:1 | AA Large pass 3:1 | |
| Accent on background | 8.68: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 | #0F1630 (Text 1) | #FF9F1C (Text 2) | #F72585 (Text 3) | #2C3560 (Text 4) | #F2EEF8 (Text 5) |
|---|---|---|---|---|---|
| #0F1630 | Same color | 8.68AAA | 4.72AA | 1.52— | 15.59AAA |
| #FF9F1C | 8.68AAA | Same color | 1.84— | 5.73AA | 1.80— |
| #F72585 | 4.72AA | 1.84— | Same color | 3.11AA Large | 3.30AA Large |
| #2C3560 | 1.52— | 5.73AA | 3.11AA Large | Same color | 10.28AAA |
| #F2EEF8 | 15.59AAA | 1.80— | 3.30AA Large | 10.28AAA | Same color |
Shades
Shades and tints (50–950)
