PreviewingGo to this paletteOpen in generator
Code
/* Graphite Pencil — colorset.net */
:root {
--color-1: #1C1C1C;
--color-2: #383838;
--color-3: #545454;
--color-4: #6E6E6E;
--color-5: #888888;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #1C1C1C;
--color-muted: #696969;
--color-primary: #6E6E6E;
--color-on-primary: #FFFFFF;
--color-accent: #383838;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1C1C1C;
--color-surface: #272727;
--color-border: #3F3B3C;
--color-text: #B3B3B3;
--color-muted: #8F8F8F;
--color-primary: #717171;
--color-on-primary: #FFFFFF;
--color-accent: #888888;
--color-on-accent: #1C1C1C;
}
}
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 #888888 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #888888 |
| Muted text | derived | derived |
| Primary | from palette · color 4 | adjusted for contrast · from #6E6E6E |
| On primary | derived | derived |
| Accent | from palette · color 2 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.91:1 | AAA pass 4.5:1 | |
| Text on surface | 14.56:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.12:1 | AA pass 4.5:1 | |
| Label on primary | 5.10:1 | AA pass 4.5:1 | |
| Label on accent | 11.73:1 | AAA pass 4.5:1 | |
| Primary on background | 4.76:1 | AA pass 3:1 | |
| Accent on background | 10.95:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.13:1 | AAA pass 4.5:1 | |
| Text on surface | 7.12:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.27:1 | AA pass 4.5:1 | |
| Label on primary | 4.88:1 | AA pass 4.5:1 | |
| Label on accent | 4.81:1 | AA pass 4.5:1 | |
| Primary on background | 3.49:1 | AA Large pass 3:1 | |
| Accent on background | 4.81: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 | #1C1C1C (Text 1) | #383838 (Text 2) | #545454 (Text 3) | #6E6E6E (Text 4) | #888888 (Text 5) |
|---|---|---|---|---|---|
| #1C1C1C | Same color | 1.45— | 2.25— | 3.34AA Large | 4.81AA |
| #383838 | 1.45— | Same color | 1.55— | 2.30— | 3.31AA Large |
| #545454 | 2.25— | 1.55— | Same color | 1.49— | 2.14— |
| #6E6E6E | 3.34AA Large | 2.30— | 1.49— | Same color | 1.44— |
| #888888 | 4.81AA | 3.31AA Large | 2.14— | 1.44— | Same color |
Shades
Shades and tints (50–950)
