PreviewingGo to this paletteOpen in generator
Code
/* Midnight Carnival Tent — colorset.net */
:root {
--color-1: #1A0F14;
--color-2: #C1121F;
--color-3: #F4D35E;
--color-4: #3D2530;
--color-5: #F6EFE4;
--color-bg: #F6EFE4;
--color-surface: #FBF7F0;
--color-border: #DFD6C8;
--color-text: #1A0F14;
--color-muted: #706167;
--color-primary: #C1121F;
--color-on-primary: #FFFFFF;
--color-accent: #A48700;
--color-on-accent: #1A0F14;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1A0F14;
--color-surface: #25191E;
--color-border: #3C2C33;
--color-text: #F6EFE4;
--color-muted: #8F897F;
--color-primary: #CC2329;
--color-on-primary: #FFFFFF;
--color-accent: #F4D35E;
--color-on-accent: #1A0F14;
}
}
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 | from palette · color 2 | adjusted for contrast · from #C1121F |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #C1121F | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.38:1 | AAA pass 4.5:1 | |
| Text on surface | 17.52:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.11:1 | AA pass 4.5:1 | |
| Label on primary | 6.22:1 | AA pass 4.5:1 | |
| Label on accent | 5.39:1 | AA pass 4.5:1 | |
| Primary on background | 5.45:1 | AA pass 3:1 | |
| Accent on background | 3.04:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.38:1 | AAA pass 4.5:1 | |
| Text on surface | 14.87:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.39:1 | AA pass 4.5:1 | |
| Label on primary | 5.47:1 | AA pass 4.5:1 | |
| Label on accent | 12.76:1 | AAA pass 4.5:1 | |
| Primary on background | 3.42:1 | AA Large pass 3:1 | |
| Accent on background | 12.76: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 | #1A0F14 (Text 1) | #C1121F (Text 2) | #F4D35E (Text 3) | #3D2530 (Text 4) | #F6EFE4 (Text 5) |
|---|---|---|---|---|---|
| #1A0F14 | Same color | 3.01AA Large | 12.76AAA | 1.34— | 16.38AAA |
| #C1121F | 3.01AA Large | Same color | 4.25AA Large | 2.24— | 5.45AA |
| #F4D35E | 12.76AAA | 4.25AA Large | Same color | 9.51AAA | 1.28— |
| #3D2530 | 1.34— | 2.24— | 9.51AAA | Same color | 12.21AAA |
| #F6EFE4 | 16.38AAA | 5.45AA | 1.28— | 12.21AAA | Same color |
Shades
Shades and tints (50–950)
