PreviewingGo to this paletteOpen in generator
Code
/* Driftwood Gray — colorset.net */
:root {
--color-1: #A0A0A0;
--color-2: #B3B3B3;
--color-3: #C6C6C6;
--color-4: #D9D9D9;
--color-5: #8D8D8D;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #4E4E4E;
--color-muted: #6A6A6A;
--color-primary: #878787;
--color-on-primary: #000000;
--color-accent: #565656;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F0F;
--color-surface: #191919;
--color-border: #302D2E;
--color-text: #D9D9D9;
--color-muted: #818181;
--color-primary: #8D8D8D;
--color-on-primary: #0F0F0F;
--color-accent: #C6C6C6;
--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 #D9D9D9 | adjusted for contrast · from #8D8D8D |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8D8D8D | from palette · color 4 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #8D8D8D | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #8D8D8D | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.77:1 | AAA pass 4.5:1 | |
| Text on surface | 7.11:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 5.85:1 | AA pass 4.5:1 | |
| Label on accent | 7.34:1 | AAA pass 4.5:1 | |
| Primary on background | 3.35:1 | AA Large pass 3:1 | |
| Accent on background | 6.85:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.58:1 | AAA pass 4.5:1 | |
| Text on surface | 12.46:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.92:1 | AA pass 4.5:1 | |
| Label on primary | 5.78:1 | AA pass 4.5:1 | |
| Label on accent | 11.22:1 | AAA pass 4.5:1 | |
| Primary on background | 5.78:1 | AA pass 3:1 | |
| Accent on background | 11.22: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 | #A0A0A0 (Text 1) | #B3B3B3 (Text 2) | #C6C6C6 (Text 3) | #D9D9D9 (Text 4) | #8D8D8D (Text 5) |
|---|---|---|---|---|---|
| #A0A0A0 | Same color | 1.25— | 1.53— | 1.85— | 1.27— |
| #B3B3B3 | 1.25— | Same color | 1.23— | 1.49— | 1.58— |
| #C6C6C6 | 1.53— | 1.23— | Same color | 1.21— | 1.94— |
| #D9D9D9 | 1.85— | 1.49— | 1.21— | Same color | 2.35— |
| #8D8D8D | 1.27— | 1.58— | 1.94— | 2.35— | Same color |
Shades
Shades and tints (50–950)
