PreviewingGo to this paletteOpen in generator
Code
/* Syntax Night — colorset.net */
:root {
--color-1: #10131A;
--color-2: #7FA7F5;
--color-3: #F0B86E;
--color-4: #283041;
--color-5: #E3E7EF;
--color-bg: #F5F7F9;
--color-surface: #ECEDF0;
--color-border: #D2D5DB;
--color-text: #10131A;
--color-muted: #646871;
--color-primary: #5075BF;
--color-on-primary: #FFFFFF;
--color-accent: #9F6B19;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #10131A;
--color-surface: #1A1D25;
--color-border: #2D323D;
--color-text: #E3E7EF;
--color-muted: #81858C;
--color-primary: #7FA7F5;
--color-on-primary: #10131A;
--color-accent: #F0B86E;
--color-on-accent: #10131A;
}
}
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 #E3E7EF | 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 #7FA7F5 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #F0B86E | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.30:1 | AAA pass 4.5:1 | |
| Text on surface | 15.87:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.20:1 | AA pass 4.5:1 | |
| Label on primary | 4.53:1 | AA pass 4.5:1 | |
| Label on accent | 4.57:1 | AA pass 4.5:1 | |
| Primary on background | 4.22:1 | AA Large pass 3:1 | |
| Accent on background | 4.26:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.99:1 | AAA pass 4.5:1 | |
| Text on surface | 13.59:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 7.74:1 | AAA pass 4.5:1 | |
| Label on accent | 10.43:1 | AAA pass 4.5:1 | |
| Primary on background | 7.74:1 | AAA pass 3:1 | |
| Accent on background | 10.43: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 | #10131A (Text 1) | #7FA7F5 (Text 2) | #F0B86E (Text 3) | #283041 (Text 4) | #E3E7EF (Text 5) |
|---|---|---|---|---|---|
| #10131A | Same color | 7.74AAA | 10.43AAA | 1.41— | 14.99AAA |
| #7FA7F5 | 7.74AAA | Same color | 1.35— | 5.50AA | 1.94— |
| #F0B86E | 10.43AAA | 1.35— | Same color | 7.42AAA | 1.44— |
| #283041 | 1.41— | 5.50AA | 7.42AAA | Same color | 10.66AAA |
| #E3E7EF | 14.99AAA | 1.94— | 1.44— | 10.66AAA | Same color |
Shades
Shades and tints (50–950)
