PreviewingGo to this paletteOpen in generator
Code
/* Velvet Purple — colorset.net */
:root {
--color-1: #722F37;
--color-2: #8B008B;
--color-3: #4B0082;
--color-4: #483D8B;
--color-5: #6A5ACD;
--color-bg: #F6F6FF;
--color-surface: #ECECFB;
--color-border: #D3D3E5;
--color-text: #402A5E;
--color-muted: #6F667E;
--color-primary: #8B008B;
--color-on-primary: #FFFFFF;
--color-accent: #6A5ACD;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120B1C;
--color-surface: #1C1527;
--color-border: #31293F;
--color-text: #A2A2C4;
--color-muted: #81809B;
--color-primary: #A92FA7;
--color-on-primary: #FFFFFF;
--color-accent: #6A5ACD;
--color-on-accent: #FFFFFF;
}
}
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 #6A5ACD | adjusted for contrast · from #4B0082 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #483D8B | adjusted for contrast · from #6A5ACD |
| Muted text | derived | derived |
| Primary | from palette · color 2 | adjusted for contrast · from #8B008B |
| On primary | derived | derived |
| Accent | from palette · color 5 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.42:1 | AAA pass 4.5:1 | |
| Text on surface | 10.50:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 8.50:1 | AAA pass 4.5:1 | |
| Label on accent | 5.31:1 | AA pass 4.5:1 | |
| Primary on background | 7.91:1 | AAA pass 3:1 | |
| Accent on background | 4.94:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.80:1 | AAA pass 4.5:1 | |
| Text on surface | 7.17:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 5.75:1 | AA pass 4.5:1 | |
| Label on accent | 5.31:1 | AA pass 4.5:1 | |
| Primary on background | 3.35:1 | AA Large pass 3:1 | |
| Accent on background | 3.63:1 | AA Large 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 | #722F37 (Text 1) | #8B008B (Text 2) | #4B0082 (Text 3) | #483D8B (Text 4) | #6A5ACD (Text 5) |
|---|---|---|---|---|---|
| #722F37 | Same color | 1.13— | 1.34— | 1.06— | 1.82— |
| #8B008B | 1.13— | Same color | 1.52— | 1.07— | 1.60— |
| #4B0082 | 1.34— | 1.52— | Same color | 1.43— | 2.44— |
| #483D8B | 1.06— | 1.07— | 1.43— | Same color | 1.71— |
| #6A5ACD | 1.82— | 1.60— | 2.44— | 1.71— | Same color |
Shades
Shades and tints (50–950)
