PreviewingGo to this paletteOpen in generator
Code
/* Primary Pastel — colorset.net */
:root {
--color-1: #F8F4EE;
--color-2: #E89A8C;
--color-3: #7FA3D6;
--color-4: #F3D589;
--color-5: #2A2C33;
--color-bg: #F8F4EE;
--color-surface: #FEFCF8;
--color-border: #E1DBD2;
--color-text: #2A2C33;
--color-muted: #6E7079;
--color-primary: #6A8DBF;
--color-on-primary: #000000;
--color-accent: #A5893D;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F12;
--color-surface: #19191C;
--color-border: #2C2E33;
--color-text: #F8F4EE;
--color-muted: #8D8984;
--color-primary: #7FA3D6;
--color-on-primary: #0F0F12;
--color-accent: #F3D589;
--color-on-accent: #0F0F12;
}
}
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 #2A2C33 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #7FA3D6 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #E89A8C | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.72:1 | AAA pass 4.5:1 | |
| Text on surface | 13.60:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.50:1 | AA pass 4.5:1 | |
| Label on primary | 6.18:1 | AA pass 4.5:1 | |
| Label on accent | 6.25:1 | AA pass 4.5:1 | |
| Primary on background | 3.10:1 | AA Large pass 3:1 | |
| Accent on background | 3.07:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.47:1 | AAA pass 4.5:1 | |
| Text on surface | 16.01:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.51:1 | AA pass 4.5:1 | |
| Label on primary | 7.39:1 | AAA pass 4.5:1 | |
| Label on accent | 13.39:1 | AAA pass 4.5:1 | |
| Primary on background | 7.39:1 | AAA pass 3:1 | |
| Accent on background | 13.39: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 | #F8F4EE (Text 1) | #E89A8C (Text 2) | #7FA3D6 (Text 3) | #F3D589 (Text 4) | #2A2C33 (Text 5) |
|---|---|---|---|---|---|
| #F8F4EE | Same color | 2.03— | 2.36— | 1.30— | 12.72AAA |
| #E89A8C | 2.03— | Same color | 1.16— | 1.56— | 6.26AA |
| #7FA3D6 | 2.36— | 1.16— | Same color | 1.81— | 5.38AA |
| #F3D589 | 1.30— | 1.56— | 1.81— | Same color | 9.75AAA |
| #2A2C33 | 12.72AAA | 6.26AA | 5.38AA | 9.75AAA | Same color |
Shades
Shades and tints (50–950)
