PreviewingGo to this paletteOpen in generator
Code
/* Starlight — colorset.net */
:root {
--color-1: #F3F2FA;
--color-2: #3B3B98;
--color-3: #E8A23B;
--color-4: #D4D3EA;
--color-5: #15142B;
--color-bg: #F3F2FA;
--color-surface: #FAFAFF;
--color-border: #DAD9E4;
--color-text: #15142B;
--color-muted: #676781;
--color-primary: #3B3B98;
--color-on-primary: #FFFFFF;
--color-accent: #BF7D00;
--color-on-accent: #15142B;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #15142B;
--color-surface: #1F1F37;
--color-border: #34344B;
--color-text: #F3F2FA;
--color-muted: #8E8D94;
--color-primary: #5C62C3;
--color-on-primary: #FFFFFF;
--color-accent: #E8A23B;
--color-on-accent: #15142B;
}
}
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 1 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | adjusted for contrast · from #3B3B98 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #E8A23B | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.19:1 | AAA pass 4.5:1 | |
| Text on surface | 17.30:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.93:1 | AA pass 4.5:1 | |
| Label on primary | 9.27:1 | AAA pass 4.5:1 | |
| Label on accent | 5.27:1 | AA pass 4.5:1 | |
| Primary on background | 8.34:1 | AAA pass 3:1 | |
| Accent on background | 3.07:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.19:1 | AAA pass 4.5:1 | |
| Text on surface | 14.43:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.47:1 | AA pass 4.5:1 | |
| Label on primary | 5.26:1 | AA pass 4.5:1 | |
| Label on accent | 8.28:1 | AAA pass 4.5:1 | |
| Primary on background | 3.42:1 | AA Large pass 3:1 | |
| Accent on background | 8.28: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 | #F3F2FA (Text 1) | #3B3B98 (Text 2) | #E8A23B (Text 3) | #D4D3EA (Text 4) | #15142B (Text 5) |
|---|---|---|---|---|---|
| #F3F2FA | Same color | 8.34AAA | 1.96— | 1.32— | 16.19AAA |
| #3B3B98 | 8.34AAA | Same color | 4.27AA Large | 6.32AA | 1.94— |
| #E8A23B | 1.96— | 4.27AA Large | Same color | 1.48— | 8.28AAA |
| #D4D3EA | 1.32— | 6.32AA | 1.48— | Same color | 12.26AAA |
| #15142B | 16.19AAA | 1.94— | 8.28AAA | 12.26AAA | Same color |
Shades
Shades and tints (50–950)
