Modern Colors

Export

Code

/* Modern Colors — colorset.net */
:root {
  --color-1: #3498DB;
  --color-2: #2ECC71;
  --color-3: #E74C3C;
  --color-4: #F39C12;
  --color-5: #9B59B6;

  --color-bg: #FFF5EA;
  --color-surface: #F7EBE0;
  --color-border: #E0D2C4;
  --color-text: #644173;
  --color-muted: #76667D;
  --color-primary: #D53A2C;
  --color-on-primary: #FFFFFF;
  --color-accent: #008744;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #150A1A;
    --color-surface: #201424;
    --color-border: #36283C;
    --color-text: #C7AD90;
    --color-muted: #94806B;
    --color-primary: #D53A2C;
    --color-on-primary: #FFFFFF;
    --color-accent: #2ECC71;
    --color-on-accent: #150A1A;
  }
}

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 #F39C12adjusted for contrast · from #9B59B6
Surfacederivedderived
Borderderivedderived
Textadjusted for contrast · from #9B59B6adjusted for contrast · from #F39C12
Muted textderivedderived
Primaryadjusted for contrast · from #E74C3Cadjusted for contrast · from #E74C3C
On primaryderivedderived
Accentadjusted for contrast · from #2ECC71from palette · color 2
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background7.66:1AAA pass 4.5:1
Text on surface7.04:1AAA pass 4.5:1
Muted text on background4.92:1AA pass 4.5:1
Label on primary4.70:1AA pass 4.5:1
Label on accent4.62:1AA pass 4.5:1
Primary on background4.36:1AA Large pass 3:1
Accent on background4.29:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background9.00:1AAA pass 4.5:1
Text on surface8.26:1AAA pass 4.5:1
Muted text on background5.10:1AA pass 4.5:1
Label on primary4.70:1AA pass 4.5:1
Label on accent9.16:1AAA pass 4.5:1
Primary on background4.10:1AA Large pass 3:1
Accent on background9.16: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#3498DB (Text 1)#2ECC71 (Text 2)#E74C3C (Text 3)#F39C12 (Text 4)#9B59B6 (Text 5)
#3498DBSame color1.50—1.21—1.44—1.48—
#2ECC711.50—Same color1.82—1.04—2.22—
#E74C3C1.21—1.82—Same color1.74—1.22—
#F39C121.44—1.04—1.74—Same color2.13—
#9B59B61.48—2.22—1.22—2.13—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#3498DB#2ECC71#E74C3C#F39C12#9B59B6

Variations

About Modern Colors

Five colors make up Modern Colors, a balanced multi-color set: #3498DB, #2ECC71, #E74C3C, #F39C12, #9B59B6. Blue #3498DB and light orange #F39C12 sit on nearly opposite sides of the wheel (173° apart), a complementary pairing that makes accents pop. From #9B59B6 to #F39C12 the colors share a similar mid-tone value (lightness 58%–76%), which suits fills and illustration more than body text. Average chroma is 0.165, high for a palette, so the colors feel saturated and energetic; the most saturated color is #E74C3C. In light mode #FFF5EA becomes the background with #644173 text at 7.7:1, and #D53A2C takes the primary role. Its vivid and colorful character, led by #E74C3C, suits marketing pages, infographics and educational content.

Modern Colors color palette: #3498DB, #2ECC71, #E74C3C, #F39C12, #9B59B6
Share image for Modern Colors

Gradients in similar colors