PreviewingGo to this paletteOpen in generator
Code
/* Watermelon Slice — colorset.net */
:root {
--color-1: #FFF4F2;
--color-2: #EF4F5F;
--color-3: #4FA35A;
--color-4: #FFD0CC;
--color-5: #2A1E20;
--color-bg: #FFF4F2;
--color-surface: #F6EBE9;
--color-border: #E0D1CE;
--color-text: #2A1E20;
--color-muted: #756668;
--color-primary: #D9394E;
--color-on-primary: #FFFFFF;
--color-accent: #2E843D;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #2A1E20;
--color-surface: #35292B;
--color-border: #4E3D40;
--color-text: #FFF4F2;
--color-muted: #9D9391;
--color-primary: #D9394E;
--color-on-primary: #FFFFFF;
--color-accent: #4FA35A;
--color-on-accent: #2A1E20;
}
}
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 #EF4F5F | adjusted for contrast · from #EF4F5F |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #4FA35A | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.92:1 | AAA pass 4.5:1 | |
| Text on surface | 13.78:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 4.52:1 | AA pass 4.5:1 | |
| Label on accent | 4.68:1 | AA pass 4.5:1 | |
| Primary on background | 4.19:1 | AA Large pass 3:1 | |
| Accent on background | 4.34:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.92:1 | AAA pass 4.5:1 | |
| Text on surface | 12.95:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.38:1 | AA pass 4.5:1 | |
| Label on primary | 4.52:1 | AA pass 4.5:1 | |
| Label on accent | 5.15:1 | AA pass 4.5:1 | |
| Primary on background | 3.56:1 | AA Large pass 3:1 | |
| Accent on background | 5.15:1 | AA 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 | #FFF4F2 (Text 1) | #EF4F5F (Text 2) | #4FA35A (Text 3) | #FFD0CC (Text 4) | #2A1E20 (Text 5) |
|---|---|---|---|---|---|
| #FFF4F2 | Same color | 3.27AA Large | 2.90— | 1.29— | 14.92AAA |
| #EF4F5F | 3.27AA Large | Same color | 1.13— | 2.54— | 4.56AA |
| #4FA35A | 2.90— | 1.13— | Same color | 2.25— | 5.15AA |
| #FFD0CC | 1.29— | 2.54— | 2.25— | Same color | 11.61AAA |
| #2A1E20 | 14.92AAA | 4.56AA | 5.15AA | 11.61AAA | Same color |
Shades
Shades and tints (50–950)
