PreviewingGo to this paletteOpen in generator
Code
/* Buttercup — colorset.net */
:root {
--color-1: #FFFDE7;
--color-2: #FFF9C4;
--color-3: #FFF59D;
--color-4: #FFF176;
--color-5: #FFEE58;
--color-bg: #FFFDE7;
--color-surface: #F6F4DE;
--color-border: #DDDBC2;
--color-text: #5B5304;
--color-muted: #727055;
--color-primary: #9B8D00;
--color-on-primary: #000000;
--color-accent: #8F8D79;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #121000;
--color-surface: #1C1A06;
--color-border: #312F16;
--color-text: #FFFDE7;
--color-muted: #918F7B;
--color-primary: #FFEE58;
--color-on-primary: #121000;
--color-accent: #FFF59D;
--color-on-accent: #121000;
}
}
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 1 | adjusted for contrast · from #FFEE58 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #FFEE58 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FFEE58 | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FFEE58 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.62:1 | AAA pass 4.5:1 | |
| Text on surface | 7.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.91:1 | AA pass 4.5:1 | |
| Label on primary | 6.20:1 | AA pass 4.5:1 | |
| Label on accent | 6.25:1 | AA pass 4.5:1 | |
| Primary on background | 3.30: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.60:1 | AAA pass 4.5:1 | |
| Text on surface | 17.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.84:1 | AA pass 4.5:1 | |
| Label on primary | 16.02:1 | AAA pass 4.5:1 | |
| Label on accent | 17.09:1 | AAA pass 4.5:1 | |
| Primary on background | 16.02:1 | AAA pass 3:1 | |
| Accent on background | 17.09: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 | #FFFDE7 (Text 1) | #FFF9C4 (Text 2) | #FFF59D (Text 3) | #FFF176 (Text 4) | #FFEE58 (Text 5) |
|---|---|---|---|---|---|
| #FFFDE7 | Same color | 1.04— | 1.09— | 1.13— | 1.16— |
| #FFF9C4 | 1.04— | Same color | 1.04— | 1.08— | 1.11— |
| #FFF59D | 1.09— | 1.04— | Same color | 1.04— | 1.07— |
| #FFF176 | 1.13— | 1.08— | 1.04— | Same color | 1.03— |
| #FFEE58 | 1.16— | 1.11— | 1.07— | 1.03— | Same color |
Shades
Shades and tints (50–950)
