Cast Iron Gray

Export

Code

/* Cast Iron Gray — colorset.net */
:root {
  --color-1: #71797E;
  --color-2: #808990;
  --color-3: #8F99A2;
  --color-4: #9EA9B4;
  --color-5: #626970;

  --color-bg: #F4F7FB;
  --color-surface: #EAEEF1;
  --color-border: #CFD6DC;
  --color-text: #495057;
  --color-muted: #656C73;
  --color-primary: #71797E;
  --color-on-primary: #000000;
  --color-accent: #43494D;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0E1012;
    --color-surface: #171A1C;
    --color-border: #2A2E33;
    --color-text: #9EA9B4;
    --color-muted: #78838D;
    --color-primary: #71797E;
    --color-on-primary: #000000;
    --color-accent: #8F99A2;
    --color-on-accent: #0E1012;
  }
}

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 #9EA9B4adjusted for contrast · from #626970
Surfacederivedderived
Borderderivedderived
Textadjusted for contrast · from #626970from palette · color 4
Muted textderivedderived
Primaryfrom palette · color 1from palette · color 1
On primaryderivedderived
Accentadjusted for contrast · from #626970from palette · color 3
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background7.61:1AAA pass 4.5:1
Text on surface7.01:1AAA pass 4.5:1
Muted text on background4.95:1AA pass 4.5:1
Label on primary4.74:1AA pass 4.5:1
Label on accent9.14:1AAA pass 4.5:1
Primary on background4.12:1AA Large pass 3:1
Accent on background8.50:1AAA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background7.98:1AAA pass 4.5:1
Text on surface7.32:1AAA pass 4.5:1
Muted text on background4.93:1AA pass 4.5:1
Label on primary4.74:1AA pass 4.5:1
Label on accent6.58:1AA pass 4.5:1
Primary on background4.30:1AA Large pass 3:1
Accent on background6.58: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#71797E (Text 1)#808990 (Text 2)#8F99A2 (Text 3)#9EA9B4 (Text 4)#626970 (Text 5)
#71797ESame color1.24—1.53—1.85—1.26—
#8089901.24—Same color1.23—1.49—1.56—
#8F99A21.53—1.23—Same color1.21—1.92—
#9EA9B41.85—1.49—1.21—Same color2.33—
#6269701.26—1.56—1.92—2.33—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#71797E#808990#8F99A2#9EA9B4#626970

Variations

About Cast Iron Gray

Cast Iron Gray is a balanced neutral palette of 5 colors that runs from gray #9EA9B4 to slate #626970. There is no real hue here; neutrals between #626970 and #9EA9B4 do all the work with value contrast. All five colors stay in a narrow mid-tone band (52% to 73% lightness, #626970 to #9EA9B4), so text and background roles are adjusted for contrast. Saturation is very low (mean OKLCH chroma 0.016, peaking at 0.020 in #9EA9B4); the palette is close to grayscale. As a UI theme it uses #71797E for primary actions and #43494D as the accent; dark mode sits on #0E1012 with #9EA9B4 text (8.0:1). Its monochrome character, led by #71797E, suits architecture studios, documentation sites and minimal portfolios.

Cast Iron Gray color palette: #71797E, #808990, #8F99A2, #9EA9B4, #626970
Share image for Cast Iron Gray

Gradients in similar colors