PreviewingGo to this paletteOpen in generator
Code
/* Driftwood Ash — colorset.net */
:root {
--color-1: #848482;
--color-2: #9A9A98;
--color-3: #B0B0AE;
--color-4: #C6C6C4;
--color-5: #DCDCDA;
--color-bg: #F7F7F6;
--color-surface: #EDEDED;
--color-border: #D5D5D1;
--color-text: #4E4E4C;
--color-muted: #6A6A68;
--color-primary: #848482;
--color-on-primary: #000000;
--color-accent: #535352;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F0F;
--color-surface: #191919;
--color-border: #2E2E2B;
--color-text: #DCDCDA;
--color-muted: #838381;
--color-primary: #848482;
--color-on-primary: #0F0F0F;
--color-accent: #C6C6C4;
--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 #DCDCDA | adjusted for contrast · from #848482 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #848482 | 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 #848482 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.78:1 | AAA pass 4.5:1 | |
| Text on surface | 7.12:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 5.60:1 | AA pass 4.5:1 | |
| Label on accent | 7.70:1 | AAA pass 4.5:1 | |
| Primary on background | 3.50:1 | AA Large pass 3:1 | |
| Accent on background | 7.18:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.96:1 | AAA pass 4.5:1 | |
| Text on surface | 12.80:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 5.12:1 | AA pass 4.5:1 | |
| Label on accent | 11.21:1 | AAA pass 4.5:1 | |
| Primary on background | 5.12:1 | AA pass 3:1 | |
| Accent on background | 11.21: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 | #848482 (Text 1) | #9A9A98 (Text 2) | #B0B0AE (Text 3) | #C6C6C4 (Text 4) | #DCDCDA (Text 5) |
|---|---|---|---|---|---|
| #848482 | Same color | 1.33— | 1.73— | 2.19— | 2.73— |
| #9A9A98 | 1.33— | Same color | 1.30— | 1.65— | 2.05— |
| #B0B0AE | 1.73— | 1.30— | Same color | 1.27— | 1.58— |
| #C6C6C4 | 2.19— | 1.65— | 1.27— | Same color | 1.25— |
| #DCDCDA | 2.73— | 2.05— | 1.58— | 1.25— | Same color |
Shades
Shades and tints (50–950)
