PreviewingGo to this paletteOpen in generator
Code
/* Iris Purple — colorset.net */
:root {
--color-1: #5D4E75;
--color-2: #7A6B8D;
--color-3: #9688A6;
--color-4: #B3A5BF;
--color-5: #D0C2D8;
--color-bg: #F9F5FC;
--color-surface: #F0ECF2;
--color-border: #D8D2DC;
--color-text: #55466C;
--color-muted: #6F667E;
--color-primary: #7A6B8D;
--color-on-primary: #FFFFFF;
--color-accent: #918499;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #110D19;
--color-surface: #1B1724;
--color-border: #302A3B;
--color-text: #D0C2D8;
--color-muted: #8C7F93;
--color-primary: #7A6B8D;
--color-on-primary: #FFFFFF;
--color-accent: #B3A5BF;
--color-on-accent: #110D19;
}
}
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 #D0C2D8 | adjusted for contrast · from #5D4E75 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #5D4E75 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #9688A6 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.86:1 | AAA pass 4.5:1 | |
| Text on surface | 7.26:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 4.87:1 | AA pass 4.5:1 | |
| Label on accent | 5.96:1 | AA pass 4.5:1 | |
| Primary on background | 4.52:1 | AA pass 3:1 | |
| Accent on background | 3.27:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.31:1 | AAA pass 4.5:1 | |
| Text on surface | 10.37:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.09:1 | AA pass 4.5:1 | |
| Label on primary | 4.87:1 | AA pass 4.5:1 | |
| Label on accent | 8.26:1 | AAA pass 4.5:1 | |
| Primary on background | 3.94:1 | AA Large pass 3:1 | |
| Accent on background | 8.26: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 | #5D4E75 (Text 1) | #7A6B8D (Text 2) | #9688A6 (Text 3) | #B3A5BF (Text 4) | #D0C2D8 (Text 5) |
|---|---|---|---|---|---|
| #5D4E75 | Same color | 1.53— | 2.26— | 3.22AA Large | 4.41AA Large |
| #7A6B8D | 1.53— | Same color | 1.48— | 2.10— | 2.87— |
| #9688A6 | 2.26— | 1.48— | Same color | 1.42— | 1.95— |
| #B3A5BF | 3.22AA Large | 2.10— | 1.42— | Same color | 1.37— |
| #D0C2D8 | 4.41AA Large | 2.87— | 1.95— | 1.37— | Same color |
Shades
Shades and tints (50–950)
