PreviewingGo to this paletteOpen in generator
Code
/* Candy Kingdom — colorset.net */
:root {
--color-1: #FFF4FA;
--color-2: #ED4A99;
--color-3: #F6A88D;
--color-4: #F8B3D3;
--color-5: #30242F;
--color-bg: #FFF4FA;
--color-surface: #F6EBF1;
--color-border: #DFD1D9;
--color-text: #30242F;
--color-muted: #756774;
--color-primary: #D43084;
--color-on-primary: #FFFFFF;
--color-accent: #A96249;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120E12;
--color-surface: #1C181C;
--color-border: #322B32;
--color-text: #FFF4FA;
--color-muted: #92888E;
--color-primary: #ED4A99;
--color-on-primary: #120E12;
--color-accent: #F6A88D;
--color-on-accent: #120E12;
}
}
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 #30242F |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #ED4A99 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #ED4A99 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.79:1 | AAA pass 4.5:1 | |
| Text on surface | 12.74:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 4.61:1 | AA pass 4.5:1 | |
| Label on accent | 4.64:1 | AA pass 4.5:1 | |
| Primary on background | 4.30:1 | AA Large pass 3:1 | |
| Accent on background | 4.32:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.84:1 | AAA pass 4.5:1 | |
| Text on surface | 16.35:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.59:1 | AA pass 4.5:1 | |
| Label on primary | 5.50:1 | AA pass 4.5:1 | |
| Label on accent | 9.94:1 | AAA pass 4.5:1 | |
| Primary on background | 5.50:1 | AA pass 3:1 | |
| Accent on background | 9.94: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 | #FFF4FA (Text 1) | #ED4A99 (Text 2) | #F6A88D (Text 3) | #F8B3D3 (Text 4) | #30242F (Text 5) |
|---|---|---|---|---|---|
| #FFF4FA | Same color | 3.24AA Large | 1.79— | 1.58— | 13.79AAA |
| #ED4A99 | 3.24AA Large | Same color | 1.81— | 2.05— | 4.26AA Large |
| #F6A88D | 1.79— | 1.81— | Same color | 1.14— | 7.68AAA |
| #F8B3D3 | 1.58— | 2.05— | 1.14— | Same color | 8.72AAA |
| #30242F | 13.79AAA | 4.26AA Large | 7.68AAA | 8.72AAA | Same color |
Shades
Shades and tints (50–950)
