PreviewingGo to this paletteOpen in generator
Code
/* Candy Colors — colorset.net */
:root {
--color-1: #FF69B4;
--color-2: #FFB6C1;
--color-3: #98FB98;
--color-4: #87CEFA;
--color-5: #DDA0DD;
--color-bg: #EFFBEF;
--color-surface: #E6F1E5;
--color-border: #CBD9CB;
--color-text: #773B57;
--color-muted: #80646F;
--color-primary: #CD3A89;
--color-on-primary: #FFFFFF;
--color-accent: #389C3D;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1B0811;
--color-surface: #26121B;
--color-border: #3D2530;
--color-text: #CCE8CB;
--color-muted: #748873;
--color-primary: #FF69B4;
--color-on-primary: #1B0811;
--color-accent: #98FB98;
--color-on-accent: #1B0811;
}
}
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 #98FB98 | adjusted for contrast · from #FF69B4 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #FF69B4 | adjusted for contrast · from #98FB98 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FF69B4 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #87CEFA | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.74:1 | AAA pass 4.5:1 | |
| Text on surface | 7.10:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 4.60:1 | AA pass 4.5:1 | |
| Label on accent | 5.99:1 | AA pass 4.5:1 | |
| Primary on background | 4.32:1 | AA Large pass 3:1 | |
| Accent on background | 3.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.66:1 | AAA pass 4.5:1 | |
| Text on surface | 13.48:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 7.28:1 | AAA pass 4.5:1 | |
| Label on accent | 15.23:1 | AAA pass 4.5:1 | |
| Primary on background | 7.28:1 | AAA pass 3:1 | |
| Accent on background | 15.23: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 | #FF69B4 (Text 1) | #FFB6C1 (Text 2) | #98FB98 (Text 3) | #87CEFA (Text 4) | #DDA0DD (Text 5) |
|---|---|---|---|---|---|
| #FF69B4 | Same color | 1.60— | 2.09— | 1.54— | 1.28— |
| #FFB6C1 | 1.60— | Same color | 1.30— | 1.04— | 1.25— |
| #98FB98 | 2.09— | 1.30— | Same color | 1.36— | 1.63— |
| #87CEFA | 1.54— | 1.04— | 1.36— | Same color | 1.21— |
| #DDA0DD | 1.28— | 1.25— | 1.63— | 1.21— | Same color |
Shades
Shades and tints (50–950)
