Export

Code

/* Midnight Purple — colorset.net */
:root {
  --color-1: #2E0854;
  --color-2: #4B1373;
  --color-3: #681E93;
  --color-4: #8529B2;
  --color-5: #1A0340;

  --color-bg: #FAF4FF;
  --color-surface: #F2EAF8;
  --color-border: #DAD1E1;
  --color-text: #19083A;
  --color-muted: #6A6780;
  --color-primary: #8529B2;
  --color-on-primary: #FFFFFF;
  --color-accent: #2E0854;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #100C1D;
    --color-surface: #1A1628;
    --color-border: #2E2A40;
    --color-text: #B19EBE;
    --color-muted: #8C7E96;
    --color-primary: #943BC3;
    --color-on-primary: #FFFFFF;
    --color-accent: #6A5DA0;
    --color-on-accent: #FFFFFF;
  }
}

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
Backgroundadjusted for contrast · from #8529B2adjusted for contrast · from #1A0340
Surfacederivedderived
Borderderivedderived
Textadjusted for contrast · from #1A0340adjusted for contrast · from #8529B2
Muted textderivedderived
Primaryfrom palette · color 4adjusted for contrast · from #8529B2
On primaryderivedderived
Accentfrom palette · color 1adjusted for contrast · from #8529B2
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background17.10:1AAA pass 4.5:1
Text on surface15.74:1AAA pass 4.5:1
Muted text on background5.03:1AA pass 4.5:1
Label on primary7.10:1AAA pass 4.5:1
Label on accent16.42:1AAA pass 4.5:1
Primary on background6.58:1AA pass 3:1
Accent on background15.21:1AAA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background7.78:1AAA pass 4.5:1
Text on surface7.15:1AAA pass 4.5:1
Muted text on background5.07:1AA pass 4.5:1
Label on primary5.72:1AA pass 4.5:1
Label on accent5.70:1AA pass 4.5:1
Primary on background3.36:1AA Large pass 3:1
Accent on background3.37:1AA 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.

Every color on every color
Background / Text#2E0854 (Text 1)#4B1373 (Text 2)#681E93 (Text 3)#8529B2 (Text 4)#1A0340 (Text 5)
#2E0854Same color1.28—1.72—2.31—1.13—
#4B13731.28—Same color1.34—1.80—1.45—
#681E931.72—1.34—Same color1.35—1.94—
#8529B22.31—1.80—1.35—Same color2.61—
#1A03401.13—1.45—1.94—2.61—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#2E0854#4B1373#681E93#8529B2#1A0340

Variations

About Midnight Purple

Nearly all of the color weight in Midnight Purple sits in purple, which makes it a cool palette anchored by dark purple #4B1373. With a hue spread of just 20°, it is effectively monochromatic: #2E0854, #4B1373 and #681E93 differ mostly in lightness. All five colors stay in a narrow dark band (20% to 49% lightness, #1A0340 to #8529B2), so text and background roles are adjusted for contrast. Saturation is medium (mean OKLCH chroma 0.153, peaking at 0.207 in #8529B2); the colors are clear without being loud. Text contrast reaches 17.1:1 in light mode and 7.8:1 in dark mode, with #8529B2 as primary and #2E0854 as accent. With #8529B2 leading, good fits include premium products, music and nightlife and creative studios.

Midnight Purple color palette: #2E0854, #4B1373, #681E93, #8529B2, #1A0340
Share image for Midnight Purple

Gradients in similar colors