PreviewingGo to this paletteOpen in generator
Code
/* Late Edition — colorset.net */
:root {
--color-1: #161B22;
--color-2: #F2D06B;
--color-3: #9B8CF2;
--color-4: #2D3440;
--color-5: #EDEFF2;
--color-bg: #EDEFF2;
--color-surface: #F5F6F8;
--color-border: #D2D7DD;
--color-text: #161B22;
--color-muted: #656C74;
--color-primary: #7867C9;
--color-on-primary: #FFFFFF;
--color-accent: #907300;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #161B22;
--color-surface: #20262D;
--color-border: #343B46;
--color-text: #EDEFF2;
--color-muted: #8C8D90;
--color-primary: #9B8CF2;
--color-on-primary: #161B22;
--color-accent: #F2D06B;
--color-on-accent: #161B22;
}
}
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 #9B8CF2 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #2D3440 | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.02:1 | AAA pass 4.5:1 | |
| Text on surface | 16.00:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.61:1 | AA pass 4.5:1 | |
| Label on primary | 4.58:1 | AA pass 4.5:1 | |
| Label on accent | 4.53:1 | AA pass 4.5:1 | |
| Primary on background | 3.98:1 | AA Large pass 3:1 | |
| Accent on background | 3.93:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.02:1 | AAA pass 4.5:1 | |
| Text on surface | 13.24:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.21:1 | AA pass 4.5:1 | |
| Label on primary | 6.12:1 | AA pass 4.5:1 | |
| Label on accent | 11.54:1 | AAA pass 4.5:1 | |
| Primary on background | 6.12:1 | AA pass 3:1 | |
| Accent on background | 11.54: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 | #161B22 (Text 1) | #F2D06B (Text 2) | #9B8CF2 (Text 3) | #2D3440 (Text 4) | #EDEFF2 (Text 5) |
|---|---|---|---|---|---|
| #161B22 | Same color | 11.54AAA | 6.12AA | 1.38— | 15.02AAA |
| #F2D06B | 11.54AAA | Same color | 1.89— | 8.36AAA | 1.30— |
| #9B8CF2 | 6.12AA | 1.89— | Same color | 4.43AA Large | 2.45— |
| #2D3440 | 1.38— | 8.36AAA | 4.43AA Large | Same color | 10.87AAA |
| #EDEFF2 | 15.02AAA | 1.30— | 2.45— | 10.87AAA | Same color |
Shades
Shades and tints (50–950)
