PreviewingGo to this paletteOpen in generator
Code
/* Sweet Pastel — colorset.net */
:root {
--color-1: #F4C2C2;
--color-2: #FFE5B4;
--color-3: #D5F4E6;
--color-4: #B8E6B8;
--color-5: #C8B2DB;
--color-bg: #D5F4E6;
--color-surface: #E5F8EF;
--color-border: #BBDCCD;
--color-text: #594568;
--color-muted: #73667E;
--color-primary: #937EA5;
--color-on-primary: #000000;
--color-accent: #689369;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #130C18;
--color-surface: #1D1622;
--color-border: #322A39;
--color-text: #D5F4E6;
--color-muted: #708D80;
--color-primary: #C8B2DB;
--color-on-primary: #130C18;
--color-accent: #B8E6B8;
--color-on-accent: #130C18;
}
}
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 3 | adjusted for contrast · from #C8B2DB |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #C8B2DB | from palette · color 3 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #C8B2DB | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #C8B2DB | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.23:1 | AAA pass 4.5:1 | |
| Text on surface | 7.68:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.56:1 | AA pass 4.5:1 | |
| Label on primary | 5.77:1 | AA pass 4.5:1 | |
| Label on accent | 5.97:1 | AA pass 4.5:1 | |
| Primary on background | 3.11:1 | AA Large pass 3:1 | |
| Accent on background | 3.00:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.38:1 | AAA pass 4.5:1 | |
| Text on surface | 15.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.31:1 | AA pass 4.5:1 | |
| Label on primary | 9.92:1 | AAA pass 4.5:1 | |
| Label on accent | 13.76:1 | AAA pass 4.5:1 | |
| Primary on background | 9.92:1 | AAA pass 3:1 | |
| Accent on background | 13.76: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 | #F4C2C2 (Text 1) | #FFE5B4 (Text 2) | #D5F4E6 (Text 3) | #B8E6B8 (Text 4) | #C8B2DB (Text 5) |
|---|---|---|---|---|---|
| #F4C2C2 | Same color | 1.28— | 1.34— | 1.13— | 1.23— |
| #FFE5B4 | 1.28— | Same color | 1.05— | 1.14— | 1.58— |
| #D5F4E6 | 1.34— | 1.05— | Same color | 1.19— | 1.65— |
| #B8E6B8 | 1.13— | 1.14— | 1.19— | Same color | 1.39— |
| #C8B2DB | 1.23— | 1.58— | 1.65— | 1.39— | Same color |
Shades
Shades and tints (50–950)
