PreviewingGo to this paletteOpen in generator
Code
/* Mustard Gold — colorset.net */
:root {
--color-1: #998000;
--color-2: #B39900;
--color-3: #CCB300;
--color-4: #E6CC00;
--color-5: #FFE600;
--color-bg: #F9F8E8;
--color-surface: #F0EEDF;
--color-border: #D8D6C3;
--color-text: #5D4D00;
--color-muted: #726B50;
--color-primary: #8B7400;
--color-on-primary: #FFFFFF;
--color-accent: #998A00;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #140F00;
--color-surface: #1E1905;
--color-border: #342E15;
--color-text: #EAE5BF;
--color-muted: #868267;
--color-primary: #8B7400;
--color-on-primary: #FFFFFF;
--color-accent: #FFE600;
--color-on-accent: #140F00;
}
}
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 #FFE600 | adjusted for contrast · from #998000 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #998000 | adjusted for contrast · from #FFE600 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #998000 | adjusted for contrast · from #998000 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #998000 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.76:1 | AAA pass 4.5:1 | |
| Text on surface | 7.12:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 4.57:1 | AA pass 4.5:1 | |
| Label on accent | 5.99:1 | AA pass 4.5:1 | |
| Primary on background | 4.27:1 | AA Large pass 3:1 | |
| Accent on background | 3.28:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.99:1 | AAA pass 4.5:1 | |
| Text on surface | 13.76:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.92:1 | AA pass 4.5:1 | |
| Label on primary | 4.57:1 | AA pass 4.5:1 | |
| Label on accent | 15.09:1 | AAA pass 4.5:1 | |
| Primary on background | 4.19:1 | AA Large pass 3:1 | |
| Accent on background | 15.09: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 | #998000 (Text 1) | #B39900 (Text 2) | #CCB300 (Text 3) | #E6CC00 (Text 4) | #FFE600 (Text 5) |
|---|---|---|---|---|---|
| #998000 | Same color | 1.37— | 1.84— | 2.39— | 3.04AA Large |
| #B39900 | 1.37— | Same color | 1.34— | 1.74— | 2.22— |
| #CCB300 | 1.84— | 1.34— | Same color | 1.30— | 1.65— |
| #E6CC00 | 2.39— | 1.74— | 1.30— | Same color | 1.27— |
| #FFE600 | 3.04AA Large | 2.22— | 1.65— | 1.27— | Same color |
Shades
Shades and tints (50–950)
