PreviewingGo to this paletteOpen in generator
Code
/* Gilded Midnight — colorset.net */
:root {
--color-1: #0D0D0F;
--color-2: #D4AF37;
--color-3: #2A2A2E;
--color-4: #8C7A3F;
--color-5: #F4EFE2;
--color-bg: #F4EFE2;
--color-surface: #F9F6EF;
--color-border: #DDD6C6;
--color-text: #0D0D0F;
--color-muted: #616163;
--color-primary: #907300;
--color-on-primary: #FFFFFF;
--color-accent: #2A2A2E;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0D0D0F;
--color-surface: #171719;
--color-border: #2B2B30;
--color-text: #F4EFE2;
--color-muted: #8A867A;
--color-primary: #D4AF37;
--color-on-primary: #0D0D0F;
--color-accent: #666668;
--color-on-accent: #FFFFFF;
}
}
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 #8C7A3F | from palette · color 2 |
| On primary | derived | derived |
| Accent | from palette · color 3 | adjusted for contrast · from #8C7A3F |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.91:1 | AAA pass 4.5:1 | |
| Text on surface | 17.99:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.38:1 | AA pass 4.5:1 | |
| Label on primary | 4.53:1 | AA pass 4.5:1 | |
| Label on accent | 14.29:1 | AAA pass 4.5:1 | |
| Primary on background | 3.94:1 | AA Large pass 3:1 | |
| Accent on background | 12.45:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.91:1 | AAA pass 4.5:1 | |
| Text on surface | 15.59:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.34:1 | AA pass 4.5:1 | |
| Label on primary | 9.23:1 | AAA pass 4.5:1 | |
| Label on accent | 5.73:1 | AA pass 4.5:1 | |
| Primary on background | 9.23:1 | AAA pass 3:1 | |
| Accent on background | 3.39:1 | AA Large 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 | #0D0D0F (Text 1) | #D4AF37 (Text 2) | #2A2A2E (Text 3) | #8C7A3F (Text 4) | #F4EFE2 (Text 5) |
|---|---|---|---|---|---|
| #0D0D0F | Same color | 9.23AAA | 1.36— | 4.60AA | 16.91AAA |
| #D4AF37 | 9.23AAA | Same color | 6.80AA | 2.01— | 1.83— |
| #2A2A2E | 1.36— | 6.80AA | Same color | 3.38AA Large | 12.45AAA |
| #8C7A3F | 4.60AA | 2.01— | 3.38AA Large | Same color | 3.68AA Large |
| #F4EFE2 | 16.91AAA | 1.83— | 12.45AAA | 3.68AA Large | Same color |
Shades
Shades and tints (50–950)
