PreviewingGo to this paletteOpen in generator
Code
/* Space Gray — colorset.net */
:root {
--color-1: #17202A;
--color-2: #283747;
--color-3: #34495E;
--color-4: #5D6D7E;
--color-5: #85929E;
--color-bg: #F3F7FB;
--color-surface: #EAEEF2;
--color-border: #CFD6DC;
--color-text: #17202A;
--color-muted: #626D79;
--color-primary: #5D6D7E;
--color-on-primary: #FFFFFF;
--color-accent: #283747;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #17202A;
--color-surface: #222B35;
--color-border: #35414E;
--color-text: #AAB7C4;
--color-muted: #8794A0;
--color-primary: #667687;
--color-on-primary: #FFFFFF;
--color-accent: #85929E;
--color-on-accent: #17202A;
}
}
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 #85929E | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #85929E |
| Muted text | derived | derived |
| Primary | from palette · color 4 | adjusted for contrast · from #5D6D7E |
| On primary | derived | derived |
| Accent | from palette · color 2 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.28:1 | AAA pass 4.5:1 | |
| Text on surface | 14.11:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.90:1 | AA pass 4.5:1 | |
| Label on primary | 5.31:1 | AA pass 4.5:1 | |
| Label on accent | 12.15:1 | AAA pass 4.5:1 | |
| Primary on background | 4.93:1 | AA pass 3:1 | |
| Accent on background | 11.29:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.05:1 | AAA pass 4.5:1 | |
| Text on surface | 7.02:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.31:1 | AA pass 4.5:1 | |
| Label on primary | 4.66:1 | AA pass 4.5:1 | |
| Label on accent | 5.17:1 | AA pass 4.5:1 | |
| Primary on background | 3.53:1 | AA Large pass 3:1 | |
| Accent on background | 5.17: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 | #17202A (Text 1) | #283747 (Text 2) | #34495E (Text 3) | #5D6D7E (Text 4) | #85929E (Text 5) |
|---|---|---|---|---|---|
| #17202A | Same color | 1.35— | 1.77— | 3.10AA Large | 5.17AA |
| #283747 | 1.35— | Same color | 1.31— | 2.29— | 3.82AA Large |
| #34495E | 1.77— | 1.31— | Same color | 1.75— | 2.92— |
| #5D6D7E | 3.10AA Large | 2.29— | 1.75— | Same color | 1.67— |
| #85929E | 5.17AA | 3.82AA Large | 2.92— | 1.67— | Same color |
Shades
Shades and tints (50–950)
