PreviewingGo to this paletteOpen in generator
Code
/* Purple Night — colorset.net */
:root {
--color-1: #1A0B3D;
--color-2: #4C1D95;
--color-3: #7C3AED;
--color-4: #A855F7;
--color-5: #C084FC;
--color-bg: #F9F4FF;
--color-surface: #F1EAF9;
--color-border: #D9D1E2;
--color-text: #1A0B3D;
--color-muted: #6B6882;
--color-primary: #7C3AED;
--color-on-primary: #FFFFFF;
--color-accent: #9458CC;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0C1D;
--color-surface: #191628;
--color-border: #2D2A41;
--color-text: #AC9EBF;
--color-muted: #897D97;
--color-primary: #7C3AED;
--color-on-primary: #FFFFFF;
--color-accent: #685F99;
--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 #C084FC | adjusted for contrast · from #1A0B3D |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #C084FC |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #A855F7 | adjusted for contrast · from #7C3AED |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.75:1 | AAA pass 4.5:1 | |
| Text on surface | 15.42:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 5.70:1 | AA pass 4.5:1 | |
| Label on accent | 4.64:1 | AA pass 4.5:1 | |
| Primary on background | 5.27:1 | AA pass 3:1 | |
| Accent on background | 4.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.70:1 | AAA pass 4.5:1 | |
| Text on surface | 7.08:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 5.70:1 | AA pass 4.5:1 | |
| Label on accent | 5.70:1 | AA pass 4.5:1 | |
| Primary on background | 3.38:1 | AA Large pass 3:1 | |
| Accent on background | 3.38: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 | #1A0B3D (Text 1) | #4C1D95 (Text 2) | #7C3AED (Text 3) | #A855F7 (Text 4) | #C084FC (Text 5) |
|---|---|---|---|---|---|
| #1A0B3D | Same color | 1.65— | 3.18AA Large | 4.58AA | 6.86AA |
| #4C1D95 | 1.65— | Same color | 1.92— | 2.77— | 4.15AA Large |
| #7C3AED | 3.18AA Large | 1.92— | Same color | 1.44— | 2.16— |
| #A855F7 | 4.58AA | 2.77— | 1.44— | Same color | 1.50— |
| #C084FC | 6.86AA | 4.15AA Large | 2.16— | 1.50— | Same color |
Shades
Shades and tints (50–950)
