PreviewingGo to this paletteOpen in generator
Code
/* Gray Night — colorset.net */
:root {
--color-1: #111827;
--color-2: #1F2937;
--color-3: #374151;
--color-4: #4B5563;
--color-5: #6B7280;
--color-bg: #F4F7FC;
--color-surface: #EBEDF2;
--color-border: #D1D5DD;
--color-text: #111827;
--color-muted: #636C7F;
--color-primary: #6B7280;
--color-on-primary: #FFFFFF;
--color-accent: #1F2937;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #111827;
--color-surface: #1B2332;
--color-border: #2E384B;
--color-text: #A7AEBE;
--color-muted: #838A99;
--color-primary: #6B7280;
--color-on-primary: #FFFFFF;
--color-accent: #9FA5B2;
--color-on-accent: #111827;
}
}
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 #6B7280 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #6B7280 |
| 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 #6B7280 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.52:1 | AAA pass 4.5:1 | |
| Text on surface | 15.14:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.91:1 | AA pass 4.5:1 | |
| Label on primary | 4.83:1 | AA pass 4.5:1 | |
| Label on accent | 14.68:1 | AAA pass 4.5:1 | |
| Primary on background | 4.50:1 | AA pass 3:1 | |
| Accent on background | 13.67:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.98:1 | AAA pass 4.5:1 | |
| Text on surface | 7.08:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.12:1 | AA pass 4.5:1 | |
| Label on primary | 4.83:1 | AA pass 4.5:1 | |
| Label on accent | 7.18:1 | AAA pass 4.5:1 | |
| Primary on background | 3.67:1 | AA Large pass 3:1 | |
| Accent on background | 7.18: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 | #111827 (Text 1) | #1F2937 (Text 2) | #374151 (Text 3) | #4B5563 (Text 4) | #6B7280 (Text 5) |
|---|---|---|---|---|---|
| #111827 | Same color | 1.21— | 1.72— | 2.35— | 3.67AA Large |
| #1F2937 | 1.21— | Same color | 1.42— | 1.94— | 3.04AA Large |
| #374151 | 1.72— | 1.42— | Same color | 1.36— | 2.13— |
| #4B5563 | 2.35— | 1.94— | 1.36— | Same color | 1.56— |
| #6B7280 | 3.67AA Large | 3.04AA Large | 2.13— | 1.56— | Same color |
Shades
Shades and tints (50–950)
