PreviewingGo to this paletteOpen in generator
Code
/* Raspberry Violet — colorset.net */
:root {
--color-1: #FF0040;
--color-2: #FF4080;
--color-3: #FF80C0;
--color-4: #C080FF;
--color-5: #8040FF;
--color-bg: #FFF3F8;
--color-surface: #F9E8EF;
--color-border: #E3CFD7;
--color-text: #50457C;
--color-muted: #6B6781;
--color-primary: #8040FF;
--color-on-primary: #FFFFFF;
--color-accent: #EA003A;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #100C1D;
--color-surface: #191628;
--color-border: #2E2A40;
--color-text: #CCA5B6;
--color-muted: #987B87;
--color-primary: #8040FF;
--color-on-primary: #FFFFFF;
--color-accent: #EA003A;
--color-on-accent: #FFFFFF;
}
}
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 #FF80C0 | adjusted for contrast · from #8040FF |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8040FF | adjusted for contrast · from #FF80C0 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FF0040 | adjusted for contrast · from #FF0040 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.82:1 | AAA pass 4.5:1 | |
| Text on surface | 7.17:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 5.13:1 | AA pass 4.5:1 | |
| Label on accent | 4.61:1 | AA pass 4.5:1 | |
| Primary on background | 4.74:1 | AA pass 3:1 | |
| Accent on background | 4.26:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.81:1 | AAA pass 4.5:1 | |
| Text on surface | 8.11:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 5.13:1 | AA pass 4.5:1 | |
| Label on accent | 4.61:1 | AA pass 4.5:1 | |
| Primary on background | 3.75:1 | AA Large pass 3:1 | |
| Accent on background | 4.17:1 | AA Large 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 | #FF0040 (Text 1) | #FF4080 (Text 2) | #FF80C0 (Text 3) | #C080FF (Text 4) | #8040FF (Text 5) |
|---|---|---|---|---|---|
| #FF0040 | Same color | 1.18— | 1.71— | 1.46— | 1.30— |
| #FF4080 | 1.18— | Same color | 1.45— | 1.23— | 1.54— |
| #FF80C0 | 1.71— | 1.45— | Same color | 1.17— | 2.22— |
| #C080FF | 1.46— | 1.23— | 1.17— | Same color | 1.90— |
| #8040FF | 1.30— | 1.54— | 2.22— | 1.90— | Same color |
Shades
Shades and tints (50–950)
