PreviewingGo to this paletteOpen in generator
Code
/* Cocoa And Marshmallow — colorset.net */
:root {
--color-1: #F5EDE3;
--color-2: #6F4A3A;
--color-3: #D9534F;
--color-4: #BFD8D2;
--color-5: #2C1D18;
--color-bg: #F5EDE3;
--color-surface: #FAF5EF;
--color-border: #DED4C7;
--color-text: #2C1D18;
--color-muted: #7A6862;
--color-primary: #CE4946;
--color-on-primary: #FFFFFF;
--color-accent: #8F887F;
--color-on-accent: #2C1D18;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #2C1D18;
--color-surface: #382823;
--color-border: #513C36;
--color-text: #F5EDE3;
--color-muted: #9A9289;
--color-primary: #CE4946;
--color-on-primary: #FFFFFF;
--color-accent: #85726C;
--color-on-accent: #FFFFFF;
}
}
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 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #D9534F | adjusted for contrast · from #D9534F |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #D9534F | adjusted for contrast · from #6F4A3A |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.97:1 | AAA pass 4.5:1 | |
| Text on surface | 14.95:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.54:1 | AA pass 4.5:1 | |
| Label on primary | 4.50:1 | AA pass 4.5:1 | |
| Label on accent | 4.63:1 | AA pass 4.5:1 | |
| Primary on background | 3.88:1 | AA Large pass 3:1 | |
| Accent on background | 3.02:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.97:1 | AAA pass 4.5:1 | |
| Text on surface | 12.10:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.28:1 | AA pass 4.5:1 | |
| Label on primary | 4.50:1 | AA pass 4.5:1 | |
| Label on accent | 4.54:1 | AA pass 4.5:1 | |
| Primary on background | 3.60:1 | AA Large pass 3:1 | |
| Accent on background | 3.57:1 | AA Large 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 | #F5EDE3 (Text 1) | #6F4A3A (Text 2) | #D9534F (Text 3) | #BFD8D2 (Text 4) | #2C1D18 (Text 5) |
|---|---|---|---|---|---|
| #F5EDE3 | Same color | 6.66AA | 3.42AA Large | 1.30— | 13.97AAA |
| #6F4A3A | 6.66AA | Same color | 1.95— | 5.14AA | 2.10— |
| #D9534F | 3.42AA Large | 1.95— | Same color | 2.64— | 4.09AA Large |
| #BFD8D2 | 1.30— | 5.14AA | 2.64— | Same color | 10.78AAA |
| #2C1D18 | 13.97AAA | 2.10— | 4.09AA Large | 10.78AAA | Same color |
Shades
Shades and tints (50–950)
