PreviewingGo to this paletteOpen in generator
Code
/* Melon Slice — colorset.net */
:root {
--color-1: #E4F8E7;
--color-2: #B4EFBF;
--color-3: #FFC8C3;
--color-4: #F3E5B0;
--color-5: #8DCBA9;
--color-bg: #E4F8E7;
--color-surface: #F1FDF3;
--color-border: #C9E0CD;
--color-text: #1C5A3E;
--color-muted: #5A7566;
--color-primary: #5C9878;
--color-on-primary: #000000;
--color-accent: #B07D79;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #03140A;
--color-surface: #0B1E14;
--color-border: #1C3427;
--color-text: #E4F8E7;
--color-muted: #7C8E7F;
--color-primary: #8DCBA9;
--color-on-primary: #03140A;
--color-accent: #FFC8C3;
--color-on-accent: #03140A;
}
}
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 #8DCBA9 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8DCBA9 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #8DCBA9 | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #8DCBA9 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.31:1 | AAA pass 4.5:1 | |
| Text on surface | 7.78:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.53:1 | AA pass 4.5:1 | |
| Label on primary | 6.22:1 | AA pass 4.5:1 | |
| Label on accent | 6.06:1 | AA pass 4.5:1 | |
| Primary on background | 3.04:1 | AA Large pass 3:1 | |
| Accent on background | 3.12:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.03:1 | AAA pass 4.5:1 | |
| Text on surface | 15.60:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.44:1 | AA pass 4.5:1 | |
| Label on primary | 10.15:1 | AAA pass 4.5:1 | |
| Label on accent | 12.90:1 | AAA pass 4.5:1 | |
| Primary on background | 10.15:1 | AAA pass 3:1 | |
| Accent on background | 12.90: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 | #E4F8E7 (Text 1) | #B4EFBF (Text 2) | #FFC8C3 (Text 3) | #F3E5B0 (Text 4) | #8DCBA9 (Text 5) |
|---|---|---|---|---|---|
| #E4F8E7 | Same color | 1.18— | 1.32— | 1.13— | 1.68— |
| #B4EFBF | 1.18— | Same color | 1.12— | 1.04— | 1.43— |
| #FFC8C3 | 1.32— | 1.12— | Same color | 1.16— | 1.27— |
| #F3E5B0 | 1.13— | 1.04— | 1.16— | Same color | 1.48— |
| #8DCBA9 | 1.68— | 1.43— | 1.27— | 1.48— | Same color |
Shades
Shades and tints (50–950)
