PreviewingGo to this paletteOpen in generator
Code
/* Buttercup Yellow — colorset.net */
:root {
--color-1: #FFF000;
--color-2: #FFF44F;
--color-3: #FFF799;
--color-4: #FFFACD;
--color-5: #FFFEF0;
--color-bg: #FFFEF0;
--color-surface: #F6F5E7;
--color-border: #DDDCCB;
--color-text: #595406;
--color-muted: #727156;
--color-primary: #988F00;
--color-on-primary: #000000;
--color-accent: #8F8E81;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #121000;
--color-surface: #1C1A06;
--color-border: #312F16;
--color-text: #FFFEF0;
--color-muted: #908F83;
--color-primary: #FFF000;
--color-on-primary: #121000;
--color-accent: #FFF799;
--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 5 | adjusted for contrast · from #FFF000 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #FFF000 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FFF000 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FFF799 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.67:1 | AAA pass 4.5:1 | |
| Text on surface | 7.10:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.91:1 | AA pass 4.5:1 | |
| Label on primary | 6.26:1 | AA pass 4.5:1 | |
| Label on accent | 6.35:1 | AA pass 4.5:1 | |
| Primary on background | 3.30:1 | AA Large pass 3:1 | |
| Accent on background | 3.26:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.81:1 | AAA pass 4.5:1 | |
| Text on surface | 17.24:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.86:1 | AA pass 4.5:1 | |
| Label on primary | 16.11:1 | AAA pass 4.5:1 | |
| Label on accent | 17.29:1 | AAA pass 4.5:1 | |
| Primary on background | 16.11:1 | AAA pass 3:1 | |
| Accent on background | 17.29: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 | #FFF000 (Text 1) | #FFF44F (Text 2) | #FFF799 (Text 3) | #FFFACD (Text 4) | #FFFEF0 (Text 5) |
|---|---|---|---|---|---|
| #FFF000 | Same color | 1.03— | 1.07— | 1.12— | 1.17— |
| #FFF44F | 1.03— | Same color | 1.04— | 1.08— | 1.13— |
| #FFF799 | 1.07— | 1.04— | Same color | 1.04— | 1.09— |
| #FFFACD | 1.12— | 1.08— | 1.04— | Same color | 1.04— |
| #FFFEF0 | 1.17— | 1.13— | 1.09— | 1.04— | Same color |
Shades
Shades and tints (50–950)
