PreviewingGo to this paletteOpen in generator
Code
/* Iris Light — colorset.net */
:root {
--color-1: #9B90EF;
--color-2: #AFA5F3;
--color-3: #C3BAF7;
--color-4: #D7CFFB;
--color-5: #EBE4FF;
--color-bg: #EBE4FF;
--color-surface: #F1EDFD;
--color-border: #D3CBE8;
--color-text: #494279;
--color-muted: #67667F;
--color-primary: #7568C3;
--color-on-primary: #FFFFFF;
--color-accent: #868098;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0D1E;
--color-surface: #191729;
--color-border: #2D2B41;
--color-text: #EBE4FF;
--color-muted: #867F98;
--color-primary: #9B90EF;
--color-on-primary: #0F0D1E;
--color-accent: #D7CFFB;
--color-on-accent: #0F0D1E;
}
}
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 #9B90EF |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #9B90EF | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #9B90EF | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #9B90EF | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.30:1 | AAA pass 4.5:1 | |
| Text on surface | 7.81:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.51:1 | AA pass 4.5:1 | |
| Label on primary | 4.64:1 | AA pass 4.5:1 | |
| Label on accent | 5.55:1 | AA pass 4.5:1 | |
| Primary on background | 3.77: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.57:1 | AAA pass 4.5:1 | |
| Text on surface | 14.28:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 6.96:1 | AA pass 4.5:1 | |
| Label on accent | 12.96:1 | AAA pass 4.5:1 | |
| Primary on background | 6.96:1 | AA pass 3:1 | |
| Accent on background | 12.96: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 | #9B90EF (Text 1) | #AFA5F3 (Text 2) | #C3BAF7 (Text 3) | #D7CFFB (Text 4) | #EBE4FF (Text 5) |
|---|---|---|---|---|---|
| #9B90EF | Same color | 1.25— | 1.53— | 1.86— | 2.24— |
| #AFA5F3 | 1.25— | Same color | 1.23— | 1.50— | 1.80— |
| #C3BAF7 | 1.53— | 1.23— | Same color | 1.22— | 1.46— |
| #D7CFFB | 1.86— | 1.50— | 1.22— | Same color | 1.20— |
| #EBE4FF | 2.24— | 1.80— | 1.46— | 1.20— | Same color |
Shades
Shades and tints (50–950)
