PreviewingGo to this paletteOpen in generator
Code
/* Pebble Gray — colorset.net */
:root {
--color-1: #9B9B9B;
--color-2: #AFAFAF;
--color-3: #C3C3C3;
--color-4: #D7D7D7;
--color-5: #EBEBEB;
--color-bg: #EBEBEB;
--color-surface: #F2F2F2;
--color-border: #D6D1D2;
--color-text: #4D4D4D;
--color-muted: #686868;
--color-primary: #868686;
--color-on-primary: #000000;
--color-accent: #555555;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F0F;
--color-surface: #191919;
--color-border: #302D2E;
--color-text: #EBEBEB;
--color-muted: #858585;
--color-primary: #9B9B9B;
--color-on-primary: #0F0F0F;
--color-accent: #D7D7D7;
--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 | from palette · color 5 | adjusted for contrast · from #9B9B9B |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #9B9B9B | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #9B9B9B | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #9B9B9B | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.09:1 | AAA pass 4.5:1 | |
| Text on surface | 7.55:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.67:1 | AA pass 4.5:1 | |
| Label on primary | 5.77:1 | AA pass 4.5:1 | |
| Label on accent | 7.46:1 | AAA pass 4.5:1 | |
| Primary on background | 3.05:1 | AA Large pass 3:1 | |
| Accent on background | 6.25:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.08:1 | AAA pass 4.5:1 | |
| Text on surface | 14.75:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.19:1 | AA pass 4.5:1 | |
| Label on primary | 6.90:1 | AA pass 4.5:1 | |
| Label on accent | 13.32:1 | AAA pass 4.5:1 | |
| Primary on background | 6.90:1 | AA pass 3:1 | |
| Accent on background | 13.32: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 | #9B9B9B (Text 1) | #AFAFAF (Text 2) | #C3C3C3 (Text 3) | #D7D7D7 (Text 4) | #EBEBEB (Text 5) |
|---|---|---|---|---|---|
| #9B9B9B | Same color | 1.27— | 1.58— | 1.93— | 2.33— |
| #AFAFAF | 1.27— | Same color | 1.24— | 1.52— | 1.84— |
| #C3C3C3 | 1.58— | 1.24— | Same color | 1.22— | 1.48— |
| #D7D7D7 | 1.93— | 1.52— | 1.22— | Same color | 1.21— |
| #EBEBEB | 2.33— | 1.84— | 1.48— | 1.21— | Same color |
Shades
Shades and tints (50–950)
