Export

Code

/* Imperial Purple — colorset.net */
:root {
  --color-1: #4A148C;
  --color-2: #6A1B9A;
  --color-3: #8E24AA;
  --color-4: #AB47BC;
  --color-5: #CE93D8;

  --color-bg: #FDF3FF;
  --color-surface: #F4E9F6;
  --color-border: #DDD0DF;
  --color-text: #423166;
  --color-muted: #6D6780;
  --color-primary: #AB47BC;
  --color-on-primary: #FFFFFF;
  --color-accent: #4A148C;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #110C1D;
    --color-surface: #1B1628;
    --color-border: #302A40;
    --color-text: #BBA2BF;
    --color-muted: #907C93;
    --color-primary: #AB47BC;
    --color-on-primary: #FFFFFF;
    --color-accent: #784EC4;
    --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 #CE93D8adjusted for contrast · from #4A148C
Surfacederivedderived
Borderderivedderived
Textadjusted for contrast · from #4A148Cadjusted for contrast · from #CE93D8
Muted textderivedderived
Primaryfrom palette · color 4from palette · color 4
On primaryderivedderived
Accentfrom palette · color 1adjusted for contrast · from #8E24AA
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background10.44:1AAA pass 4.5:1
Text on surface9.57:1AAA pass 4.5:1
Muted text on background4.98:1AA pass 4.5:1
Label on primary4.82:1AA pass 4.5:1
Label on accent11.86:1AAA pass 4.5:1
Primary on background4.46:1AA Large pass 3:1
Accent on background10.98:1AAA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background8.26:1AAA pass 4.5:1
Text on surface7.58:1AAA pass 4.5:1
Muted text on background5.02:1AA pass 4.5:1
Label on primary4.82:1AA pass 4.5:1
Label on accent5.70:1AA pass 4.5:1
Primary on background3.98: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#4A148C (Text 1)#6A1B9A (Text 2)#8E24AA (Text 3)#AB47BC (Text 4)#CE93D8 (Text 5)
#4A148CSame color1.26—1.69—2.46—4.97AA
#6A1B9A1.26—Same color1.33—1.95—3.93AA Large
#8E24AA1.69—1.33—Same color1.46—2.95—
#AB47BC2.46—1.95—1.46—Same color2.02—
#CE93D84.97AA3.93AA Large2.95—2.02—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#4A148C#6A1B9A#8E24AA#AB47BC#CE93D8

Variations

About Imperial Purple

Nearly all of the color weight in Imperial Purple sits in purple, which makes it a cool palette anchored by vivid purple #8E24AA. With a hue spread of just 25°, it is effectively monochromatic: #4A148C, #6A1B9A and #8E24AA differ mostly in lightness. Lightness spans 36% (#4A148C) to 74% (#CE93D8), a moderate range; text roles may need slight darkening for full contrast. Saturation is high (mean OKLCH chroma 0.177, peaking at 0.208 in #8E24AA); the colors feel saturated and energetic. Text contrast reaches 10.4:1 in light mode and 8.3:1 in dark mode, with #AB47BC as primary and #4A148C as accent. Try it for posters, sports and fitness apps and festival branding, letting vivid purple #AB47BC carry the key actions.

These colors are almost the same as Electric Purple.

Imperial Purple color palette: #4A148C, #6A1B9A, #8E24AA, #AB47BC, #CE93D8
Share image for Imperial Purple

Gradients in similar colors