Export

Code

/* Ultraviolet Night — colorset.net */
:root {
  --color-1: #1A0033;
  --color-2: #330066;
  --color-3: #4D0099;
  --color-4: #6600CC;
  --color-5: #7F00FF;

  --color-bg: #F7F5FF;
  --color-surface: #EEEBFA;
  --color-border: #D5D2E4;
  --color-text: #190131;
  --color-muted: #6B627B;
  --color-primary: #7F00FF;
  --color-on-primary: #FFFFFF;
  --color-accent: #330066;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #120B1C;
    --color-surface: #1C1527;
    --color-border: #31293F;
    --color-text: #A59FC1;
    --color-muted: #837F99;
    --color-primary: #8328FF;
    --color-on-primary: #FFFFFF;
    --color-accent: #725B96;
    --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 #7F00FFadjusted for contrast · from #1A0033
Surfacederivedderived
Borderderivedderived
Textadjusted for contrast · from #1A0033adjusted for contrast · from #7F00FF
Muted textderivedderived
Primaryfrom palette · color 5adjusted for contrast · from #7F00FF
On primaryderivedderived
Accentfrom palette · color 2adjusted for contrast · from #6600CC
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background17.85:1AAA pass 4.5:1
Text on surface16.42:1AAA pass 4.5:1
Muted text on background5.32:1AA pass 4.5:1
Label on primary6.28:1AA pass 4.5:1
Label on accent15.76:1AAA pass 4.5:1
Primary on background5.82:1AA pass 3:1
Accent on background14.60:1AAA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background7.64:1AAA pass 4.5:1
Text on surface7.02:1AAA pass 4.5:1
Muted text on background5.01:1AA pass 4.5:1
Label on primary5.66:1AA pass 4.5:1
Label on accent5.75:1AA pass 4.5:1
Primary on background3.40: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#1A0033 (Text 1)#330066 (Text 2)#4D0099 (Text 3)#6600CC (Text 4)#7F00FF (Text 5)
#1A0033Same color1.22—1.63—2.23—3.07AA Large
#3300661.22—Same color1.33—1.83—2.51—
#4D00991.63—1.33—Same color1.37—1.88—
#6600CC2.23—1.83—1.37—Same color1.37—
#7F00FF3.07AA Large2.51—1.88—1.37—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#1A0033#330066#4D0099#6600CC#7F00FF

Variations

About Ultraviolet Night

Ultraviolet Night is a cool purple palette of 5 colors that runs from vivid purple #7F00FF to deep purple #1A0033. With a hue spread of just 8°, it is effectively monochromatic: #1A0033, #330066 and #4D0099 differ mostly in lightness. Lightness spans 18% (#1A0033) to 53% (#7F00FF), a moderate range; text roles may need slight darkening for full contrast. Saturation is high (mean OKLCH chroma 0.197, peaking at 0.293 in #7F00FF); the colors feel saturated and energetic. Text contrast reaches 17.9:1 in light mode and 7.6:1 in dark mode, with #7F00FF as primary and #330066 as accent. With #7F00FF leading, good fits include luxury products, film and media and dark-mode dashboards.

Ultraviolet Night color palette: #1A0033, #330066, #4D0099, #6600CC, #7F00FF
Share image for Ultraviolet Night

Gradients in similar colors