Electric Rainbow

Export

Code

/* Electric Rainbow — colorset.net */
:root {
  --color-1: #FF073A;
  --color-2: #FF8C00;
  --color-3: #FFFF00;
  --color-4: #00FF41;
  --color-5: #0033FF;

  --color-bg: #F7F8E9;
  --color-surface: #EEEFE0;
  --color-border: #D5D7C4;
  --color-text: #354D7F;
  --color-muted: #5F6B82;
  --color-primary: #0033FF;
  --color-on-primary: #FFFFFF;
  --color-accent: #797900;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #080F1F;
    --color-surface: #11192A;
    --color-border: #242E42;
    --color-text: #F6F8D2;
    --color-muted: #8B8C71;
    --color-primary: #134FFF;
    --color-on-primary: #FFFFFF;
    --color-accent: #FFFF00;
    --color-on-accent: #080F1F;
  }
}

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 #FFFF00adjusted for contrast · from #0033FF
Surfacederivedderived
Borderderivedderived
Textadjusted for contrast · from #0033FFadjusted for contrast · from #FFFF00
Muted textderivedderived
Primaryfrom palette · color 5adjusted for contrast · from #0033FF
On primaryderivedderived
Accentadjusted for contrast · from #FF8C00from palette · color 3
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background7.76:1AAA pass 4.5:1
Text on surface7.17:1AAA pass 4.5:1
Muted text on background5.00:1AA pass 4.5:1
Label on primary7.20:1AAA pass 4.5:1
Label on accent4.62:1AA pass 4.5:1
Primary on background6.70:1AA pass 3:1
Accent on background4.30:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background17.55:1AAA pass 4.5:1
Text on surface16.11:1AAA pass 4.5:1
Muted text on background5.54:1AA pass 4.5:1
Label on primary5.85:1AA pass 4.5:1
Label on accent17.80:1AAA pass 4.5:1
Primary on background3.27:1AA Large pass 3:1
Accent on background17.80: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#FF073A (Text 1)#FF8C00 (Text 2)#FFFF00 (Text 3)#00FF41 (Text 4)#0033FF (Text 5)
#FF073ASame color1.68—3.66AA Large2.88—1.83—
#FF8C001.68—Same color2.17—1.71—3.09AA Large
#FFFF003.66AA Large2.17—Same color1.27—6.70AA
#00FF412.88—1.71—1.27—Same color5.27AA
#0033FF1.83—3.09AA Large6.70AA5.27AASame color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#FF073A#FF8C00#FFFF00#00FF41#0033FF

Variations

About Electric Rainbow

Electric Rainbow is a balanced multi-color palette of 5 colors that runs from pale yellow #FFFF00 to vivid blue #0033FF. A 154° hue spread puts pale yellow against vivid blue #0033FF, close to a complementary contrast. Lightness spans 48% (#0033FF) to 97% (#FFFF00), a moderate range; text roles may need slight darkening for full contrast. Saturation is high (mean OKLCH chroma 0.242, peaking at 0.291 in #0033FF); the colors feel saturated and energetic. In light mode #F7F8E9 becomes the background with #354D7F text at 7.8:1, and #0033FF takes the primary role. Its vivid and neon character, led by #0033FF, suits infographics, educational content and brand systems with many sub-brands.

Electric Rainbow color palette: #FF073A, #FF8C00, #FFFF00, #00FF41, #0033FF
Share image for Electric Rainbow

Gradients in similar colors