PreviewingGo to this paletteOpen in generator
Code
/* Buttermilk Yellow — colorset.net */
:root {
--color-1: #FFF4C7;
--color-2: #FFF8DB;
--color-3: #FFFAE5;
--color-4: #FFFCEF;
--color-5: #FFFEF8;
--color-bg: #FFFEF8;
--color-surface: #F6F5EF;
--color-border: #DEDCD2;
--color-text: #5B5129;
--color-muted: #766F55;
--color-primary: #988E64;
--color-on-primary: #000000;
--color-accent: #645C3B;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120F04;
--color-surface: #1D190D;
--color-border: #322E1D;
--color-text: #FFFEF8;
--color-muted: #908F8A;
--color-primary: #FFF4C7;
--color-on-primary: #120F04;
--color-accent: #C5BC98;
--color-on-accent: #120F04;
}
}
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 | from palette · color 5 | adjusted for contrast · from #FFF4C7 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #FFF4C7 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FFF4C7 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FFF4C7 | adjusted for contrast · from #FFF4C7 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.83:1 | AAA pass 4.5:1 | |
| Text on surface | 7.24:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 6.39:1 | AA pass 4.5:1 | |
| Label on accent | 6.70:1 | AA pass 4.5:1 | |
| Primary on background | 3.25:1 | AA Large pass 3:1 | |
| Accent on background | 6.63:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.97:1 | AAA pass 4.5:1 | |
| Text on surface | 17.36:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.92:1 | AA pass 4.5:1 | |
| Label on primary | 17.35:1 | AAA pass 4.5:1 | |
| Label on accent | 10.06:1 | AAA pass 4.5:1 | |
| Primary on background | 17.35:1 | AAA pass 3:1 | |
| Accent on background | 10.06: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 | #FFF4C7 (Text 1) | #FFF8DB (Text 2) | #FFFAE5 (Text 3) | #FFFCEF (Text 4) | #FFFEF8 (Text 5) |
|---|---|---|---|---|---|
| #FFF4C7 | Same color | 1.04— | 1.05— | 1.07— | 1.09— |
| #FFF8DB | 1.04— | Same color | 1.02— | 1.04— | 1.05— |
| #FFFAE5 | 1.05— | 1.02— | Same color | 1.02— | 1.04— |
| #FFFCEF | 1.07— | 1.04— | 1.02— | Same color | 1.02— |
| #FFFEF8 | 1.09— | 1.05— | 1.04— | 1.02— | Same color |
Shades
Shades and tints (50–950)
