PreviewingGo to this paletteOpen in generator
Code
/* Old Brass — colorset.net */
:root {
--color-1: #F4D03F;
--color-2: #F1C40F;
--color-3: #D4AC0D;
--color-4: #B7950B;
--color-5: #9A7D0A;
--color-bg: #FBF7E8;
--color-surface: #F2EEDF;
--color-border: #DAD5C3;
--color-text: #5E4B00;
--color-muted: #726950;
--color-primary: #8D7100;
--color-on-primary: #FFFFFF;
--color-accent: #A58500;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #150F00;
--color-surface: #1F1905;
--color-border: #352D15;
--color-text: #DDD3AE;
--color-muted: #8C8469;
--color-primary: #8D7100;
--color-on-primary: #FFFFFF;
--color-accent: #F4D03F;
--color-on-accent: #150F00;
}
}
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 #F4D03F | adjusted for contrast · from #9A7D0A |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #9A7D0A | adjusted for contrast · from #F4D03F |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #9A7D0A | adjusted for contrast · from #9A7D0A |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #9A7D0A | from palette · color 1 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.88:1 | AAA pass 4.5:1 | |
| Text on surface | 7.28:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 4.67:1 | AA pass 4.5:1 | |
| Label on accent | 5.95:1 | AA pass 4.5:1 | |
| Primary on background | 4.35:1 | AA Large pass 3:1 | |
| Accent on background | 3.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.73:1 | AAA pass 4.5:1 | |
| Text on surface | 11.67:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.11:1 | AA pass 4.5:1 | |
| Label on primary | 4.67:1 | AA pass 4.5:1 | |
| Label on accent | 12.67:1 | AAA pass 4.5:1 | |
| Primary on background | 4.09:1 | AA Large pass 3:1 | |
| Accent on background | 12.67: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 | #F4D03F (Text 1) | #F1C40F (Text 2) | #D4AC0D (Text 3) | #B7950B (Text 4) | #9A7D0A (Text 5) |
|---|---|---|---|---|---|
| #F4D03F | Same color | 1.10— | 1.44— | 1.91— | 2.62— |
| #F1C40F | 1.10— | Same color | 1.30— | 1.73— | 2.38— |
| #D4AC0D | 1.44— | 1.30— | Same color | 1.33— | 1.83— |
| #B7950B | 1.91— | 1.73— | 1.33— | Same color | 1.38— |
| #9A7D0A | 2.62— | 2.38— | 1.83— | 1.38— | Same color |
Shades
Shades and tints (50–950)
