PreviewingGo to this paletteOpen in generator
Code
/* Pearl Grey — colorset.net */
:root {
--color-1: #C8C8C8;
--color-2: #D0D0D0;
--color-3: #D8D8D8;
--color-4: #E0E0E0;
--color-5: #E8E8E8;
--color-bg: #E8E8E8;
--color-surface: #EFEFEF;
--color-border: #D3CECF;
--color-text: #4B4B4B;
--color-muted: #666666;
--color-primary: #848484;
--color-on-primary: #000000;
--color-accent: #535353;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F0F;
--color-surface: #191919;
--color-border: #302D2E;
--color-text: #E8E8E8;
--color-muted: #838383;
--color-primary: #C8C8C8;
--color-on-primary: #0F0F0F;
--color-accent: #939393;
--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 #C8C8C8 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #C8C8C8 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #C8C8C8 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #C8C8C8 | adjusted for contrast · from #C8C8C8 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.12:1 | AAA pass 4.5:1 | |
| Text on surface | 7.59:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.69:1 | AA pass 4.5:1 | |
| Label on primary | 5.61:1 | AA pass 4.5:1 | |
| Label on accent | 7.69:1 | AAA pass 4.5:1 | |
| Primary on background | 3.05:1 | AA Large pass 3:1 | |
| Accent on background | 6.28:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.64:1 | AAA pass 4.5:1 | |
| Text on surface | 14.35:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 11.46:1 | AAA pass 4.5:1 | |
| Label on accent | 6.24:1 | AA pass 4.5:1 | |
| Primary on background | 11.46:1 | AAA pass 3:1 | |
| Accent on background | 6.24: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 | #C8C8C8 (Text 1) | #D0D0D0 (Text 2) | #D8D8D8 (Text 3) | #E0E0E0 (Text 4) | #E8E8E8 (Text 5) |
|---|---|---|---|---|---|
| #C8C8C8 | Same color | 1.08— | 1.17— | 1.27— | 1.37— |
| #D0D0D0 | 1.08— | Same color | 1.08— | 1.17— | 1.26— |
| #D8D8D8 | 1.17— | 1.08— | Same color | 1.08— | 1.16— |
| #E0E0E0 | 1.27— | 1.17— | 1.08— | Same color | 1.08— |
| #E8E8E8 | 1.37— | 1.26— | 1.16— | 1.08— | Same color |
Shades
Shades and tints (50–950)
