PreviewingGo to this paletteOpen in generator
Code
/* Playful Colors — colorset.net */
:root {
--color-1: #FFB6C1;
--color-2: #98FB98;
--color-3: #87CEFA;
--color-4: #DDA0DD;
--color-5: #F0E68C;
--color-bg: #F9F8E8;
--color-surface: #F0EEDF;
--color-border: #D8D6C3;
--color-text: #6A3E6B;
--color-muted: #796478;
--color-primary: #389C3D;
--color-on-primary: #000000;
--color-accent: #AF75B0;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #170A17;
--color-surface: #221422;
--color-border: #382738;
--color-text: #E8E4BF;
--color-muted: #858266;
--color-primary: #98FB98;
--color-on-primary: #170A17;
--color-accent: #DDA0DD;
--color-on-accent: #170A17;
}
}
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 #F0E68C | adjusted for contrast · from #DDA0DD |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #DDA0DD | adjusted for contrast · from #F0E68C |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #87CEFA | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #DDA0DD | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.80:1 | AAA pass 4.5:1 | |
| Text on surface | 7.16:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 5.99:1 | AA pass 4.5:1 | |
| Label on accent | 5.99:1 | AA pass 4.5:1 | |
| Primary on background | 3.27: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.91:1 | AAA pass 4.5:1 | |
| Text on surface | 13.67:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.93:1 | AA pass 4.5:1 | |
| Label on primary | 15.19:1 | AAA pass 4.5:1 | |
| Label on accent | 9.29:1 | AAA pass 4.5:1 | |
| Primary on background | 15.19:1 | AAA pass 3:1 | |
| Accent on background | 9.29: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 | #FFB6C1 (Text 1) | #98FB98 (Text 2) | #87CEFA (Text 3) | #DDA0DD (Text 4) | #F0E68C (Text 5) |
|---|---|---|---|---|---|
| #FFB6C1 | Same color | 1.30— | 1.04— | 1.25— | 1.29— |
| #98FB98 | 1.30— | Same color | 1.36— | 1.63— | 1.01— |
| #87CEFA | 1.04— | 1.36— | Same color | 1.21— | 1.34— |
| #DDA0DD | 1.25— | 1.63— | 1.21— | Same color | 1.62— |
| #F0E68C | 1.29— | 1.01— | 1.34— | 1.62— | Same color |
Shades
Shades and tints (50–950)
