PreviewingGo to this paletteOpen in generator
Code
/* Soft Pastel — colorset.net */
:root {
--color-1: #C0C0FF;
--color-2: #FFC0C0;
--color-3: #C0FFC0;
--color-4: #FFFFC0;
--color-5: #FFC0FF;
--color-bg: #F8F8E9;
--color-surface: #EEEFE0;
--color-border: #D6D6C4;
--color-text: #4B487E;
--color-muted: #686982;
--color-primary: #B075B0;
--color-on-primary: #000000;
--color-accent: #48824A;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0E0D1E;
--color-surface: #181729;
--color-border: #2B2B41;
--color-text: #FDFDD7;
--color-muted: #8F8F73;
--color-primary: #FFC0FF;
--color-on-primary: #0E0D1E;
--color-accent: #C0FFC0;
--color-on-accent: #0E0D1E;
}
}
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 #FFFFC0 | adjusted for contrast · from #C0C0FF |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #C0C0FF | adjusted for contrast · from #FFFFC0 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #C0C0FF | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #C0C0FF | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.75:1 | AAA pass 4.5:1 | |
| Text on surface | 7.15:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 6.02:1 | AA pass 4.5:1 | |
| Label on accent | 4.60:1 | AA pass 4.5:1 | |
| Primary on background | 3.26:1 | AA Large pass 3:1 | |
| Accent on background | 4.29: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.93:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.79:1 | AA pass 4.5:1 | |
| Label on primary | 13.00:1 | AAA pass 4.5:1 | |
| Label on accent | 16.72:1 | AAA pass 4.5:1 | |
| Primary on background | 13.00:1 | AAA pass 3:1 | |
| Accent on background | 16.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 | #C0C0FF (Text 1) | #FFC0C0 (Text 2) | #C0FFC0 (Text 3) | #FFFFC0 (Text 4) | #FFC0FF (Text 5) |
|---|---|---|---|---|---|
| #C0C0FF | Same color | 1.11— | 1.50— | 1.66— | 1.16— |
| #FFC0C0 | 1.11— | Same color | 1.35— | 1.50— | 1.05— |
| #C0FFC0 | 1.50— | 1.35— | Same color | 1.11— | 1.29— |
| #FFFFC0 | 1.66— | 1.50— | 1.11— | Same color | 1.43— |
| #FFC0FF | 1.16— | 1.05— | 1.29— | 1.43— | Same color |
Shades
Shades and tints (50–950)
