PreviewingGo to this paletteOpen in generator
Code
/* Mall Rat — colorset.net */
:root {
--color-1: #20142E;
--color-2: #C8F04B;
--color-3: #FF6FB5;
--color-4: #3E2C52;
--color-5: #F7F0FA;
--color-bg: #F7F0FA;
--color-surface: #FDF8FE;
--color-border: #E0D6E3;
--color-text: #20142E;
--color-muted: #716780;
--color-primary: #E6589F;
--color-on-primary: #20142E;
--color-accent: #799600;
--color-on-accent: #20142E;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #20142E;
--color-surface: #2B1F3A;
--color-border: #3F364C;
--color-text: #F7F0FA;
--color-muted: #938D96;
--color-primary: #FF6FB5;
--color-on-primary: #20142E;
--color-accent: #C8F04B;
--color-on-accent: #20142E;
}
}
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 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FF6FB5 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #C8F04B | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.65:1 | AAA pass 4.5:1 | |
| Text on surface | 16.68:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.75:1 | AA pass 4.5:1 | |
| Label on primary | 5.21:1 | AA pass 4.5:1 | |
| Label on accent | 5.14:1 | AA pass 4.5:1 | |
| Primary on background | 3.00:1 | AA Large pass 3:1 | |
| Accent on background | 3.04:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.65:1 | AAA pass 4.5:1 | |
| Text on surface | 13.82:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.40:1 | AA pass 4.5:1 | |
| Label on primary | 6.82:1 | AA pass 4.5:1 | |
| Label on accent | 13.34:1 | AAA pass 4.5:1 | |
| Primary on background | 6.82:1 | AA pass 3:1 | |
| Accent on background | 13.34: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 | #20142E (Text 1) | #C8F04B (Text 2) | #FF6FB5 (Text 3) | #3E2C52 (Text 4) | #F7F0FA (Text 5) |
|---|---|---|---|---|---|
| #20142E | Same color | 13.34AAA | 6.82AA | 1.40— | 15.65AAA |
| #C8F04B | 13.34AAA | Same color | 1.96— | 9.50AAA | 1.17— |
| #FF6FB5 | 6.82AA | 1.96— | Same color | 4.86AA | 2.29— |
| #3E2C52 | 1.40— | 9.50AAA | 4.86AA | Same color | 11.14AAA |
| #F7F0FA | 15.65AAA | 1.17— | 2.29— | 11.14AAA | Same color |
Shades
Shades and tints (50–950)
