PreviewingGo to this paletteOpen in generator
Code
/* Macaron Box — colorset.net */
:root {
--color-1: #F5DEB3;
--color-2: #FFB6C1;
--color-3: #98FB98;
--color-4: #87CEFA;
--color-5: #DDA0DD;
--color-bg: #FDF6E9;
--color-surface: #F4EDE0;
--color-border: #DCD4C4;
--color-text: #6A3E6B;
--color-muted: #796478;
--color-primary: #389C3D;
--color-on-primary: #000000;
--color-accent: #AF75B0;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #170A17;
--color-surface: #221422;
--color-border: #382738;
--color-text: #F1DFBC;
--color-muted: #8F8168;
--color-primary: #98FB98;
--color-on-primary: #170A17;
--color-accent: #DDA0DD;
--color-on-accent: #170A17;
}
}
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 | adjusted for contrast · from #F5DEB3 | adjusted for contrast · from #DDA0DD |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #DDA0DD | adjusted for contrast · from #F5DEB3 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #87CEFA | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #DDA0DD | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.77:1 | AAA pass 4.5:1 | |
| Text on surface | 7.17:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 5.99:1 | AA pass 4.5:1 | |
| Label on accent | 5.99:1 | AA pass 4.5:1 | |
| Primary on background | 3.26:1 | AA Large pass 3:1 | |
| Accent on background | 3.26:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.67:1 | AAA pass 4.5:1 | |
| Text on surface | 13.45:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 15.19:1 | AAA pass 4.5:1 | |
| Label on accent | 9.29:1 | AAA pass 4.5:1 | |
| Primary on background | 15.19:1 | AAA pass 3:1 | |
| Accent on background | 9.29: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 | #F5DEB3 (Text 1) | #FFB6C1 (Text 2) | #98FB98 (Text 3) | #87CEFA (Text 4) | #DDA0DD (Text 5) |
|---|---|---|---|---|---|
| #F5DEB3 | Same color | 1.26— | 1.04— | 1.31— | 1.58— |
| #FFB6C1 | 1.26— | Same color | 1.30— | 1.04— | 1.25— |
| #98FB98 | 1.04— | 1.30— | Same color | 1.36— | 1.63— |
| #87CEFA | 1.31— | 1.04— | 1.36— | Same color | 1.21— |
| #DDA0DD | 1.58— | 1.25— | 1.63— | 1.21— | Same color |
Shades
Shades and tints (50–950)
