PreviewingGo to this paletteOpen in generator
Code
/* Night Market — colorset.net */
:root {
--color-1: #14131A;
--color-2: #FF4F79;
--color-3: #FFD166;
--color-4: #2D2B36;
--color-5: #F4F1EA;
--color-bg: #F4F1EA;
--color-surface: #FAF8F4;
--color-border: #DDD8CE;
--color-text: #14131A;
--color-muted: #67666F;
--color-primary: #F84873;
--color-on-primary: #14131A;
--color-accent: #AF8500;
--color-on-accent: #14131A;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #14131A;
--color-surface: #1E1D25;
--color-border: #33323C;
--color-text: #F4F1EA;
--color-muted: #8D8B84;
--color-primary: #FF4F79;
--color-on-primary: #14131A;
--color-accent: #FFD166;
--color-on-accent: #14131A;
}
}
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 #FF4F79 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FF4F79 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.36:1 | AAA pass 4.5:1 | |
| Text on surface | 17.40:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 5.42:1 | AA pass 4.5:1 | |
| Label on accent | 5.43:1 | AA pass 4.5:1 | |
| Primary on background | 3.02:1 | AA Large pass 3:1 | |
| Accent on background | 3.01:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.36:1 | AAA pass 4.5:1 | |
| Text on surface | 14.80:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.41:1 | AA pass 4.5:1 | |
| Label on primary | 5.84:1 | AA pass 4.5:1 | |
| Label on accent | 12.80:1 | AAA pass 4.5:1 | |
| Primary on background | 5.84:1 | AA pass 3:1 | |
| Accent on background | 12.80: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 | #14131A (Text 1) | #FF4F79 (Text 2) | #FFD166 (Text 3) | #2D2B36 (Text 4) | #F4F1EA (Text 5) |
|---|---|---|---|---|---|
| #14131A | Same color | 5.84AA | 12.80AAA | 1.33— | 16.36AAA |
| #FF4F79 | 5.84AA | Same color | 2.19— | 4.40AA Large | 2.80— |
| #FFD166 | 12.80AAA | 2.19— | Same color | 9.64AAA | 1.28— |
| #2D2B36 | 1.33— | 4.40AA Large | 9.64AAA | Same color | 12.33AAA |
| #F4F1EA | 16.36AAA | 2.80— | 1.28— | 12.33AAA | Same color |
Shades
Shades and tints (50–950)
