PreviewingGo to this paletteOpen in generator
Code
/* Iris Petal — colorset.net */
:root {
--color-1: #5A4FCF;
--color-2: #7466E3;
--color-3: #8E7FF7;
--color-4: #A999FF;
--color-5: #C4B3FF;
--color-bg: #F7F5FF;
--color-surface: #EEEBFA;
--color-border: #D5D2E4;
--color-text: #46477E;
--color-muted: #666882;
--color-primary: #7163E0;
--color-on-primary: #FFFFFF;
--color-accent: #7B69AF;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0D0D1E;
--color-surface: #171729;
--color-border: #2A2B42;
--color-text: #C2BBDE;
--color-muted: #847F99;
--color-primary: #7163E0;
--color-on-primary: #FFFFFF;
--color-accent: #C4B3FF;
--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 #C4B3FF | adjusted for contrast · from #5A4FCF |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #5A4FCF | adjusted for contrast · from #C4B3FF |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #7466E3 | adjusted for contrast · from #7466E3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #7466E3 | 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.27:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 4.60:1 | AA pass 4.5:1 | |
| Label on accent | 4.69:1 | AA pass 4.5:1 | |
| Primary on background | 4.26:1 | AA Large pass 3:1 | |
| Accent on background | 4.34:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.48:1 | AAA pass 4.5:1 | |
| Text on surface | 9.62:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 4.60:1 | AA pass 4.5:1 | |
| Label on accent | 10.28:1 | AAA pass 4.5:1 | |
| Primary on background | 4.17:1 | AA Large pass 3:1 | |
| Accent on background | 10.28: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) | #7466E3 (Text 2) | #8E7FF7 (Text 3) | #A999FF (Text 4) | #C4B3FF (Text 5) |
|---|---|---|---|---|---|
| #5A4FCF | Same color | 1.38— | 1.89— | 2.52— | 3.25AA Large |
| #7466E3 | 1.38— | Same color | 1.37— | 1.83— | 2.36— |
| #8E7FF7 | 1.89— | 1.37— | Same color | 1.33— | 1.72— |
| #A999FF | 2.52— | 1.83— | 1.33— | Same color | 1.29— |
| #C4B3FF | 3.25AA Large | 2.36— | 1.72— | 1.29— | Same color |
Shades
Shades and tints (50–950)
