PreviewingGo to this paletteOpen in generator
Code
/* Soft Iris Petal — colorset.net */
:root {
--color-1: #8A8ACD;
--color-2: #9999CC;
--color-3: #CCCCFF;
--color-4: #DADAFF;
--color-5: #E8E8FF;
--color-bg: #E8E8FF;
--color-surface: #F0F0FE;
--color-border: #CFCFE9;
--color-text: #47457C;
--color-muted: #65667F;
--color-primary: #706FB0;
--color-on-primary: #FFFFFF;
--color-accent: #838398;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0E0D1E;
--color-surface: #171729;
--color-border: #2B2B41;
--color-text: #E8E8FF;
--color-muted: #838297;
--color-primary: #8A8ACD;
--color-on-primary: #0E0D1E;
--color-accent: #CCCCFF;
--color-on-accent: #0E0D1E;
}
}
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 5 | adjusted for contrast · from #8A8ACD |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8A8ACD | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #8A8ACD | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #8A8ACD | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.23:1 | AAA pass 4.5:1 | |
| Text on surface | 7.72:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.63:1 | AA pass 4.5:1 | |
| Label on primary | 4.58:1 | AA pass 4.5:1 | |
| Label on accent | 5.66:1 | AA pass 4.5:1 | |
| Primary on background | 3.80:1 | AA Large pass 3:1 | |
| Accent on background | 3.07:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.91:1 | AAA pass 4.5:1 | |
| Text on surface | 14.62:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.12:1 | AA pass 4.5:1 | |
| Label on primary | 6.03:1 | AA pass 4.5:1 | |
| Label on accent | 12.46:1 | AAA pass 4.5:1 | |
| Primary on background | 6.03:1 | AA pass 3:1 | |
| Accent on background | 12.46: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 | #8A8ACD (Text 1) | #9999CC (Text 2) | #CCCCFF (Text 3) | #DADAFF (Text 4) | #E8E8FF (Text 5) |
|---|---|---|---|---|---|
| #8A8ACD | Same color | 1.18— | 2.07— | 2.34— | 2.64— |
| #9999CC | 1.18— | Same color | 1.75— | 1.99— | 2.24— |
| #CCCCFF | 2.07— | 1.75— | Same color | 1.13— | 1.28— |
| #DADAFF | 2.34— | 1.99— | 1.13— | Same color | 1.13— |
| #E8E8FF | 2.64— | 2.24— | 1.28— | 1.13— | Same color |
Shades
Shades and tints (50–950)
