PreviewingGo to this paletteOpen in generator
Code
/* Iris Violet — colorset.net */
:root {
--color-1: #5A4FCF;
--color-2: #7266D9;
--color-3: #8A7DE3;
--color-4: #A294ED;
--color-5: #BAABF7;
--color-bg: #F7F5FF;
--color-surface: #EDEBFA;
--color-border: #D5D2E4;
--color-text: #46477E;
--color-muted: #666882;
--color-primary: #5A4FCF;
--color-on-primary: #FFFFFF;
--color-accent: #7A6BB2;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0D0D1E;
--color-surface: #171729;
--color-border: #2A2B42;
--color-text: #B8B3D6;
--color-muted: #827E98;
--color-primary: #5D52D2;
--color-on-primary: #FFFFFF;
--color-accent: #BAABF7;
--color-on-accent: #0D0D1E;
}
}
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 #BAABF7 | adjusted for contrast · from #5A4FCF |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #5A4FCF | adjusted for contrast · from #BAABF7 |
| Muted text | derived | derived |
| Primary | from palette · color 1 | adjusted for contrast · from #5A4FCF |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #7266D9 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.90:1 | AAA pass 4.5:1 | |
| Text on surface | 7.25:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 6.08:1 | AA pass 4.5:1 | |
| Label on accent | 4.59:1 | AA pass 4.5:1 | |
| Primary on background | 5.63:1 | AA pass 3:1 | |
| Accent on background | 4.25:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.56:1 | AAA pass 4.5:1 | |
| Text on surface | 8.78:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.93:1 | AA pass 4.5:1 | |
| Label on primary | 5.83:1 | AA pass 4.5:1 | |
| Label on accent | 9.38:1 | AAA pass 4.5:1 | |
| Primary on background | 3.30:1 | AA Large pass 3:1 | |
| Accent on background | 9.38: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 | #5A4FCF (Text 1) | #7266D9 (Text 2) | #8A7DE3 (Text 3) | #A294ED (Text 4) | #BAABF7 (Text 5) |
|---|---|---|---|---|---|
| #5A4FCF | Same color | 1.34— | 1.77— | 2.31— | 2.97— |
| #7266D9 | 1.34— | Same color | 1.33— | 1.73— | 2.22— |
| #8A7DE3 | 1.77— | 1.33— | Same color | 1.31— | 1.67— |
| #A294ED | 2.31— | 1.73— | 1.31— | Same color | 1.28— |
| #BAABF7 | 2.97— | 2.22— | 1.67— | 1.28— | Same color |
Shades
Shades and tints (50–950)
