Export

Code

/* Ruby Margin — colorset.net */
:root {
  --color-1: #FBF6F7;
  --color-2: #B4234A;
  --color-3: #2E8B7A;
  --color-4: #C68D90;
  --color-5: #310C13;

  --color-bg: #FBF6F7;
  --color-surface: #F2EDEE;
  --color-border: #DCD3D5;
  --color-text: #310C13;
  --color-muted: #816265;
  --color-primary: #B4234A;
  --color-on-primary: #FFFFFF;
  --color-accent: #228271;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #310C13;
    --color-surface: #3D171D;
    --color-border: #4D3235;
    --color-text: #FBF6F7;
    --color-muted: #959191;
    --color-primary: #C63658;
    --color-on-primary: #FFFFFF;
    --color-accent: #228271;
    --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
Backgroundfrom palette · color 1from palette · color 5
Surfacederivedderived
Borderderivedderived
Textfrom palette · color 5from palette · color 1
Muted textderivedderived
Primaryfrom palette · color 2adjusted for contrast · from #B4234A
On primaryderivedderived
Accentadjusted for contrast · from #2E8B7Aadjusted for contrast · from #2E8B7A
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background16.46:1AAA pass 4.5:1
Text on surface15.20:1AAA pass 4.5:1
Muted text on background5.07:1AA pass 4.5:1
Label on primary6.40:1AA pass 4.5:1
Label on accent4.67:1AA pass 4.5:1
Primary on background5.98:1AA pass 3:1
Accent on background4.36:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background16.46:1AAA pass 4.5:1
Text on surface14.66:1AAA pass 4.5:1
Muted text on background5.65:1AA pass 4.5:1
Label on primary5.16:1AA pass 4.5:1
Label on accent4.67:1AA pass 4.5:1
Primary on background3.41:1AA Large pass 3:1
Accent on background3.77: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#FBF6F7 (Text 1)#B4234A (Text 2)#2E8B7A (Text 3)#C68D90 (Text 4)#310C13 (Text 5)
#FBF6F7Same color5.98AA3.86AA Large2.58—16.46AAA
#B4234A5.98AASame color1.55—2.32—2.75—
#2E8B7A3.86AA Large1.55—Same color1.50—4.27AA Large
#C68D902.58—2.32—1.50—Same color6.38AA
#310C1316.46AAA2.75—4.27AA Large6.38AASame color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#FBF6F7#B4234A#2E8B7A#C68D90#310C13

Variations

About Ruby Margin

A deep ruby primary paired with jade, sophisticated enough for private banking. Ruby Margin is a warm red palette of 5 colors that runs from white #FBF6F7 to deep red #310C13. A 167° hue spread puts vivid red against teal #2E8B7A, close to a complementary contrast. Lightness runs from 22% to 98% (OKLCH), with #2E8B7A in between, a wide range that leaves room for readable text and clear backgrounds. Saturation is low (mean OKLCH chroma 0.081, peaking at 0.180 in #B4234A); the colors feel soft and muted. In light mode #FBF6F7 becomes the background with #310C13 text at 16.5:1, and #B4234A takes the primary role. Its high-contrast character, led by #B4234A, suits signage, presentation slides and accessible interfaces.

Ruby Margin color palette: #FBF6F7, #B4234A, #2E8B7A, #C68D90, #310C13
Share image for Ruby Margin

Gradients in similar colors