PreviewingGo to this paletteOpen in generator
Code
/* Iridescent Lilac — colorset.net */
:root {
--color-1: #F5F1FC;
--color-2: #9B7BEA;
--color-3: #4FC2AE;
--color-4: #DCD2F2;
--color-5: #241B3A;
--color-bg: #F5F1FC;
--color-surface: #FBF9FF;
--color-border: #DDD8E6;
--color-text: #241B3A;
--color-muted: #706A84;
--color-primary: #9878E7;
--color-on-primary: #241B3A;
--color-accent: #1A9C89;
--color-on-accent: #241B3A;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #241B3A;
--color-surface: #2F2646;
--color-border: #443E56;
--color-text: #F5F1FC;
--color-muted: #95919B;
--color-primary: #9B7BEA;
--color-on-primary: #241B3A;
--color-accent: #4FC2AE;
--color-on-accent: #241B3A;
}
}
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 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #9B7BEA | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #4FC2AE | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.60:1 | AAA pass 4.5:1 | |
| Text on surface | 15.54:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.62:1 | AA pass 4.5:1 | |
| Label on primary | 4.78:1 | AA pass 4.5:1 | |
| Label on accent | 4.76:1 | AA pass 4.5:1 | |
| Primary on background | 3.06:1 | AA Large pass 3:1 | |
| Accent on background | 3.06:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.60:1 | AAA pass 4.5:1 | |
| Text on surface | 12.69:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.26:1 | AA pass 4.5:1 | |
| Label on primary | 4.96:1 | AA pass 4.5:1 | |
| Label on accent | 7.47:1 | AAA pass 4.5:1 | |
| Primary on background | 4.96:1 | AA pass 3:1 | |
| Accent on background | 7.47: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 | #F5F1FC (Text 1) | #9B7BEA (Text 2) | #4FC2AE (Text 3) | #DCD2F2 (Text 4) | #241B3A (Text 5) |
|---|---|---|---|---|---|
| #F5F1FC | Same color | 2.94— | 1.95— | 1.30— | 14.60AAA |
| #9B7BEA | 2.94— | Same color | 1.51— | 2.27— | 4.96AA |
| #4FC2AE | 1.95— | 1.51— | Same color | 1.51— | 7.47AAA |
| #DCD2F2 | 1.30— | 2.27— | 1.51— | Same color | 11.25AAA |
| #241B3A | 14.60AAA | 4.96AA | 7.47AAA | 11.25AAA | Same color |
Shades
Shades and tints (50–950)
