PreviewingGo to this paletteOpen in generator
Code
/* Marble White — colorset.net */
:root {
--color-1: #F8F8FF;
--color-2: #F0F0F5;
--color-3: #E8E8EA;
--color-4: #E0E0DF;
--color-5: #D8D8D4;
--color-bg: #F8F8FF;
--color-surface: #EFEFF6;
--color-border: #D6D6E0;
--color-text: #50504D;
--color-muted: #6D6D69;
--color-primary: #8A8A86;
--color-on-primary: #000000;
--color-accent: #595956;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F0E;
--color-surface: #191918;
--color-border: #2E2E2A;
--color-text: #F8F8FF;
--color-muted: #8C8C92;
--color-primary: #D8D8D4;
--color-on-primary: #0F0F0E;
--color-accent: #A2A29F;
--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 #D8D8D4 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #D8D8D4 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #D8D8D4 | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #D8D8D4 | adjusted for contrast · from #D8D8D4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.65:1 | AAA pass 4.5:1 | |
| Text on surface | 7.07:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.91:1 | AA pass 4.5:1 | |
| Label on primary | 6.06:1 | AA pass 4.5:1 | |
| Label on accent | 7.03:1 | AAA pass 4.5:1 | |
| Primary on background | 3.28:1 | AA Large pass 3:1 | |
| Accent on background | 6.65:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.14:1 | AAA pass 4.5:1 | |
| Text on surface | 16.64:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.74:1 | AA pass 4.5:1 | |
| Label on primary | 13.42:1 | AAA pass 4.5:1 | |
| Label on accent | 7.49:1 | AAA pass 4.5:1 | |
| Primary on background | 13.42:1 | AAA pass 3:1 | |
| Accent on background | 7.49: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 | #F8F8FF (Text 1) | #F0F0F5 (Text 2) | #E8E8EA (Text 3) | #E0E0DF (Text 4) | #D8D8D4 (Text 5) |
|---|---|---|---|---|---|
| #F8F8FF | Same color | 1.07— | 1.16— | 1.25— | 1.35— |
| #F0F0F5 | 1.07— | Same color | 1.08— | 1.16— | 1.26— |
| #E8E8EA | 1.16— | 1.08— | Same color | 1.08— | 1.17— |
| #E0E0DF | 1.25— | 1.16— | 1.08— | Same color | 1.08— |
| #D8D8D4 | 1.35— | 1.26— | 1.17— | 1.08— | Same color |
Shades
Shades and tints (50–950)
