PreviewingGo to this paletteOpen in generator
Code
/* Pewter Dusk — colorset.net */
:root {
--color-1: #666677;
--color-2: #777788;
--color-3: #888899;
--color-4: #9999AA;
--color-5: #AAAABB;
--color-bg: #F6F6FC;
--color-surface: #EDEDF2;
--color-border: #D4D4DD;
--color-text: #4D4D5D;
--color-muted: #69697A;
--color-primary: #777788;
--color-on-primary: #000000;
--color-accent: #484855;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F14;
--color-surface: #19191E;
--color-border: #2D2D36;
--color-text: #AAAABB;
--color-muted: #828292;
--color-primary: #777788;
--color-on-primary: #000000;
--color-accent: #9999AA;
--color-on-accent: #0F0F14;
}
}
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 #AAAABB | adjusted for contrast · from #666677 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #666677 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #666677 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.69:1 | AAA pass 4.5:1 | |
| Text on surface | 7.10:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 4.78:1 | AA pass 4.5:1 | |
| Label on accent | 9.00:1 | AAA pass 4.5:1 | |
| Primary on background | 4.08:1 | AA Large pass 3:1 | |
| Accent on background | 8.36:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.35:1 | AAA pass 4.5:1 | |
| Text on surface | 7.65:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 4.78:1 | AA pass 4.5:1 | |
| Label on accent | 6.82:1 | AA pass 4.5:1 | |
| Primary on background | 4.35:1 | AA Large pass 3:1 | |
| Accent on background | 6.82:1 | AA 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 | #666677 (Text 1) | #777788 (Text 2) | #888899 (Text 3) | #9999AA (Text 4) | #AAAABB (Text 5) |
|---|---|---|---|---|---|
| #666677 | Same color | 1.28— | 1.62— | 2.01— | 2.46— |
| #777788 | 1.28— | Same color | 1.26— | 1.57— | 1.92— |
| #888899 | 1.62— | 1.26— | Same color | 1.24— | 1.52— |
| #9999AA | 2.01— | 1.57— | 1.24— | Same color | 1.22— |
| #AAAABB | 2.46— | 1.92— | 1.52— | 1.22— | Same color |
Shades
Shades and tints (50–950)
