PreviewingGo to this paletteOpen in generator
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
| Color | HEX | RGB | HSL | OKLCH |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 |
Roles & contrast
Original colors are kept; roles are adjusted only when needed for contrast.
| Role | Light mode | Dark mode |
|---|---|---|
| Background | adjusted for contrast · from #9EA9B4 | adjusted for contrast · from #626970 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #626970 | from palette · color 4 |
| Muted text | derived | derived |
| Primary | from palette · color 1 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #626970 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.61:1 | AAA pass 4.5:1 | |
| Text on surface | 7.01:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.95:1 | AA pass 4.5:1 | |
| Label on primary | 4.74:1 | AA pass 4.5:1 | |
| Label on accent | 9.14:1 | AAA pass 4.5:1 | |
| Primary on background | 4.12:1 | AA Large pass 3:1 | |
| Accent on background | 8.50:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.98:1 | AAA pass 4.5:1 | |
| Text on surface | 7.32:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.93:1 | AA pass 4.5:1 | |
| Label on primary | 4.74:1 | AA pass 4.5:1 | |
| Label on accent | 6.58:1 | AA pass 4.5:1 | |
| Primary on background | 4.30:1 | AA Large pass 3:1 | |
| Accent on background | 6.58:1 | AA 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.
| Background / Text | #71797E (Text 1) | #808990 (Text 2) | #8F99A2 (Text 3) | #9EA9B4 (Text 4) | #626970 (Text 5) |
|---|---|---|---|---|---|
| #71797E | Same color | 1.24— | 1.53— | 1.85— | 1.26— |
| #808990 | 1.24— | Same color | 1.23— | 1.49— | 1.56— |
| #8F99A2 | 1.53— | 1.23— | Same color | 1.21— | 1.92— |
| #9EA9B4 | 1.85— | 1.49— | 1.21— | Same color | 2.33— |
| #626970 | 1.26— | 1.56— | 1.92— | 2.33— | Same color |
Shades
Shades and tints (50–950)
