PreviewingGo to this paletteOpen in generator
Code
/* Pixel Pastel — colorset.net */
:root {
--color-1: #FDF8FF;
--color-2: #B69CFF;
--color-3: #7FE0C8;
--color-4: #FFB4A2;
--color-5: #3B3355;
--color-bg: #FDF8FF;
--color-surface: #F4EFF6;
--color-border: #DCD5DF;
--color-text: #3B3355;
--color-muted: #6E6982;
--color-primary: #947ADA;
--color-on-primary: #000000;
--color-accent: #339984;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #100D19;
--color-surface: #1A1723;
--color-border: #2E2B3B;
--color-text: #FDF8FF;
--color-muted: #908B91;
--color-primary: #B69CFF;
--color-on-primary: #100D19;
--color-accent: #7FE0C8;
--color-on-accent: #100D19;
}
}
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 #3B3355 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #B69CFF | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #7FE0C8 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.20:1 | AAA pass 4.5:1 | |
| Text on surface | 10.34:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 6.06:1 | AA pass 4.5:1 | |
| Label on accent | 6.03:1 | AA pass 4.5:1 | |
| Primary on background | 3.31:1 | AA Large pass 3:1 | |
| Accent on background | 3.32:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.33:1 | AAA pass 4.5:1 | |
| Text on surface | 16.84:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.75:1 | AA pass 4.5:1 | |
| Label on primary | 8.40:1 | AAA pass 4.5:1 | |
| Label on accent | 12.25:1 | AAA pass 4.5:1 | |
| Primary on background | 8.40:1 | AAA pass 3:1 | |
| Accent on background | 12.25: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 | #FDF8FF (Text 1) | #B69CFF (Text 2) | #7FE0C8 (Text 3) | #FFB4A2 (Text 4) | #3B3355 (Text 5) |
|---|---|---|---|---|---|
| #FDF8FF | Same color | 2.18— | 1.50— | 1.63— | 11.20AAA |
| #B69CFF | 2.18— | Same color | 1.46— | 1.34— | 5.13AA |
| #7FE0C8 | 1.50— | 1.46— | Same color | 1.09— | 7.48AAA |
| #FFB4A2 | 1.63— | 1.34— | 1.09— | Same color | 6.87AA |
| #3B3355 | 11.20AAA | 5.13AA | 7.48AAA | 6.87AA | Same color |
Shades
Shades and tints (50–950)
