PreviewingGo to this paletteOpen in generator
Code
/* Pewter Gray — colorset.net */
:root {
--color-1: #8C7853;
--color-2: #A0A0A0;
--color-3: #C0C0C0;
--color-4: #E0E0E0;
--color-5: #F8F8F8;
--color-bg: #F8F8F8;
--color-surface: #EFEFEF;
--color-border: #D9D5D6;
--color-text: #604D29;
--color-muted: #786A52;
--color-primary: #8C7853;
--color-on-primary: #000000;
--color-accent: #898989;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #140E04;
--color-surface: #1F180D;
--color-border: #352D1D;
--color-text: #F8F8F8;
--color-muted: #8C8C8C;
--color-primary: #8C7853;
--color-on-primary: #140E04;
--color-accent: #E0E0E0;
--color-on-accent: #140E04;
}
}
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 5 | adjusted for contrast · from #8C7853 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8C7853 | 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 #8C7853 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.63:1 | AAA pass 4.5:1 | |
| Text on surface | 7.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 4.93:1 | AA pass 4.5:1 | |
| Label on accent | 6.00:1 | AA pass 4.5:1 | |
| Primary on background | 4.01:1 | AA Large pass 3:1 | |
| Accent on background | 3.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.07:1 | AAA pass 4.5:1 | |
| Text on surface | 16.55:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.71:1 | AA pass 4.5:1 | |
| Label on primary | 4.50:1 | AA pass 4.5:1 | |
| Label on accent | 14.54:1 | AAA pass 4.5:1 | |
| Primary on background | 4.50:1 | AA pass 3:1 | |
| Accent on background | 14.54: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 | #8C7853 (Text 1) | #A0A0A0 (Text 2) | #C0C0C0 (Text 3) | #E0E0E0 (Text 4) | #F8F8F8 (Text 5) |
|---|---|---|---|---|---|
| #8C7853 | Same color | 1.63— | 2.34— | 3.23AA Large | 4.01AA Large |
| #A0A0A0 | 1.63— | Same color | 1.44— | 1.98— | 2.46— |
| #C0C0C0 | 2.34— | 1.44— | Same color | 1.38— | 1.71— |
| #E0E0E0 | 3.23AA Large | 1.98— | 1.38— | Same color | 1.24— |
| #F8F8F8 | 4.01AA Large | 2.46— | 1.71— | 1.24— | Same color |
Shades
Shades and tints (50–950)
