PreviewingGo to this paletteOpen in generator
Code
/* Night City — colorset.net */
:root {
--color-1: #0B0F14;
--color-2: #F6E03B;
--color-3: #FF2A6D;
--color-4: #1F2A36;
--color-5: #E6F1F5;
--color-bg: #E6F1F5;
--color-surface: #F1F7FA;
--color-border: #CAD9DF;
--color-text: #0B0F14;
--color-muted: #5D6369;
--color-primary: #E7005C;
--color-on-primary: #FFFFFF;
--color-accent: #9A8A00;
--color-on-accent: #0B0F14;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0B0F14;
--color-surface: #15191E;
--color-border: #272E36;
--color-text: #E6F1F5;
--color-muted: #7F898C;
--color-primary: #E7005C;
--color-on-primary: #FFFFFF;
--color-accent: #F6E03B;
--color-on-accent: #0B0F14;
}
}
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 #FF2A6D | adjusted for contrast · from #FF2A6D |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #F6E03B | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.72:1 | AAA pass 4.5:1 | |
| Text on surface | 17.78:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.29:1 | AA pass 4.5:1 | |
| Label on primary | 4.61:1 | AA pass 4.5:1 | |
| Label on accent | 5.50:1 | AA pass 4.5:1 | |
| Primary on background | 4.01:1 | AA Large pass 3:1 | |
| Accent on background | 3.04:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.72:1 | AAA pass 4.5:1 | |
| Text on surface | 15.35:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.36:1 | AA pass 4.5:1 | |
| Label on primary | 4.61:1 | AA pass 4.5:1 | |
| Label on accent | 14.32:1 | AAA pass 4.5:1 | |
| Primary on background | 4.17:1 | AA Large pass 3:1 | |
| Accent on background | 14.32: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 | #0B0F14 (Text 1) | #F6E03B (Text 2) | #FF2A6D (Text 3) | #1F2A36 (Text 4) | #E6F1F5 (Text 5) |
|---|---|---|---|---|---|
| #0B0F14 | Same color | 14.32AAA | 5.31AA | 1.32— | 16.72AAA |
| #F6E03B | 14.32AAA | Same color | 2.70— | 10.84AAA | 1.17— |
| #FF2A6D | 5.31AA | 2.70— | Same color | 4.02AA Large | 3.15AA Large |
| #1F2A36 | 1.32— | 10.84AAA | 4.02AA Large | Same color | 12.66AAA |
| #E6F1F5 | 16.72AAA | 1.17— | 3.15AA Large | 12.66AAA | Same color |
Shades
Shades and tints (50–950)
