PreviewingGo to this paletteOpen in generator
Code
/* Marble Gray — colorset.net */
:root {
--color-1: #F8F8F2;
--color-2: #E8E8E2;
--color-3: #D8D8D2;
--color-4: #C8C8C2;
--color-5: #B8B8B2;
--color-bg: #F8F8F2;
--color-surface: #EFEFE9;
--color-border: #D6D6CD;
--color-text: #50504B;
--color-muted: #6C6C67;
--color-primary: #8A8A84;
--color-on-primary: #000000;
--color-accent: #595954;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F0E;
--color-surface: #1A1A18;
--color-border: #2E2E29;
--color-text: #F8F8F2;
--color-muted: #8C8C87;
--color-primary: #B8B8B2;
--color-on-primary: #0F0F0E;
--color-accent: #D8D8D2;
--color-on-accent: #0F0F0E;
}
}
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 #B8B8B2 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #B8B8B2 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #B8B8B2 | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #B8B8B2 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.61:1 | AAA pass 4.5:1 | |
| Text on surface | 7.02:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.95:1 | AA pass 4.5:1 | |
| Label on primary | 6.05:1 | AA pass 4.5:1 | |
| Label on accent | 7.04:1 | AAA pass 4.5:1 | |
| Primary on background | 3.26:1 | AA Large pass 3:1 | |
| Accent on background | 6.61:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.99:1 | AAA pass 4.5:1 | |
| Text on surface | 16.35:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.68:1 | AA pass 4.5:1 | |
| Label on primary | 9.62:1 | AAA pass 4.5:1 | |
| Label on accent | 13.40:1 | AAA pass 4.5:1 | |
| Primary on background | 9.62:1 | AAA pass 3:1 | |
| Accent on background | 13.40: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 | #F8F8F2 (Text 1) | #E8E8E2 (Text 2) | #D8D8D2 (Text 3) | #C8C8C2 (Text 4) | #B8B8B2 (Text 5) |
|---|---|---|---|---|---|
| #F8F8F2 | Same color | 1.15— | 1.34— | 1.58— | 1.87— |
| #E8E8E2 | 1.15— | Same color | 1.16— | 1.37— | 1.62— |
| #D8D8D2 | 1.34— | 1.16— | Same color | 1.17— | 1.39— |
| #C8C8C2 | 1.58— | 1.37— | 1.17— | Same color | 1.19— |
| #B8B8B2 | 1.87— | 1.62— | 1.39— | 1.19— | Same color |
Shades
Shades and tints (50–950)
