PreviewingGo to this paletteOpen in generator
Code
/* Dijon Mustard — colorset.net */
:root {
--color-1: #CCAA00;
--color-2: #DDBB00;
--color-3: #EECC00;
--color-4: #FFDD00;
--color-5: #FFEE33;
--color-bg: #F9F8E9;
--color-surface: #EFEEDF;
--color-border: #D7D6C3;
--color-text: #5E4D00;
--color-muted: #726B51;
--color-primary: #8C7400;
--color-on-primary: #FFFFFF;
--color-accent: #9E8800;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #140F00;
--color-surface: #1F1905;
--color-border: #342E15;
--color-text: #EEECC5;
--color-muted: #88866A;
--color-primary: #CCAA00;
--color-on-primary: #140F00;
--color-accent: #FFEE33;
--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 #FFEE33 | adjusted for contrast · from #CCAA00 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #CCAA00 | adjusted for contrast · from #FFEE33 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #CCAA00 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #CCAA00 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.74:1 | AAA pass 4.5:1 | |
| Text on surface | 7.08:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 4.55:1 | AA pass 4.5:1 | |
| Label on accent | 5.98:1 | AA pass 4.5:1 | |
| Primary on background | 4.26:1 | AA Large pass 3:1 | |
| Accent on background | 3.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.88:1 | AAA pass 4.5:1 | |
| Text on surface | 14.54:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.16:1 | AA pass 4.5:1 | |
| Label on primary | 8.49:1 | AAA pass 4.5:1 | |
| Label on accent | 15.96:1 | AAA pass 4.5:1 | |
| Primary on background | 8.49:1 | AAA pass 3:1 | |
| Accent on background | 15.96: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 | #CCAA00 (Text 1) | #DDBB00 (Text 2) | #EECC00 (Text 3) | #FFDD00 (Text 4) | #FFEE33 (Text 5) |
|---|---|---|---|---|---|
| #CCAA00 | Same color | 1.20— | 1.42— | 1.67— | 1.88— |
| #DDBB00 | 1.20— | Same color | 1.19— | 1.39— | 1.57— |
| #EECC00 | 1.42— | 1.19— | Same color | 1.17— | 1.32— |
| #FFDD00 | 1.67— | 1.39— | 1.17— | Same color | 1.12— |
| #FFEE33 | 1.88— | 1.57— | 1.32— | 1.12— | Same color |
Shades
Shades and tints (50–950)
