PreviewingGo to this paletteOpen in generator
Code
/* Night Gray — colorset.net */
:root {
--color-1: #222233;
--color-2: #333344;
--color-3: #444455;
--color-4: #555566;
--color-5: #666677;
--color-bg: #F6F6FC;
--color-surface: #EDEDF3;
--color-border: #D4D4DD;
--color-text: #222233;
--color-muted: #696A7E;
--color-primary: #666677;
--color-on-primary: #FFFFFF;
--color-accent: #333344;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F15;
--color-surface: #19191F;
--color-border: #2C2D37;
--color-text: #A4A5B7;
--color-muted: #828294;
--color-primary: #666677;
--color-on-primary: #FFFFFF;
--color-accent: #9899A8;
--color-on-accent: #0F0F15;
}
}
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 #666677 | adjusted for contrast · from #222233 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #666677 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #666677 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.51:1 | AAA pass 4.5:1 | |
| Text on surface | 13.39:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.92:1 | AA pass 4.5:1 | |
| Label on primary | 5.63:1 | AA pass 4.5:1 | |
| Label on accent | 12.37:1 | AAA pass 4.5:1 | |
| Primary on background | 5.23:1 | AA pass 3:1 | |
| Accent on background | 11.49:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.86:1 | AAA pass 4.5:1 | |
| Text on surface | 7.20:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.07:1 | AA pass 4.5:1 | |
| Label on primary | 5.63:1 | AA pass 4.5:1 | |
| Label on accent | 6.78:1 | AA pass 4.5:1 | |
| Primary on background | 3.39:1 | AA Large pass 3:1 | |
| Accent on background | 6.78: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 | #222233 (Text 1) | #333344 (Text 2) | #444455 (Text 3) | #555566 (Text 4) | #666677 (Text 5) |
|---|---|---|---|---|---|
| #222233 | Same color | 1.26— | 1.64— | 2.14— | 2.78— |
| #333344 | 1.26— | Same color | 1.30— | 1.69— | 2.20— |
| #444455 | 1.64— | 1.30— | Same color | 1.31— | 1.69— |
| #555566 | 2.14— | 1.69— | 1.31— | Same color | 1.30— |
| #666677 | 2.78— | 2.20— | 1.69— | 1.30— | Same color |
Shades
Shades and tints (50–950)
