PreviewingGo to this paletteOpen in generator
Code
/* Soft Gray — colorset.net */
:root {
--color-1: #7A7A7A;
--color-2: #969696;
--color-3: #B3B3B3;
--color-4: #CCCCCC;
--color-5: #E0E0E0;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #4D4D4D;
--color-muted: #6A6A6A;
--color-primary: #7A7A7A;
--color-on-primary: #000000;
--color-accent: #4A4A4A;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F0F;
--color-surface: #191919;
--color-border: #302D2E;
--color-text: #E0E0E0;
--color-muted: #828282;
--color-primary: #7A7A7A;
--color-on-primary: #000000;
--color-accent: #CCCCCC;
--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 #E0E0E0 | adjusted for contrast · from #7A7A7A |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #7A7A7A | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 1 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #7A7A7A | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.89:1 | AAA pass 4.5:1 | |
| Text on surface | 7.22:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 4.89:1 | AA pass 4.5:1 | |
| Label on accent | 8.86:1 | AAA pass 4.5:1 | |
| Primary on background | 4.01:1 | AA Large pass 3:1 | |
| Accent on background | 8.27:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.52:1 | AAA pass 4.5:1 | |
| Text on surface | 13.32:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 4.89:1 | AA pass 4.5:1 | |
| Label on accent | 11.94:1 | AAA pass 4.5:1 | |
| Primary on background | 4.47:1 | AA Large pass 3:1 | |
| Accent on background | 11.94: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 | #7A7A7A (Text 1) | #969696 (Text 2) | #B3B3B3 (Text 3) | #CCCCCC (Text 4) | #E0E0E0 (Text 5) |
|---|---|---|---|---|---|
| #7A7A7A | Same color | 1.45— | 2.05— | 2.67— | 3.25AA Large |
| #969696 | 1.45— | Same color | 1.41— | 1.84— | 2.24— |
| #B3B3B3 | 2.05— | 1.41— | Same color | 1.31— | 1.59— |
| #CCCCCC | 2.67— | 1.84— | 1.31— | Same color | 1.22— |
| #E0E0E0 | 3.25AA Large | 2.24— | 1.59— | 1.22— | Same color |
Shades
Shades and tints (50–950)
