PreviewingGo to this paletteOpen in generator
Code
/* Space Black — colorset.net */
:root {
--color-1: #0C0C0C;
--color-2: #1E1E1E;
--color-3: #303030;
--color-4: #424242;
--color-5: #545454;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #0C0C0C;
--color-muted: #636363;
--color-primary: #545454;
--color-on-primary: #FFFFFF;
--color-accent: #1E1E1E;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0C0C0C;
--color-surface: #161616;
--color-border: #2C292A;
--color-text: #A3A3A3;
--color-muted: #808080;
--color-primary: #656565;
--color-on-primary: #FFFFFF;
--color-accent: #979797;
--color-on-accent: #0C0C0C;
}
}
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 #545454 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #545454 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #545454 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #545454 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.26:1 | AAA pass 4.5:1 | |
| Text on surface | 16.71:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.61:1 | AA pass 4.5:1 | |
| Label on primary | 7.57:1 | AAA pass 4.5:1 | |
| Label on accent | 16.67:1 | AAA pass 4.5:1 | |
| Primary on background | 7.07:1 | AAA pass 3:1 | |
| Accent on background | 15.56:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.75:1 | AAA pass 4.5:1 | |
| Text on surface | 7.17:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.95:1 | AA pass 4.5:1 | |
| Label on primary | 5.83:1 | AA pass 4.5:1 | |
| Label on accent | 6.70:1 | AA pass 4.5:1 | |
| Primary on background | 3.36:1 | AA Large pass 3:1 | |
| Accent on background | 6.70: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 | #0C0C0C (Text 1) | #1E1E1E (Text 2) | #303030 (Text 3) | #424242 (Text 4) | #545454 (Text 5) |
|---|---|---|---|---|---|
| #0C0C0C | Same color | 1.17— | 1.48— | 1.95— | 2.58— |
| #1E1E1E | 1.17— | Same color | 1.26— | 1.66— | 2.20— |
| #303030 | 1.48— | 1.26— | Same color | 1.31— | 1.74— |
| #424242 | 1.95— | 1.66— | 1.31— | Same color | 1.33— |
| #545454 | 2.58— | 2.20— | 1.74— | 1.33— | Same color |
Shades
Shades and tints (50–950)
