PreviewingGo to this paletteOpen in generator
Code
/* Luxury Black — colorset.net */
:root {
--color-1: #000000;
--color-2: #4A235A;
--color-3: #8E44AD;
--color-4: #BB8FCE;
--color-5: #D7BDE2;
--color-bg: #FBF3FF;
--color-surface: #F2EAF6;
--color-border: #DBD1DF;
--color-text: #000000;
--color-muted: #4A4A4A;
--color-primary: #8E44AD;
--color-on-primary: #FFFFFF;
--color-accent: #987FA2;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #000000;
--color-surface: #000000;
--color-border: #090707;
--color-text: #D5BFDE;
--color-muted: #827188;
--color-primary: #8E44AD;
--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 #D7BDE2 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #D7BDE2 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #BB8FCE | adjusted for contrast · from #4A235A |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 19.37:1 | AAA pass 4.5:1 | |
| Text on surface | 17.88:1 | AAA pass 4.5:1 | |
| Muted text on background | 8.17:1 | AAA pass 4.5:1 | |
| Label on primary | 5.87:1 | AA pass 4.5:1 | |
| Label on accent | 5.89:1 | AA pass 4.5:1 | |
| Primary on background | 5.41:1 | AA pass 3:1 | |
| Accent on background | 3.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.34:1 | AAA pass 4.5:1 | |
| Text on surface | 12.34:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.67:1 | AA pass 4.5:1 | |
| Label on primary | 5.87:1 | AA pass 4.5:1 | |
| Label on accent | 6.79:1 | AA pass 4.5:1 | |
| Primary on background | 3.58: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) | #4A235A (Text 2) | #8E44AD (Text 3) | #BB8FCE (Text 4) | #D7BDE2 (Text 5) |
|---|---|---|---|---|---|
| #000000 | Same color | 1.68— | 3.58AA Large | 7.93AAA | 12.27AAA |
| #4A235A | 1.68— | Same color | 2.13— | 4.72AA | 7.30AAA |
| #8E44AD | 3.58AA Large | 2.13— | Same color | 2.22— | 3.43AA Large |
| #BB8FCE | 7.93AAA | 4.72AA | 2.22— | Same color | 1.55— |
| #D7BDE2 | 12.27AAA | 7.30AAA | 3.43AA Large | 1.55— | Same color |
Shades
Shades and tints (50–950)
