Export

Code

/* Ruby and Rust — colorset.net */
:root {
  --color-1: #DC143C;
  --color-2: #B22222;
  --color-3: #8B0000;
  --color-4: #A0522D;
  --color-5: #CD853F;

  --color-bg: #FFF5EC;
  --color-surface: #F8EBE0;
  --color-border: #E1D2C5;
  --color-text: #70322A;
  --color-muted: #82645F;
  --color-primary: #DC143C;
  --color-on-primary: #FFFFFF;
  --color-accent: #A96415;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1C0907;
    --color-surface: #281310;
    --color-border: #402622;
    --color-text: #BB9E84;
    --color-muted: #957E6A;
    --color-primary: #DC143C;
    --color-on-primary: #FFFFFF;
    --color-accent: #CD853F;
    --color-on-accent: #1C0907;
  }
}

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 #CD853Fadjusted for contrast · from #8B0000
Surfacederivedderived
Borderderivedderived
Textadjusted for contrast · from #8B0000adjusted for contrast · from #CD853F
Muted textderivedderived
Primaryfrom palette · color 1from palette · color 1
On primaryderivedderived
Accentadjusted for contrast · from #A0522Dfrom palette · color 5
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background8.96:1AAA pass 4.5:1
Text on surface8.24:1AAA pass 4.5:1
Muted text on background4.96:1AA pass 4.5:1
Label on primary4.99:1AA pass 4.5:1
Label on accent4.65:1AA pass 4.5:1
Primary on background4.64:1AA pass 3:1
Accent on background4.32:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background7.64:1AAA pass 4.5:1
Text on surface7.00:1AAA pass 4.5:1
Muted text on background5.01:1AA pass 4.5:1
Label on primary4.99:1AA pass 4.5:1
Label on accent6.43:1AA pass 4.5:1
Primary on background3.86:1AA Large pass 3:1
Accent on background6.43:1AA 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#DC143C (Text 1)#B22222 (Text 2)#8B0000 (Text 3)#A0522D (Text 4)#CD853F (Text 5)
#DC143CSame color1.34—2.01—1.13—1.67—
#B222221.34—Same color1.50—1.19—2.23—
#8B00002.01—1.50—Same color1.78—3.35AA Large
#A0522D1.13—1.19—1.78—Same color1.88—
#CD853F1.67—2.23—3.35AA Large1.88—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#DC143C#B22222#8B0000#A0522D#CD853F

Variations

About Ruby and Rust

Five colors make up Ruby and Rust, a warm red set: #DC143C, #B22222, #8B0000, #A0522D, #CD853F. Its hues are neighbors on the color wheel (42° apart at most), so #DC143C and #CD853F form a calm analogous harmony. From #8B0000 to #CD853F the colors share a similar mid-tone value (lightness 40%–68%), which suits fills and illustration more than body text. Average chroma is 0.161, high for a palette, so the colors feel saturated and energetic; the most saturated color is #DC143C. In light mode #FFF5EC becomes the background with #70322A text at 9.0:1, and #DC143C takes the primary role. Try it for sports teams, calls to action and sale banners, letting vivid red #DC143C carry the key actions.

Ruby and Rust color palette: #DC143C, #B22222, #8B0000, #A0522D, #CD853F
Share image for Ruby and Rust

Gradients in similar colors