PreviewingGo to this paletteOpen in generator
Code
/* Starlit Nebula — colorset.net */
:root {
--color-1: #191970;
--color-2: #4B0082;
--color-3: #8A2BE2;
--color-4: #9370DB;
--color-5: #FFD700;
--color-bg: #FBF7E8;
--color-surface: #F1EEDF;
--color-border: #DAD5C3;
--color-text: #1D2557;
--color-muted: #636A83;
--color-primary: #8A2BE2;
--color-on-primary: #FFFFFF;
--color-accent: #8C7500;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0A0E1F;
--color-surface: #14182A;
--color-border: #272C42;
--color-text: #E4DAB5;
--color-muted: #898267;
--color-primary: #8D30E5;
--color-on-primary: #FFFFFF;
--color-accent: #FFD700;
--color-on-accent: #0A0E1F;
}
}
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 #FFD700 | adjusted for contrast · from #191970 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #191970 | adjusted for contrast · from #FFD700 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | adjusted for contrast · from #8A2BE2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #9370DB | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.46:1 | AAA pass 4.5:1 | |
| Text on surface | 12.40:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 5.96:1 | AA pass 4.5:1 | |
| Label on accent | 4.51:1 | AA pass 4.5:1 | |
| Primary on background | 5.55:1 | AA pass 3:1 | |
| Accent on background | 4.20:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.69:1 | AAA pass 4.5:1 | |
| Text on surface | 12.56:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 5.70:1 | AA pass 4.5:1 | |
| Label on accent | 13.67:1 | AAA pass 4.5:1 | |
| Primary on background | 3.37:1 | AA Large pass 3:1 | |
| Accent on background | 13.67: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 | #191970 (Text 1) | #4B0082 (Text 2) | #8A2BE2 (Text 3) | #9370DB (Text 4) | #FFD700 (Text 5) |
|---|---|---|---|---|---|
| #191970 | Same color | 1.15— | 2.49— | 3.95AA Large | 10.59AAA |
| #4B0082 | 1.15— | Same color | 2.17— | 3.44AA Large | 9.23AAA |
| #8A2BE2 | 2.49— | 2.17— | Same color | 1.58— | 4.25AA Large |
| #9370DB | 3.95AA Large | 3.44AA Large | 1.58— | Same color | 2.68— |
| #FFD700 | 10.59AAA | 9.23AAA | 4.25AA Large | 2.68— | Same color |
Shades
Shades and tints (50–950)
