Export

Code

/* Violet Night — colorset.net */
:root {
  --color-1: #330066;
  --color-2: #5500AA;
  --color-3: #7700EE;
  --color-4: #9933FF;
  --color-5: #BB66FF;

  --color-bg: #F9F4FF;
  --color-surface: #F1EAF8;
  --color-border: #D9D1E2;
  --color-text: #2D1B4E;
  --color-muted: #6E6780;
  --color-primary: #9933FF;
  --color-on-primary: #FFFFFF;
  --color-accent: #330066;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #110C1D;
    --color-surface: #1B1628;
    --color-border: #302A40;
    --color-text: #AE9EBF;
    --color-muted: #8A7E97;
    --color-primary: #9933FF;
    --color-on-primary: #FFFFFF;
    --color-accent: #7553B5;
    --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 #BB66FFadjusted for contrast · from #330066
Surfacederivedderived
Borderderivedderived
Textadjusted for contrast · from #330066adjusted for contrast · from #BB66FF
Muted textderivedderived
Primaryfrom palette · color 4from palette · color 4
On primaryderivedderived
Accentfrom palette · color 1adjusted for contrast · from #7700EE
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background14.08:1AAA pass 4.5:1
Text on surface12.96:1AAA pass 4.5:1
Muted text on background4.96:1AA pass 4.5:1
Label on primary4.92:1AA pass 4.5:1
Label on accent15.76:1AAA pass 4.5:1
Primary on background4.54:1AA pass 3:1
Accent on background14.57:1AAA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background7.72:1AAA pass 4.5:1
Text on surface7.08:1AAA pass 4.5:1
Muted text on background5.04:1AA pass 4.5:1
Label on primary4.92:1AA pass 4.5:1
Label on accent5.74:1AA pass 4.5:1
Primary on background3.90:1AA Large pass 3:1
Accent on background3.35: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#330066 (Text 1)#5500AA (Text 2)#7700EE (Text 3)#9933FF (Text 4)#BB66FF (Text 5)
#330066Same color1.48—2.27—3.21AA Large4.85AA
#5500AA1.48—Same color1.54—2.17—3.28AA Large
#7700EE2.27—1.54—Same color1.42—2.14—
#9933FF3.21AA Large2.17—1.42—Same color1.51—
#BB66FF4.85AA3.28AA Large2.14—1.51—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#330066#5500AA#7700EE#9933FF#BB66FF

Variations

About Violet Night

Nearly all of the color weight in Violet Night sits in purple, which makes it a cool palette anchored by vivid purple #7700EE. With a hue spread of just 13°, it is effectively monochromatic: #330066, #5500AA and #7700EE differ mostly in lightness. Lightness spans 28% (#330066) to 67% (#BB66FF), a moderate range; text roles may need slight darkening for full contrast. Saturation is high (mean OKLCH chroma 0.228, peaking at 0.278 in #7700EE); the colors feel saturated and energetic. As a UI theme it uses #9933FF for primary actions and #330066 as the accent; dark mode sits on #110C1D with #AE9EBF text (7.7:1). With #9933FF leading, good fits include minimal branding, focused single-product sites and typography-led layouts.

Violet Night color palette: #330066, #5500AA, #7700EE, #9933FF, #BB66FF
Share image for Violet Night

Gradients in similar colors