PreviewingGo to this paletteOpen in generator
Code
/* Mustard Yellow — colorset.net */
:root {
--color-1: #E1AD01;
--color-2: #FFBF00;
--color-3: #FFCC33;
--color-4: #FFD966;
--color-5: #FFE599;
--color-bg: #FCF7E8;
--color-surface: #F2EDDF;
--color-border: #DBD5C3;
--color-text: #634A00;
--color-muted: #756950;
--color-primary: #937000;
--color-on-primary: #FFFFFF;
--color-accent: #594200;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #160E00;
--color-surface: #201805;
--color-border: #372C15;
--color-text: #F3E6C1;
--color-muted: #8C8268;
--color-primary: #E1AD01;
--color-on-primary: #160E00;
--color-accent: #FFD966;
--color-on-accent: #160E00;
}
}
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 #FFE599 | adjusted for contrast · from #E1AD01 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #E1AD01 | adjusted for contrast · from #FFE599 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #E1AD01 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #E1AD01 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.81:1 | AAA pass 4.5:1 | |
| Text on surface | 7.15:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 4.61:1 | AA pass 4.5:1 | |
| Label on accent | 9.53:1 | AAA pass 4.5:1 | |
| Primary on background | 4.30:1 | AA Large pass 3:1 | |
| Accent on background | 8.90:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.41:1 | AAA pass 4.5:1 | |
| Text on surface | 14.15:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 9.28:1 | AAA pass 4.5:1 | |
| Label on accent | 14.01:1 | AAA pass 4.5:1 | |
| Primary on background | 9.28:1 | AAA pass 3:1 | |
| Accent on background | 14.01: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 | #E1AD01 (Text 1) | #FFBF00 (Text 2) | #FFCC33 (Text 3) | #FFD966 (Text 4) | #FFE599 (Text 5) |
|---|---|---|---|---|---|
| #E1AD01 | Same color | 1.25— | 1.37— | 1.51— | 1.66— |
| #FFBF00 | 1.25— | Same color | 1.10— | 1.21— | 1.33— |
| #FFCC33 | 1.37— | 1.10— | Same color | 1.10— | 1.21— |
| #FFD966 | 1.51— | 1.21— | 1.10— | Same color | 1.10— |
| #FFE599 | 1.66— | 1.33— | 1.21— | 1.10— | Same color |
Shades
Shades and tints (50–950)
