PreviewingGo to this paletteOpen in generator
Code
/* Porcelain Gray — colorset.net */
:root {
--color-1: #F5F5F5;
--color-2: #EEEEEE;
--color-3: #E0E0E0;
--color-4: #CCCCCC;
--color-5: #BBBBBB;
--color-bg: #F5F5F5;
--color-surface: #FCFCFC;
--color-border: #DFDBDC;
--color-text: #535353;
--color-muted: #707070;
--color-primary: #8D8D8D;
--color-on-primary: #000000;
--color-accent: #5C5C5C;
--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: #BBBBBB;
--color-on-primary: #0F0F0F;
--color-accent: #E0E0E0;
--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 1 | adjusted for contrast · from #BBBBBB |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #BBBBBB | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #BBBBBB | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #BBBBBB | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.06:1 | AAA pass 4.5:1 | |
| Text on surface | 7.50:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.54:1 | AA pass 4.5:1 | |
| Label on primary | 6.33:1 | AA pass 4.5:1 | |
| Label on accent | 6.69:1 | AA pass 4.5:1 | |
| Primary on background | 3.04:1 | AA Large pass 3:1 | |
| Accent on background | 6.13: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 | 9.98:1 | AAA pass 4.5:1 | |
| Label on accent | 14.52:1 | AAA pass 4.5:1 | |
| Primary on background | 9.98:1 | AAA pass 3:1 | |
| Accent on background | 14.52: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 | #F5F5F5 (Text 1) | #EEEEEE (Text 2) | #E0E0E0 (Text 3) | #CCCCCC (Text 4) | #BBBBBB (Text 5) |
|---|---|---|---|---|---|
| #F5F5F5 | Same color | 1.06— | 1.21— | 1.47— | 1.76— |
| #EEEEEE | 1.06— | Same color | 1.14— | 1.38— | 1.65— |
| #E0E0E0 | 1.21— | 1.14— | Same color | 1.22— | 1.45— |
| #CCCCCC | 1.47— | 1.38— | 1.22— | Same color | 1.20— |
| #BBBBBB | 1.76— | 1.65— | 1.45— | 1.20— | Same color |
Shades
Shades and tints (50–950)
