PreviewingGo to this paletteOpen in generator
Code
/* Cherry Milk — colorset.net */
:root {
--color-1: #DC2626;
--color-2: #EF4444;
--color-3: #F87171;
--color-4: #FCA5A5;
--color-5: #FED7D7;
--color-bg: #FFF4F4;
--color-surface: #F6EAEA;
--color-border: #E1D0D0;
--color-text: #793933;
--color-muted: #81625E;
--color-primary: #DC2626;
--color-on-primary: #FFFFFF;
--color-accent: #A38080;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1C0907;
--color-surface: #281310;
--color-border: #402623;
--color-text: #FED7D7;
--color-muted: #9A7A7A;
--color-primary: #DC2626;
--color-on-primary: #FFFFFF;
--color-accent: #FCA5A5;
--color-on-accent: #1C0907;
}
}
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 #FED7D7 | adjusted for contrast · from #DC2626 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #DC2626 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 1 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #F87171 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.97:1 | AAA pass 4.5:1 | |
| Text on surface | 7.31:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.07:1 | AA pass 4.5:1 | |
| Label on primary | 4.83:1 | AA pass 4.5:1 | |
| Label on accent | 5.96:1 | AA pass 4.5:1 | |
| Primary on background | 4.48:1 | AA Large pass 3:1 | |
| Accent on background | 3.27:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.58:1 | AAA pass 4.5:1 | |
| Text on surface | 13.36:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 4.83:1 | AA pass 4.5:1 | |
| Label on accent | 10.14:1 | AAA pass 4.5:1 | |
| Primary on background | 3.98:1 | AA Large pass 3:1 | |
| Accent on background | 10.14: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 | #DC2626 (Text 1) | #EF4444 (Text 2) | #F87171 (Text 3) | #FCA5A5 (Text 4) | #FED7D7 (Text 5) |
|---|---|---|---|---|---|
| #DC2626 | Same color | 1.28— | 1.75— | 2.54— | 3.66AA Large |
| #EF4444 | 1.28— | Same color | 1.36— | 1.98— | 2.85— |
| #F87171 | 1.75— | 1.36— | Same color | 1.46— | 2.10— |
| #FCA5A5 | 2.54— | 1.98— | 1.46— | Same color | 1.44— |
| #FED7D7 | 3.66AA Large | 2.85— | 2.10— | 1.44— | Same color |
Shades
Shades and tints (50–950)
