PreviewingGo to this paletteOpen in generator
Code
/* Slate Iris — colorset.net */
:root {
--color-1: #6A5ACD;
--color-2: #7B6BD1;
--color-3: #8C7CD5;
--color-4: #9D8DD9;
--color-5: #5949C9;
--color-bg: #F7F5FF;
--color-surface: #EEEBFA;
--color-border: #D5D2E4;
--color-text: #49487F;
--color-muted: #676982;
--color-primary: #5949C9;
--color-on-primary: #FFFFFF;
--color-accent: #7969B2;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0D0D1E;
--color-surface: #171729;
--color-border: #2B2B41;
--color-text: #A7A1C4;
--color-muted: #85809B;
--color-primary: #6153D3;
--color-on-primary: #FFFFFF;
--color-accent: #9D8DD9;
--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 #9D8DD9 | adjusted for contrast · from #5949C9 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #5949C9 | adjusted for contrast · from #9D8DD9 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #6A5ACD |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #7B6BD1 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.73:1 | AAA pass 4.5:1 | |
| Text on surface | 7.11:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 6.52:1 | AA pass 4.5:1 | |
| Label on accent | 4.69:1 | AA pass 4.5:1 | |
| Primary on background | 6.04:1 | AA pass 3:1 | |
| Accent on background | 4.35:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.81:1 | AAA pass 4.5:1 | |
| Text on surface | 7.17:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 5.70:1 | AA pass 4.5:1 | |
| Label on accent | 6.63:1 | AA pass 4.5:1 | |
| Primary on background | 3.37:1 | AA Large pass 3:1 | |
| Accent on background | 6.63:1 | AA 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 | #6A5ACD (Text 1) | #7B6BD1 (Text 2) | #8C7CD5 (Text 3) | #9D8DD9 (Text 4) | #5949C9 (Text 5) |
|---|---|---|---|---|---|
| #6A5ACD | Same color | 1.23— | 1.51— | 1.83— | 1.23— |
| #7B6BD1 | 1.23— | Same color | 1.22— | 1.49— | 1.51— |
| #8C7CD5 | 1.51— | 1.22— | Same color | 1.22— | 1.85— |
| #9D8DD9 | 1.83— | 1.49— | 1.22— | Same color | 2.25— |
| #5949C9 | 1.23— | 1.51— | 1.85— | 2.25— | Same color |
Shades
Shades and tints (50–950)
