PreviewingGo to this paletteOpen in generator
Code
/* Light Grey — colorset.net */
:root {
--color-1: #D3D3D3;
--color-2: #D8D8D8;
--color-3: #DDDDDD;
--color-4: #E2E2E2;
--color-5: #E7E7E7;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #4C4C4C;
--color-muted: #696969;
--color-primary: #888888;
--color-on-primary: #000000;
--color-accent: #575757;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F0F;
--color-surface: #191919;
--color-border: #302D2E;
--color-text: #E7E7E7;
--color-muted: #838383;
--color-primary: #D3D3D3;
--color-on-primary: #0F0F0F;
--color-accent: #9D9D9D;
--color-on-accent: #0F0F0F;
}
}
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 #E7E7E7 | adjusted for contrast · from #D3D3D3 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #D3D3D3 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #D3D3D3 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #D3D3D3 | adjusted for contrast · from #D3D3D3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.02:1 | AAA pass 4.5:1 | |
| Text on surface | 7.34:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.12:1 | AA pass 4.5:1 | |
| Label on primary | 5.92:1 | AA pass 4.5:1 | |
| Label on accent | 7.23:1 | AAA pass 4.5:1 | |
| Primary on background | 3.31:1 | AA Large pass 3:1 | |
| Accent on background | 6.75:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.50:1 | AAA pass 4.5:1 | |
| Text on surface | 14.22:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 12.80:1 | AAA pass 4.5:1 | |
| Label on accent | 7.07:1 | AAA pass 4.5:1 | |
| Primary on background | 12.80:1 | AAA pass 3:1 | |
| Accent on background | 7.07: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 | #D3D3D3 (Text 1) | #D8D8D8 (Text 2) | #DDDDDD (Text 3) | #E2E2E2 (Text 4) | #E7E7E7 (Text 5) |
|---|---|---|---|---|---|
| #D3D3D3 | Same color | 1.05— | 1.10— | 1.16— | 1.21— |
| #D8D8D8 | 1.05— | Same color | 1.05— | 1.10— | 1.15— |
| #DDDDDD | 1.10— | 1.05— | Same color | 1.05— | 1.10— |
| #E2E2E2 | 1.16— | 1.10— | 1.05— | Same color | 1.05— |
| #E7E7E7 | 1.21— | 1.15— | 1.10— | 1.05— | Same color |
Shades
Shades and tints (50–950)
