PreviewingGo to this paletteOpen in generator
Code
/* Twilight Suite — colorset.net */
:root {
--color-1: #1A172C;
--color-2: #B0A6ED;
--color-3: #E5848C;
--color-4: #47416B;
--color-5: #EEEDF5;
--color-bg: #EEEDF5;
--color-surface: #F5F5FA;
--color-border: #D5D4DF;
--color-text: #1A172C;
--color-muted: #6A6781;
--color-primary: #B65A63;
--color-on-primary: #FFFFFF;
--color-accent: #47416B;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1A172C;
--color-surface: #242238;
--color-border: #3A374E;
--color-text: #EEEDF5;
--color-muted: #8D8C93;
--color-primary: #E5848C;
--color-on-primary: #1A172C;
--color-accent: #6D6B85;
--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 | 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 #E5848C | from palette · color 3 |
| On primary | derived | derived |
| Accent | from palette · color 4 | adjusted for contrast · from #47416B |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.02:1 | AAA pass 4.5:1 | |
| Text on surface | 16.07:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.67:1 | AA pass 4.5:1 | |
| Label on primary | 4.53:1 | AA pass 4.5:1 | |
| Label on accent | 9.39:1 | AAA pass 4.5:1 | |
| Primary on background | 3.90:1 | AA Large pass 3:1 | |
| Accent on background | 8.08:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.02:1 | AAA pass 4.5:1 | |
| Text on surface | 13.28:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.24:1 | AA pass 4.5:1 | |
| Label on primary | 6.66:1 | AA pass 4.5:1 | |
| Label on accent | 5.13:1 | AA pass 4.5:1 | |
| Primary on background | 6.66:1 | AA pass 3:1 | |
| Accent on background | 3.40: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 | #1A172C (Text 1) | #B0A6ED (Text 2) | #E5848C (Text 3) | #47416B (Text 4) | #EEEDF5 (Text 5) |
|---|---|---|---|---|---|
| #1A172C | Same color | 7.92AAA | 6.66AA | 1.86— | 15.02AAA |
| #B0A6ED | 7.92AAA | Same color | 1.19— | 4.26AA Large | 1.90— |
| #E5848C | 6.66AA | 1.19— | Same color | 3.58AA Large | 2.26— |
| #47416B | 1.86— | 4.26AA Large | 3.58AA Large | Same color | 8.08AAA |
| #EEEDF5 | 15.02AAA | 1.90— | 2.26— | 8.08AAA | Same color |
Shades
Shades and tints (50–950)
