PreviewingGo to this paletteOpen in generator
Code
/* Marrakesh Spice — colorset.net */
:root {
--color-1: #FBF2EA;
--color-2: #C13F29;
--color-3: #00707E;
--color-4: #E89081;
--color-5: #331414;
--color-bg: #FBF2EA;
--color-surface: #FFFAF5;
--color-border: #E5D9CE;
--color-text: #331414;
--color-muted: #866765;
--color-primary: #C13F29;
--color-on-primary: #FFFFFF;
--color-accent: #00707E;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #331414;
--color-surface: #3F1F1E;
--color-border: #533736;
--color-text: #FBF2EA;
--color-muted: #999189;
--color-primary: #C8462F;
--color-on-primary: #FFFFFF;
--color-accent: #1B7C8A;
--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 | from palette · color 2 | adjusted for contrast · from #C13F29 |
| On primary | derived | derived |
| Accent | from palette · color 3 | adjusted for contrast · from #00707E |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.18:1 | AAA pass 4.5:1 | |
| Text on surface | 16.18:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.59:1 | AA pass 4.5:1 | |
| Label on primary | 5.24:1 | AA pass 4.5:1 | |
| Label on accent | 5.80:1 | AA pass 4.5:1 | |
| Primary on background | 4.74:1 | AA pass 3:1 | |
| Accent on background | 5.25:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.18:1 | AAA pass 4.5:1 | |
| Text on surface | 13.32:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.41:1 | AA pass 4.5:1 | |
| Label on primary | 4.80:1 | AA pass 4.5:1 | |
| Label on accent | 4.89:1 | AA pass 4.5:1 | |
| Primary on background | 3.50:1 | AA Large pass 3:1 | |
| Accent on background | 3.43: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 | #FBF2EA (Text 1) | #C13F29 (Text 2) | #00707E (Text 3) | #E89081 (Text 4) | #331414 (Text 5) |
|---|---|---|---|---|---|
| #FBF2EA | Same color | 4.74AA | 5.25AA | 2.17— | 15.18AAA |
| #C13F29 | 4.74AA | Same color | 1.11— | 2.18— | 3.21AA Large |
| #00707E | 5.25AA | 1.11— | Same color | 2.41— | 2.89— |
| #E89081 | 2.17— | 2.18— | 2.41— | Same color | 6.98AA |
| #331414 | 15.18AAA | 3.21AA Large | 2.89— | 6.98AA | Same color |
Shades
Shades and tints (50–950)
