PreviewingGo to this paletteOpen in generator
Code
/* Pencil Shading — colorset.net */
:root {
--color-1: #2F4F4F;
--color-2: #708090;
--color-3: #A9A9A9;
--color-4: #D3D3D3;
--color-5: #F5F5F5;
--color-bg: #F5F5F5;
--color-surface: #FCFCFC;
--color-border: #DFDBDC;
--color-text: #2F4F4F;
--color-muted: #557676;
--color-primary: #708090;
--color-on-primary: #000000;
--color-accent: #8E8E8E;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #071111;
--color-surface: #111C1C;
--color-border: #223131;
--color-text: #F5F5F5;
--color-muted: #8A8A8A;
--color-primary: #708090;
--color-on-primary: #071111;
--color-accent: #D3D3D3;
--color-on-accent: #071111;
}
}
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 #2F4F4F |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | 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 #708090 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.19:1 | AAA pass 4.5:1 | |
| Text on surface | 8.70:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.54:1 | AA pass 4.5:1 | |
| Label on primary | 5.18:1 | AA pass 4.5:1 | |
| Label on accent | 6.41:1 | AA pass 4.5:1 | |
| Primary on background | 3.72:1 | AA Large pass 3:1 | |
| Accent on background | 3.01:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.55:1 | AAA pass 4.5:1 | |
| Text on surface | 15.96:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.54:1 | AA pass 4.5:1 | |
| Label on primary | 4.72:1 | AA pass 4.5:1 | |
| Label on accent | 12.78:1 | AAA pass 4.5:1 | |
| Primary on background | 4.72:1 | AA pass 3:1 | |
| Accent on background | 12.78: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 | #2F4F4F (Text 1) | #708090 (Text 2) | #A9A9A9 (Text 3) | #D3D3D3 (Text 4) | #F5F5F5 (Text 5) |
|---|---|---|---|---|---|
| #2F4F4F | Same color | 2.20— | 3.80AA Large | 5.96AA | 8.19AAA |
| #708090 | 2.20— | Same color | 1.73— | 2.71— | 3.72AA Large |
| #A9A9A9 | 3.80AA Large | 1.73— | Same color | 1.57— | 2.16— |
| #D3D3D3 | 5.96AA | 2.71— | 1.57— | Same color | 1.37— |
| #F5F5F5 | 8.19AAA | 3.72AA Large | 2.16— | 1.37— | Same color |
Shades
Shades and tints (50–950)
