Export

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

ColorHEXRGBHSLOKLCH
1
2
3
4
5

Roles & contrast

Original colors are kept; roles are adjusted only when needed for contrast.

RoleLight modeDark mode
Backgroundfrom palette · color 5from palette · color 1
Surfacederivedderived
Borderderivedderived
Textfrom palette · color 1from palette · color 5
Muted textderivedderived
Primaryadjusted for contrast · from #C9A7F5from palette · color 2
On primaryderivedderived
Accentadjusted for contrast · from #F4B9A3from palette · color 3
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background16.46:1AAA pass 4.5:1
Text on surface17.56:1AAA pass 4.5:1
Muted text on background5.10:1AA pass 4.5:1
Label on primary5.45:1AA pass 4.5:1
Label on accent5.47:1AA pass 4.5:1
Primary on background3.02:1AA Large pass 3:1
Accent on background3.01:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background16.46:1AAA pass 4.5:1
Text on surface14.95:1AAA pass 4.5:1
Muted text on background5.37:1AA pass 4.5:1
Label on primary9.18:1AAA pass 4.5:1
Label on accent10.95:1AAA pass 4.5:1
Primary on background9.18:1AAA pass 3:1
Accent on background10.95:1AAA 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.

Every color on every color
Background / Text#13111C (Text 1)#C9A7F5 (Text 2)#F4B9A3 (Text 3)#2E2A3D (Text 4)#F3EFF8 (Text 5)
#13111CSame color9.18AAA10.95AAA1.35—16.46AAA
#C9A7F59.18AAASame color1.19—6.82AA1.79—
#F4B9A310.95AAA1.19—Same color8.13AAA1.50—
#2E2A3D1.35—6.82AA8.13AAASame color12.22AAA
#F3EFF816.46AAA1.79—1.50—12.22AAASame color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#13111C#C9A7F5#F4B9A3#2E2A3D#F3EFF8

Variations

About Midnight Serum

Lilac and peach on inky violet for overnight treatments and premium serums. Midnight Serum is a balanced multi-color palette of 5 colors that runs from off-white #F3EFF8 to near-black #13111C. The hues range across 97° of the wheel, pairing light purple #C9A7F5 with light orange for lively contrast. Lightness runs from 19% to 96% (OKLCH), with #C9A7F5 in between, a wide range that leaves room for readable text and clear backgrounds. Saturation is low (mean OKLCH chroma 0.052, peaking at 0.114 in #C9A7F5); the colors feel soft and muted. Text contrast reaches 16.5:1 in light mode and 16.5:1 in dark mode, with #9D7CC6 as primary and #B57E6A as accent. Try it for signage, presentation slides and accessible interfaces, letting light purple #C9A7F5 carry the key actions.

Midnight Serum color palette: #13111C, #C9A7F5, #F4B9A3, #2E2A3D, #F3EFF8
Share image for Midnight Serum

Gradients in similar colors