PreviewingGo to this paletteOpen in generator
Code
/* Polished Brass — colorset.net */
:root {
--color-1: #B5A642;
--color-2: #C7B446;
--color-3: #D4AF37;
--color-4: #E6C35C;
--color-5: #F4D878;
--color-bg: #FBF7E8;
--color-surface: #F2EEDF;
--color-border: #DAD5C3;
--color-text: #574D00;
--color-muted: #716D53;
--color-primary: #907300;
--color-on-primary: #FFFFFF;
--color-accent: #998A1F;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #131000;
--color-surface: #1D1A06;
--color-border: #322E16;
--color-text: #E4D9B5;
--color-muted: #8A8267;
--color-primary: #D4AF37;
--color-on-primary: #131000;
--color-accent: #F4D878;
--color-on-accent: #131000;
}
}
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 #F4D878 | adjusted for contrast · from #B5A642 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #B5A642 | adjusted for contrast · from #F4D878 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #B5A642 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #B5A642 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.93:1 | AAA pass 4.5:1 | |
| Text on surface | 7.33:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.88:1 | AA pass 4.5:1 | |
| Label on primary | 4.53:1 | AA pass 4.5:1 | |
| Label on accent | 6.01:1 | AA pass 4.5:1 | |
| Primary on background | 4.22:1 | AA Large pass 3:1 | |
| Accent on background | 3.26:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.52:1 | AAA pass 4.5:1 | |
| Text on surface | 12.38:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 9.06:1 | AAA pass 4.5:1 | |
| Label on accent | 13.56:1 | AAA pass 4.5:1 | |
| Primary on background | 9.06:1 | AAA pass 3:1 | |
| Accent on background | 13.56: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 | #B5A642 (Text 1) | #C7B446 (Text 2) | #D4AF37 (Text 3) | #E6C35C (Text 4) | #F4D878 (Text 5) |
|---|---|---|---|---|---|
| #B5A642 | Same color | 1.18— | 1.18— | 1.45— | 1.76— |
| #C7B446 | 1.18— | Same color | 1.01— | 1.23— | 1.49— |
| #D4AF37 | 1.18— | 1.01— | Same color | 1.23— | 1.50— |
| #E6C35C | 1.45— | 1.23— | 1.23— | Same color | 1.21— |
| #F4D878 | 1.76— | 1.49— | 1.50— | 1.21— | Same color |
Shades
Shades and tints (50–950)
