PreviewingGo to this paletteOpen in generator
Code
/* Zinc Gray — colorset.net */
:root {
--color-1: #3F3F46;
--color-2: #52525B;
--color-3: #71717A;
--color-4: #A1A1AA;
--color-5: #D4D4D8;
--color-bg: #F7F7F8;
--color-surface: #EDEDEE;
--color-border: #D4D4D9;
--color-text: #3F3F46;
--color-muted: #696971;
--color-primary: #71717A;
--color-on-primary: #FFFFFF;
--color-accent: #86868A;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F11;
--color-surface: #19191C;
--color-border: #2D2D33;
--color-text: #D4D4D8;
--color-muted: #828285;
--color-primary: #71717A;
--color-on-primary: #FFFFFF;
--color-accent: #A1A1AA;
--color-on-accent: #0F0F11;
}
}
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 #D4D4D8 | adjusted for contrast · from #3F3F46 |
| 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 | adjusted for contrast · from #71717A | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.75:1 | AAA pass 4.5:1 | |
| Text on surface | 8.93:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 4.83:1 | AA pass 4.5:1 | |
| Label on accent | 5.79:1 | AA pass 4.5:1 | |
| Primary on background | 4.51:1 | AA pass 3:1 | |
| Accent on background | 3.39:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.96:1 | AAA pass 4.5:1 | |
| Text on surface | 11.87:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 4.83:1 | AA pass 4.5:1 | |
| Label on accent | 7.47:1 | AAA pass 4.5:1 | |
| Primary on background | 3.96:1 | AA Large pass 3:1 | |
| Accent on background | 7.47:1 | AAA 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 | #3F3F46 (Text 1) | #52525B (Text 2) | #71717A (Text 3) | #A1A1AA (Text 4) | #D4D4D8 (Text 5) |
|---|---|---|---|---|---|
| #3F3F46 | Same color | 1.35— | 2.16— | 4.07AA Large | 7.07AAA |
| #52525B | 1.35— | Same color | 1.60— | 3.02AA Large | 5.23AA |
| #71717A | 2.16— | 1.60— | Same color | 1.89— | 3.27AA Large |
| #A1A1AA | 4.07AA Large | 3.02AA Large | 1.89— | Same color | 1.73— |
| #D4D4D8 | 7.07AAA | 5.23AA | 3.27AA Large | 1.73— | Same color |
Shades
Shades and tints (50–950)
