PreviewingGo to this paletteOpen in generator
Code
/* Nightfall Velvet — colorset.net */
:root {
--color-1: #000000;
--color-2: #191970;
--color-3: #2F4F4F;
--color-4: #483D8B;
--color-5: #696969;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #000000;
--color-muted: #4A4A4A;
--color-primary: #483D8B;
--color-on-primary: #FFFFFF;
--color-accent: #191970;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #000000;
--color-surface: #000000;
--color-border: #090707;
--color-text: #959595;
--color-muted: #777777;
--color-primary: #5A51A1;
--color-on-primary: #FFFFFF;
--color-accent: #5B5B5B;
--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 #696969 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #696969 |
| Muted text | derived | derived |
| Primary | from palette · color 4 | adjusted for contrast · from #483D8B |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #696969 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 19.60:1 | AAA pass 4.5:1 | |
| Text on surface | 17.94:1 | AAA pass 4.5:1 | |
| Muted text on background | 8.27:1 | AAA pass 4.5:1 | |
| Label on primary | 9.07:1 | AAA pass 4.5:1 | |
| Label on accent | 14.85:1 | AAA pass 4.5:1 | |
| Primary on background | 8.46:1 | AAA pass 3:1 | |
| Accent on background | 13.86:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.01:1 | AAA pass 4.5:1 | |
| Text on surface | 7.01:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.69:1 | AA pass 4.5:1 | |
| Label on primary | 6.72:1 | AA pass 4.5:1 | |
| Label on accent | 6.79:1 | AA pass 4.5:1 | |
| Primary on background | 3.13:1 | AA Large pass 3:1 | |
| Accent on background | 3.09: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 | #000000 (Text 1) | #191970 (Text 2) | #2F4F4F (Text 3) | #483D8B (Text 4) | #696969 (Text 5) |
|---|---|---|---|---|---|
| #000000 | Same color | 1.41— | 2.35— | 2.32— | 3.83AA Large |
| #191970 | 1.41— | Same color | 1.66— | 1.64— | 2.70— |
| #2F4F4F | 2.35— | 1.66— | Same color | 1.02— | 1.63— |
| #483D8B | 2.32— | 1.64— | 1.02— | Same color | 1.65— |
| #696969 | 3.83AA Large | 2.70— | 1.63— | 1.65— | Same color |
Shades
Shades and tints (50–950)
