PreviewingGo to this paletteOpen in generator
Code
/* Nebula Drift — colorset.net */
:root {
--color-1: #0D0B1F;
--color-2: #C74BD9;
--color-3: #4FC3F7;
--color-4: #251F45;
--color-5: #ECE8FA;
--color-bg: #ECE8FA;
--color-surface: #F3F0FB;
--color-border: #D4CFE4;
--color-text: #0D0B1F;
--color-muted: #5E5E77;
--color-primary: #BA3DCC;
--color-on-primary: #FFFFFF;
--color-accent: #007DA7;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0D0B1F;
--color-surface: #17152A;
--color-border: #2B2A40;
--color-text: #ECE8FA;
--color-muted: #858292;
--color-primary: #BA3DCC;
--color-on-primary: #FFFFFF;
--color-accent: #4FC3F7;
--color-on-accent: #0D0B1F;
}
}
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 | adjusted for contrast · from #C74BD9 | adjusted for contrast · from #C74BD9 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #4FC3F7 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.12:1 | AAA pass 4.5:1 | |
| Text on surface | 17.21:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.23:1 | AA pass 4.5:1 | |
| Label on primary | 4.54:1 | AA pass 4.5:1 | |
| Label on accent | 4.68:1 | AA pass 4.5:1 | |
| Primary on background | 3.78:1 | AA Large pass 3:1 | |
| Accent on background | 3.89:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.12:1 | AAA pass 4.5:1 | |
| Text on surface | 14.86:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.17:1 | AA pass 4.5:1 | |
| Label on primary | 4.54:1 | AA pass 4.5:1 | |
| Label on accent | 9.66:1 | AAA pass 4.5:1 | |
| Primary on background | 4.27:1 | AA Large pass 3:1 | |
| Accent on background | 9.66: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 | #0D0B1F (Text 1) | #C74BD9 (Text 2) | #4FC3F7 (Text 3) | #251F45 (Text 4) | #ECE8FA (Text 5) |
|---|---|---|---|---|---|
| #0D0B1F | Same color | 5.01AA | 9.66AAA | 1.25— | 16.12AAA |
| #C74BD9 | 5.01AA | Same color | 1.93— | 4.00AA Large | 3.22AA Large |
| #4FC3F7 | 9.66AAA | 1.93— | Same color | 7.70AAA | 1.67— |
| #251F45 | 1.25— | 4.00AA Large | 7.70AAA | Same color | 12.85AAA |
| #ECE8FA | 16.12AAA | 3.22AA Large | 1.67— | 12.85AAA | Same color |
Shades
Shades and tints (50–950)
