PreviewingGo to this paletteOpen in generator
Code
/* Pastel Pediatric — colorset.net */
:root {
--color-1: #FFFAF3;
--color-2: #8CC9B4;
--color-3: #F5A3A3;
--color-4: #F2C85B;
--color-5: #3A3340;
--color-bg: #FFFAF3;
--color-surface: #F6F1EA;
--color-border: #DFD8CE;
--color-text: #3A3340;
--color-muted: #726A79;
--color-primary: #AD8600;
--color-on-primary: #000000;
--color-accent: #C27576;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #110E13;
--color-surface: #1B181D;
--color-border: #302C34;
--color-text: #FFFAF3;
--color-muted: #918D86;
--color-primary: #F2C85B;
--color-on-primary: #110E13;
--color-accent: #F5A3A3;
--color-on-accent: #110E13;
}
}
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 #3A3340 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #F5A3A3 | from palette · color 4 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #F5A3A3 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.71:1 | AAA pass 4.5:1 | |
| Text on surface | 10.82:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 6.19:1 | AA pass 4.5:1 | |
| Label on accent | 6.10:1 | AA pass 4.5:1 | |
| Primary on background | 3.27:1 | AA Large pass 3:1 | |
| Accent on background | 3.31:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.45:1 | AAA pass 4.5:1 | |
| Text on surface | 16.92:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.80:1 | AA pass 4.5:1 | |
| Label on primary | 12.03:1 | AAA pass 4.5:1 | |
| Label on accent | 9.72:1 | AAA pass 4.5:1 | |
| Primary on background | 12.03:1 | AAA pass 3:1 | |
| Accent on background | 9.72: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 | #FFFAF3 (Text 1) | #8CC9B4 (Text 2) | #F5A3A3 (Text 3) | #F2C85B (Text 4) | #3A3340 (Text 5) |
|---|---|---|---|---|---|
| #FFFAF3 | Same color | 1.82— | 1.90— | 1.53— | 11.71AAA |
| #8CC9B4 | 1.82— | Same color | 1.04— | 1.19— | 6.44AA |
| #F5A3A3 | 1.90— | 1.04— | Same color | 1.24— | 6.17AA |
| #F2C85B | 1.53— | 1.19— | 1.24— | Same color | 7.63AAA |
| #3A3340 | 11.71AAA | 6.44AA | 6.17AA | 7.63AAA | Same color |
Shades
Shades and tints (50–950)
