PreviewingGo to this paletteOpen in generator
Code
/* Iris Velvet — colorset.net */
:root {
--color-1: #663399;
--color-2: #7B4AAB;
--color-3: #905BBD;
--color-4: #A56CCF;
--color-5: #BA7DE1;
--color-bg: #FAF4FF;
--color-surface: #F2EAF8;
--color-border: #DAD1E1;
--color-text: #5A4278;
--color-muted: #70667F;
--color-primary: #905BBD;
--color-on-primary: #FFFFFF;
--color-accent: #663399;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #130B1C;
--color-surface: #1D1527;
--color-border: #32293E;
--color-text: #B29FBF;
--color-muted: #8C7E97;
--color-primary: #905BBD;
--color-on-primary: #FFFFFF;
--color-accent: #BA7DE1;
--color-on-accent: #130B1C;
}
}
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 #BA7DE1 | adjusted for contrast · from #663399 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #663399 | adjusted for contrast · from #BA7DE1 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | from palette · color 1 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.83:1 | AAA pass 4.5:1 | |
| Text on surface | 7.20:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 4.75:1 | AA pass 4.5:1 | |
| Label on accent | 8.41:1 | AAA pass 4.5:1 | |
| Primary on background | 4.40:1 | AA Large pass 3:1 | |
| Accent on background | 7.78:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.88:1 | AAA pass 4.5:1 | |
| Text on surface | 7.24:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 4.75:1 | AA pass 4.5:1 | |
| Label on accent | 6.51:1 | AA pass 4.5:1 | |
| Primary on background | 4.04:1 | AA Large pass 3:1 | |
| Accent on background | 6.51: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 | #663399 (Text 1) | #7B4AAB (Text 2) | #905BBD (Text 3) | #A56CCF (Text 4) | #BA7DE1 (Text 5) |
|---|---|---|---|---|---|
| #663399 | Same color | 1.36— | 1.77— | 2.26— | 2.85— |
| #7B4AAB | 1.36— | Same color | 1.30— | 1.66— | 2.08— |
| #905BBD | 1.77— | 1.30— | Same color | 1.28— | 1.61— |
| #A56CCF | 2.26— | 1.66— | 1.28— | Same color | 1.26— |
| #BA7DE1 | 2.85— | 2.08— | 1.61— | 1.26— | Same color |
Shades
Shades and tints (50–950)
