PreviewingGo to this paletteOpen in generator
Code
/* Velvet Night — colorset.net */
:root {
--color-1: #1A1018;
--color-2: #B5406E;
--color-3: #D9B68C;
--color-4: #3A2632;
--color-5: #F4E9EE;
--color-bg: #F4E9EE;
--color-surface: #F8F2F5;
--color-border: #DECFD6;
--color-text: #1A1018;
--color-muted: #6D616B;
--color-primary: #B5406E;
--color-on-primary: #FFFFFF;
--color-accent: #A38259;
--color-on-accent: #1A1018;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1A1018;
--color-surface: #251A23;
--color-border: #3C2E39;
--color-text: #F4E9EE;
--color-muted: #8F858A;
--color-primary: #B5406E;
--color-on-primary: #FFFFFF;
--color-accent: #D9B68C;
--color-on-accent: #1A1018;
}
}
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 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #D9B68C | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.68:1 | AAA pass 4.5:1 | |
| Text on surface | 16.81:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 5.35:1 | AA pass 4.5:1 | |
| Label on accent | 5.21:1 | AA pass 4.5:1 | |
| Primary on background | 4.52:1 | AA pass 3:1 | |
| Accent on background | 3.01:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.68:1 | AAA pass 4.5:1 | |
| Text on surface | 14.18:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.21:1 | AA pass 4.5:1 | |
| Label on primary | 5.35:1 | AA pass 4.5:1 | |
| Label on accent | 9.74:1 | AAA pass 4.5:1 | |
| Primary on background | 3.47:1 | AA Large pass 3:1 | |
| Accent on background | 9.74: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 | #1A1018 (Text 1) | #B5406E (Text 2) | #D9B68C (Text 3) | #3A2632 (Text 4) | #F4E9EE (Text 5) |
|---|---|---|---|---|---|
| #1A1018 | Same color | 3.47AA Large | 9.74AAA | 1.33— | 15.68AAA |
| #B5406E | 3.47AA Large | Same color | 2.81— | 2.61— | 4.52AA |
| #D9B68C | 9.74AAA | 2.81— | Same color | 7.33AAA | 1.61— |
| #3A2632 | 1.33— | 2.61— | 7.33AAA | Same color | 11.80AAA |
| #F4E9EE | 15.68AAA | 4.52AA | 1.61— | 11.80AAA | Same color |
Shades
Shades and tints (50–950)
