PreviewingGo to this paletteOpen in generator
Code
/* Gray Soft — colorset.net */
:root {
--color-1: #F9FAFB;
--color-2: #F3F4F6;
--color-3: #E5E7EB;
--color-4: #D1D5DB;
--color-5: #9CA3AF;
--color-bg: #F9FAFB;
--color-surface: #F0F1F2;
--color-border: #D5D8DC;
--color-text: #4B515C;
--color-muted: #676E79;
--color-primary: #848B96;
--color-on-primary: #000000;
--color-accent: #545A62;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0E0F13;
--color-surface: #171A1D;
--color-border: #2A2E34;
--color-text: #F9FAFB;
--color-muted: #8C8D8E;
--color-primary: #9CA3AF;
--color-on-primary: #0E0F13;
--color-accent: #E5E7EB;
--color-on-accent: #0E0F13;
}
}
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 1 | adjusted for contrast · from #9CA3AF |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #9CA3AF | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #9CA3AF | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #9CA3AF | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.64:1 | AAA pass 4.5:1 | |
| Text on surface | 7.06:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.92:1 | AA pass 4.5:1 | |
| Label on primary | 6.11:1 | AA pass 4.5:1 | |
| Label on accent | 6.96:1 | AA pass 4.5:1 | |
| Primary on background | 3.29:1 | AA Large pass 3:1 | |
| Accent on background | 6.66:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.33:1 | AAA pass 4.5:1 | |
| Text on surface | 16.72:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.76:1 | AA pass 4.5:1 | |
| Label on primary | 7.54:1 | AAA pass 4.5:1 | |
| Label on accent | 15.47:1 | AAA pass 4.5:1 | |
| Primary on background | 7.54:1 | AAA pass 3:1 | |
| Accent on background | 15.47: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 | #F9FAFB (Text 1) | #F3F4F6 (Text 2) | #E5E7EB (Text 3) | #D1D5DB (Text 4) | #9CA3AF (Text 5) |
|---|---|---|---|---|---|
| #F9FAFB | Same color | 1.05— | 1.18— | 1.41— | 2.43— |
| #F3F4F6 | 1.05— | Same color | 1.13— | 1.34— | 2.31— |
| #E5E7EB | 1.18— | 1.13— | Same color | 1.19— | 2.05— |
| #D1D5DB | 1.41— | 1.34— | 1.19— | Same color | 1.72— |
| #9CA3AF | 2.43— | 2.31— | 2.05— | 1.72— | Same color |
Shades
Shades and tints (50–950)
