PreviewingGo to this paletteOpen in generator
Code
/* Pastel Rainbow — colorset.net */
:root {
--color-1: #FFB3BA;
--color-2: #FFDFBA;
--color-3: #FFFFBA;
--color-4: #BAFFC9;
--color-5: #BAE1FF;
--color-bg: #F8F8E9;
--color-surface: #EEEFE0;
--color-border: #D6D6C4;
--color-text: #793942;
--color-muted: #816265;
--color-primary: #BC757D;
--color-on-primary: #000000;
--color-accent: #569766;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1C080B;
--color-surface: #271215;
--color-border: #402528;
--color-text: #FDFDD6;
--color-muted: #8F8F73;
--color-primary: #FFB3BA;
--color-on-primary: #1C080B;
--color-accent: #BAFFC9;
--color-on-accent: #1C080B;
}
}
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 #FFFFBA | adjusted for contrast · from #FFB3BA |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #FFB3BA | adjusted for contrast · from #FFFFBA |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FFB3BA | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FFB3BA | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.91:1 | AAA pass 4.5:1 | |
| Text on surface | 7.29:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.07:1 | AA pass 4.5:1 | |
| Label on primary | 5.98:1 | AA pass 4.5:1 | |
| Label on accent | 6.01:1 | AA pass 4.5:1 | |
| Primary on background | 3.28:1 | AA Large pass 3:1 | |
| Accent on background | 3.26:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.55:1 | AAA pass 4.5:1 | |
| Text on surface | 17.06:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.83:1 | AA pass 4.5:1 | |
| Label on primary | 11.40:1 | AAA pass 4.5:1 | |
| Label on accent | 16.75:1 | AAA pass 4.5:1 | |
| Primary on background | 11.40:1 | AAA pass 3:1 | |
| Accent on background | 16.75: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 | #FFB3BA (Text 1) | #FFDFBA (Text 2) | #FFFFBA (Text 3) | #BAFFC9 (Text 4) | #BAE1FF (Text 5) |
|---|---|---|---|---|---|
| #FFB3BA | Same color | 1.33— | 1.63— | 1.47— | 1.23— |
| #FFDFBA | 1.33— | Same color | 1.23— | 1.10— | 1.08— |
| #FFFFBA | 1.63— | 1.23— | Same color | 1.11— | 1.32— |
| #BAFFC9 | 1.47— | 1.10— | 1.11— | Same color | 1.19— |
| #BAE1FF | 1.23— | 1.08— | 1.32— | 1.19— | Same color |
Shades
Shades and tints (50–950)
