PreviewingGo to this paletteOpen in generator
Code
/* Vintage Yellow — colorset.net */
:root {
--color-1: #F7DC6F;
--color-2: #F4D03F;
--color-3: #F1C40F;
--color-4: #D4AC0D;
--color-5: #B7950B;
--color-bg: #FBF7E8;
--color-surface: #F1EEDF;
--color-border: #DAD5C3;
--color-text: #5E4B00;
--color-muted: #726A50;
--color-primary: #8D7200;
--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: #E6DDB8;
--color-muted: #8A8469;
--color-primary: #B7950B;
--color-on-primary: #150F00;
--color-accent: #F7DC6F;
--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 #F7DC6F | adjusted for contrast · from #B7950B |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #B7950B | adjusted for contrast · from #F7DC6F |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #B7950B | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #B7950B | 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.27:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 4.63:1 | AA pass 4.5:1 | |
| Label on accent | 5.95:1 | AA pass 4.5:1 | |
| Primary on background | 4.31:1 | AA Large pass 3:1 | |
| Accent on background | 3.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.00:1 | AAA pass 4.5:1 | |
| Text on surface | 12.84:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 6.65:1 | AA pass 4.5:1 | |
| Label on accent | 14.02:1 | AAA pass 4.5:1 | |
| Primary on background | 6.65:1 | AA pass 3:1 | |
| Accent on background | 14.02: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 | #F7DC6F (Text 1) | #F4D03F (Text 2) | #F1C40F (Text 3) | #D4AC0D (Text 4) | #B7950B (Text 5) |
|---|---|---|---|---|---|
| #F7DC6F | Same color | 1.11— | 1.22— | 1.59— | 2.11— |
| #F4D03F | 1.11— | Same color | 1.10— | 1.44— | 1.91— |
| #F1C40F | 1.22— | 1.10— | Same color | 1.30— | 1.73— |
| #D4AC0D | 1.59— | 1.44— | 1.30— | Same color | 1.33— |
| #B7950B | 2.11— | 1.91— | 1.73— | 1.33— | Same color |
Shades
Shades and tints (50–950)
