Export

Code

/* Nebula Drift — colorset.net */
:root {
  --color-1: #0D0B1F;
  --color-2: #C74BD9;
  --color-3: #4FC3F7;
  --color-4: #251F45;
  --color-5: #ECE8FA;

  --color-bg: #ECE8FA;
  --color-surface: #F3F0FB;
  --color-border: #D4CFE4;
  --color-text: #0D0B1F;
  --color-muted: #5E5E77;
  --color-primary: #BA3DCC;
  --color-on-primary: #FFFFFF;
  --color-accent: #007DA7;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0D0B1F;
    --color-surface: #17152A;
    --color-border: #2B2A40;
    --color-text: #ECE8FA;
    --color-muted: #858292;
    --color-primary: #BA3DCC;
    --color-on-primary: #FFFFFF;
    --color-accent: #4FC3F7;
    --color-on-accent: #0D0B1F;
  }
}

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 #C74BD9adjusted for contrast · from #C74BD9
On primaryderivedderived
Accentadjusted for contrast · from #4FC3F7from palette · color 3
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background16.12:1AAA pass 4.5:1
Text on surface17.21:1AAA pass 4.5:1
Muted text on background5.23:1AA pass 4.5:1
Label on primary4.54:1AA pass 4.5:1
Label on accent4.68:1AA pass 4.5:1
Primary on background3.78:1AA Large pass 3:1
Accent on background3.89:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background16.12:1AAA pass 4.5:1
Text on surface14.86:1AAA pass 4.5:1
Muted text on background5.17:1AA pass 4.5:1
Label on primary4.54:1AA pass 4.5:1
Label on accent9.66:1AAA pass 4.5:1
Primary on background4.27:1AA Large pass 3:1
Accent on background9.66: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#0D0B1F (Text 1)#C74BD9 (Text 2)#4FC3F7 (Text 3)#251F45 (Text 4)#ECE8FA (Text 5)
#0D0B1FSame color5.01AA9.66AAA1.25—16.12AAA
#C74BD95.01AASame color1.93—4.00AA Large3.22AA Large
#4FC3F79.66AAA1.93—Same color7.70AAA1.67—
#251F451.25—4.00AA Large7.70AAASame color12.85AAA
#ECE8FA16.12AAA3.22AA Large1.67—12.85AAASame color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#0D0B1F#C74BD9#4FC3F7#251F45#ECE8FA

Variations

About Nebula Drift

Nebula magenta and ion blue across a deep violet void. No single hue dominates Nebula Drift: pink carries about 36% of the color weight, shared with purple and blue, and vivid pink #C74BD9 sits in the middle of the range. The hues range across 91° of the wheel, pairing vivid pink #C74BD9 with light blue for lively contrast. Lightness runs from 16% to 94% (OKLCH), with #C74BD9 in between, a wide range that leaves room for readable text and clear backgrounds. Saturation is medium (mean OKLCH chroma 0.098, peaking at 0.227 in #C74BD9); the colors are clear without being loud. As a UI theme it uses #BA3DCC for primary actions and #007DA7 as the accent; dark mode sits on #0D0B1F with #ECE8FA text (16.1:1). Its colorful and high-contrast character, led by #C74BD9, suits marketing pages, data visualization and brand systems with many sub-brands.

Nebula Drift color palette: #0D0B1F, #C74BD9, #4FC3F7, #251F45, #ECE8FA
Share image for Nebula Drift

Gradients in similar colors