PreviewingGo to this paletteOpen in generator
Code
/* Cottage Pastels — colorset.net */
:root {
--color-1: #DDA0DD;
--color-2: #F0E68C;
--color-3: #98FB98;
--color-4: #F5DEB3;
--color-5: #FFE4E1;
--color-bg: #FFE4E1;
--color-surface: #FFEEEC;
--color-border: #E9CAC7;
--color-text: #673B68;
--color-muted: #766175;
--color-primary: #1C8626;
--color-on-primary: #FFFFFF;
--color-accent: #99609A;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #170A17;
--color-surface: #221422;
--color-border: #382738;
--color-text: #FFE4E1;
--color-muted: #977F7C;
--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 | from palette · color 5 | adjusted for contrast · from #DDA0DD |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #DDA0DD | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #98FB98 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #DDA0DD | from palette · color 1 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.26:1 | AAA pass 4.5:1 | |
| Text on surface | 7.78:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.67:1 | AA pass 4.5:1 | |
| Label on primary | 4.68:1 | AA pass 4.5:1 | |
| Label on accent | 4.67:1 | AA pass 4.5:1 | |
| Primary on background | 3.89:1 | AA Large pass 3:1 | |
| Accent on background | 3.88:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.96:1 | AAA pass 4.5:1 | |
| Text on surface | 14.64:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.17: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 | #DDA0DD (Text 1) | #F0E68C (Text 2) | #98FB98 (Text 3) | #F5DEB3 (Text 4) | #FFE4E1 (Text 5) |
|---|---|---|---|---|---|
| #DDA0DD | Same color | 1.62— | 1.63— | 1.58— | 1.72— |
| #F0E68C | 1.62— | Same color | 1.01— | 1.03— | 1.06— |
| #98FB98 | 1.63— | 1.01— | Same color | 1.04— | 1.05— |
| #F5DEB3 | 1.58— | 1.03— | 1.04— | Same color | 1.09— |
| #FFE4E1 | 1.72— | 1.06— | 1.05— | 1.09— | Same color |
Shades
Shades and tints (50–950)
