PreviewingGo to this paletteOpen in generator
Code
/* Buttercream Yellow — colorset.net */
:root {
--color-1: #F3DE8A;
--color-2: #F5E6A7;
--color-3: #FFF4B8;
--color-4: #FFF9C4;
--color-5: #FFFACD;
--color-bg: #F9F7EA;
--color-surface: #EFEEE1;
--color-border: #D7D6C5;
--color-text: #5B4C00;
--color-muted: #716A50;
--color-primary: #877318;
--color-on-primary: #FFFFFF;
--color-accent: #8F8A61;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #140F00;
--color-surface: #1E1905;
--color-border: #342E15;
--color-text: #FEFAD3;
--color-muted: #908D71;
--color-primary: #F3DE8A;
--color-on-primary: #140F00;
--color-accent: #B9A863;
--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 #FFFACD | adjusted for contrast · from #F3DE8A |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #F3DE8A | adjusted for contrast · from #FFFACD |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #F3DE8A | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #F3DE8A | adjusted for contrast · from #F3DE8A |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.88:1 | AAA pass 4.5:1 | |
| Text on surface | 7.26:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 4.67:1 | AA pass 4.5:1 | |
| Label on accent | 5.98:1 | AA pass 4.5:1 | |
| Primary on background | 4.34:1 | AA Large pass 3:1 | |
| Accent on background | 3.27:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.06:1 | AAA pass 4.5:1 | |
| Text on surface | 16.57:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.68:1 | AA pass 4.5:1 | |
| Label on primary | 14.23:1 | AAA pass 4.5:1 | |
| Label on accent | 8.05:1 | AAA pass 4.5:1 | |
| Primary on background | 14.23:1 | AAA pass 3:1 | |
| Accent on background | 8.05: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 | #F3DE8A (Text 1) | #F5E6A7 (Text 2) | #FFF4B8 (Text 3) | #FFF9C4 (Text 4) | #FFFACD (Text 5) |
|---|---|---|---|---|---|
| #F3DE8A | Same color | 1.07— | 1.21— | 1.25— | 1.27— |
| #F5E6A7 | 1.07— | Same color | 1.13— | 1.17— | 1.18— |
| #FFF4B8 | 1.21— | 1.13— | Same color | 1.04— | 1.05— |
| #FFF9C4 | 1.25— | 1.17— | 1.04— | Same color | 1.01— |
| #FFFACD | 1.27— | 1.18— | 1.05— | 1.01— | Same color |
Shades
Shades and tints (50–950)
