PreviewingGo to this paletteOpen in generator
Code
/* Haze Gray — colorset.net */
:root {
--color-1: #D3D7DB;
--color-2: #DFE3E7;
--color-3: #EBEFF3;
--color-4: #F7FBFF;
--color-5: #FFFFFF;
--color-bg: #FFFFFF;
--color-surface: #F6F6F6;
--color-border: #E0DCDD;
--color-text: #4F5256;
--color-muted: #6D7074;
--color-primary: #8B8F92;
--color-on-primary: #000000;
--color-accent: #5A5D60;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0E1011;
--color-surface: #181A1B;
--color-border: #2B2E32;
--color-text: #FFFFFF;
--color-muted: #8F8F8F;
--color-primary: #D3D7DB;
--color-on-primary: #0E1011;
--color-accent: #EBEFF3;
--color-on-accent: #0E1011;
}
}
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 | from palette · color 5 | adjusted for contrast · from #D3D7DB |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #D3D7DB | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #D3D7DB | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #D3D7DB | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.85:1 | AAA pass 4.5:1 | |
| Text on surface | 7.27:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 6.44:1 | AA pass 4.5:1 | |
| Label on accent | 6.63:1 | AA pass 4.5:1 | |
| Primary on background | 3.26:1 | AA Large pass 3:1 | |
| Accent on background | 6.63:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 19.08:1 | AAA pass 4.5:1 | |
| Text on surface | 17.46:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.90:1 | AA pass 4.5:1 | |
| Label on primary | 13.18:1 | AAA pass 4.5:1 | |
| Label on accent | 16.51:1 | AAA pass 4.5:1 | |
| Primary on background | 13.18:1 | AAA pass 3:1 | |
| Accent on background | 16.51: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 | #D3D7DB (Text 1) | #DFE3E7 (Text 2) | #EBEFF3 (Text 3) | #F7FBFF (Text 4) | #FFFFFF (Text 5) |
|---|---|---|---|---|---|
| #D3D7DB | Same color | 1.12— | 1.25— | 1.39— | 1.45— |
| #DFE3E7 | 1.12— | Same color | 1.12— | 1.24— | 1.29— |
| #EBEFF3 | 1.25— | 1.12— | Same color | 1.11— | 1.16— |
| #F7FBFF | 1.39— | 1.24— | 1.11— | Same color | 1.04— |
| #FFFFFF | 1.45— | 1.29— | 1.16— | 1.04— | Same color |
Shades
Shades and tints (50–950)
