PreviewingGo to this paletteOpen in generator
Code
/* Iron Filings — colorset.net */
:root {
--color-1: #3D3D3D;
--color-2: #595959;
--color-3: #777777;
--color-4: #949494;
--color-5: #B2B2B2;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #3D3D3D;
--color-muted: #6B6B6B;
--color-primary: #777777;
--color-on-primary: #000000;
--color-accent: #595959;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F0F;
--color-surface: #191919;
--color-border: #302D2E;
--color-text: #B2B2B2;
--color-muted: #818181;
--color-primary: #777777;
--color-on-primary: #000000;
--color-accent: #949494;
--color-on-accent: #0F0F0F;
}
}
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 #B2B2B2 | adjusted for contrast · from #3D3D3D |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | from palette · color 2 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.14:1 | AAA pass 4.5:1 | |
| Text on surface | 9.28:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 4.69:1 | AA pass 4.5:1 | |
| Label on accent | 7.00:1 | AAA pass 4.5:1 | |
| Primary on background | 4.18:1 | AA Large pass 3:1 | |
| Accent on background | 6.54:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.04:1 | AAA pass 4.5:1 | |
| Text on surface | 8.29:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.92:1 | AA pass 4.5:1 | |
| Label on primary | 4.69:1 | AA pass 4.5:1 | |
| Label on accent | 6.32:1 | AA pass 4.5:1 | |
| Primary on background | 4.28:1 | AA Large pass 3:1 | |
| Accent on background | 6.32: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 | #3D3D3D (Text 1) | #595959 (Text 2) | #777777 (Text 3) | #949494 (Text 4) | #B2B2B2 (Text 5) |
|---|---|---|---|---|---|
| #3D3D3D | Same color | 1.55— | 2.43— | 3.58AA Large | 5.12AA |
| #595959 | 1.55— | Same color | 1.56— | 2.31— | 3.30AA Large |
| #777777 | 2.43— | 1.56— | Same color | 1.48— | 2.11— |
| #949494 | 3.58AA Large | 2.31— | 1.48— | Same color | 1.43— |
| #B2B2B2 | 5.12AA | 3.30AA Large | 2.11— | 1.43— | Same color |
Shades
Shades and tints (50–950)
