PreviewingGo to this paletteOpen in generator
Code
/* Iris Garden — colorset.net */
:root {
--color-1: #5A4FCF;
--color-2: #7B68EE;
--color-3: #8B7FDF;
--color-4: #9B90EF;
--color-5: #B8B4FF;
--color-bg: #F6F6FF;
--color-surface: #ECECFB;
--color-border: #D3D3E5;
--color-text: #46477E;
--color-muted: #666882;
--color-primary: #7562E7;
--color-on-primary: #FFFFFF;
--color-accent: #736DB3;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0D0D1E;
--color-surface: #171729;
--color-border: #2A2B42;
--color-text: #BBBADD;
--color-muted: #7F7F99;
--color-primary: #7562E7;
--color-on-primary: #FFFFFF;
--color-accent: #B8B4FF;
--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 #B8B4FF | adjusted for contrast · from #5A4FCF |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #5A4FCF | adjusted for contrast · from #B8B4FF |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #7B68EE | adjusted for contrast · from #7B68EE |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #8B7FDF | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.94:1 | AAA pass 4.5:1 | |
| Text on surface | 7.29:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 4.51:1 | AA pass 4.5:1 | |
| Label on accent | 4.60:1 | AA pass 4.5:1 | |
| Primary on background | 4.20:1 | AA Large pass 3:1 | |
| Accent on background | 4.28:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.23:1 | AAA pass 4.5:1 | |
| Text on surface | 9.39:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 4.51:1 | AA pass 4.5:1 | |
| Label on accent | 10.07:1 | AAA pass 4.5:1 | |
| Primary on background | 4.26:1 | AA Large pass 3:1 | |
| Accent on background | 10.07: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) | #7B68EE (Text 2) | #8B7FDF (Text 3) | #9B90EF (Text 4) | #B8B4FF (Text 5) |
|---|---|---|---|---|---|
| #5A4FCF | Same color | 1.46— | 1.79— | 2.21— | 3.19AA Large |
| #7B68EE | 1.46— | Same color | 1.23— | 1.51— | 2.18— |
| #8B7FDF | 1.79— | 1.23— | Same color | 1.23— | 1.78— |
| #9B90EF | 2.21— | 1.51— | 1.23— | Same color | 1.44— |
| #B8B4FF | 3.19AA Large | 2.18— | 1.78— | 1.44— | Same color |
Shades
Shades and tints (50–950)
