PreviewingGo to this paletteOpen in generator
Code
/* Butter Yellow — colorset.net */
:root {
--color-1: #FFC107;
--color-2: #FFD54F;
--color-3: #FFE082;
--color-4: #FFECB3;
--color-5: #FFF8E1;
--color-bg: #FFF8E1;
--color-surface: #F6EFD8;
--color-border: #DED6BC;
--color-text: #644A00;
--color-muted: #766951;
--color-primary: #AE8300;
--color-on-primary: #000000;
--color-accent: #8F8974;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #160E00;
--color-surface: #211805;
--color-border: #372C15;
--color-text: #FFF8E1;
--color-muted: #928C77;
--color-primary: #FFC107;
--color-on-primary: #160E00;
--color-accent: #FFECB3;
--color-on-accent: #160E00;
}
}
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 #FFC107 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #FFC107 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FFC107 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FFC107 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.84:1 | AAA pass 4.5:1 | |
| Text on surface | 7.24:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 6.05:1 | AA pass 4.5:1 | |
| Label on accent | 6.00:1 | AA pass 4.5:1 | |
| Primary on background | 3.27:1 | AA Large pass 3:1 | |
| Accent on background | 3.30:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.02:1 | AAA pass 4.5:1 | |
| Text on surface | 16.51:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.69:1 | AA pass 4.5:1 | |
| Label on primary | 11.74:1 | AAA pass 4.5:1 | |
| Label on accent | 16.32:1 | AAA pass 4.5:1 | |
| Primary on background | 11.74:1 | AAA pass 3:1 | |
| Accent on background | 16.32: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 | #FFC107 (Text 1) | #FFD54F (Text 2) | #FFE082 (Text 3) | #FFECB3 (Text 4) | #FFF8E1 (Text 5) |
|---|---|---|---|---|---|
| #FFC107 | Same color | 1.16— | 1.26— | 1.39— | 1.53— |
| #FFD54F | 1.16— | Same color | 1.09— | 1.20— | 1.33— |
| #FFE082 | 1.26— | 1.09— | Same color | 1.10— | 1.22— |
| #FFECB3 | 1.39— | 1.20— | 1.10— | Same color | 1.10— |
| #FFF8E1 | 1.53— | 1.33— | 1.22— | 1.10— | Same color |
Shades
Shades and tints (50–950)
