PreviewingGo to this paletteOpen in generator
Code
/* Pearl Fog — colorset.net */
:root {
--color-1: #D3D3D3;
--color-2: #DCDCDC;
--color-3: #E5E5E5;
--color-4: #EFEFEF;
--color-5: #F5F5F5;
--color-bg: #F5F5F5;
--color-surface: #FCFCFC;
--color-border: #DFDBDC;
--color-text: #525252;
--color-muted: #6F6F6F;
--color-primary: #8E8E8E;
--color-on-primary: #000000;
--color-accent: #5D5D5D;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F0F;
--color-surface: #191919;
--color-border: #302D2E;
--color-text: #F5F5F5;
--color-muted: #8A8A8A;
--color-primary: #D3D3D3;
--color-on-primary: #0F0F0F;
--color-accent: #9D9D9D;
--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 #D3D3D3 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #D3D3D3 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #D3D3D3 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #D3D3D3 | adjusted for contrast · from #D3D3D3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.17:1 | AAA pass 4.5:1 | |
| Text on surface | 7.62:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.61:1 | AA pass 4.5:1 | |
| Label on primary | 6.41:1 | AA pass 4.5:1 | |
| Label on accent | 6.58:1 | AA pass 4.5:1 | |
| Primary on background | 3.01:1 | AA Large pass 3:1 | |
| Accent on background | 6.04:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.58:1 | AAA pass 4.5:1 | |
| Text on surface | 16.13:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.55:1 | AA pass 4.5:1 | |
| Label on primary | 12.80:1 | AAA pass 4.5:1 | |
| Label on accent | 7.07:1 | AAA pass 4.5:1 | |
| Primary on background | 12.80:1 | AAA pass 3:1 | |
| Accent on background | 7.07: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 | #D3D3D3 (Text 1) | #DCDCDC (Text 2) | #E5E5E5 (Text 3) | #EFEFEF (Text 4) | #F5F5F5 (Text 5) |
|---|---|---|---|---|---|
| #D3D3D3 | Same color | 1.09— | 1.19— | 1.30— | 1.37— |
| #DCDCDC | 1.09— | Same color | 1.09— | 1.19— | 1.26— |
| #E5E5E5 | 1.19— | 1.09— | Same color | 1.10— | 1.16— |
| #EFEFEF | 1.30— | 1.19— | 1.10— | Same color | 1.05— |
| #F5F5F5 | 1.37— | 1.26— | 1.16— | 1.05— | Same color |
Shades
Shades and tints (50–950)
