PreviewingGo to this paletteOpen in generator
Code
/* Banana Yellow — colorset.net */
:root {
--color-1: #FFFF99;
--color-2: #FFFACD;
--color-3: #F0E68C;
--color-4: #EEE8AA;
--color-5: #DDD26A;
--color-bg: #F8F8E9;
--color-surface: #EEEFE0;
--color-border: #D6D6C4;
--color-text: #564F00;
--color-muted: #6E6B51;
--color-primary: #827700;
--color-on-primary: #FFFFFF;
--color-accent: #8F8A61;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #121000;
--color-surface: #1C1A06;
--color-border: #312F16;
--color-text: #FAFBD5;
--color-muted: #8D8E72;
--color-primary: #DDD26A;
--color-on-primary: #121000;
--color-accent: #FFFF99;
--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 | adjusted for contrast · from #FFFACD | adjusted for contrast · from #DDD26A |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #DDD26A | adjusted for contrast · from #FFFACD |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #DDD26A | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #DDD26A | from palette · color 1 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.79:1 | AAA pass 4.5:1 | |
| Text on surface | 7.18:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 4.58:1 | AA pass 4.5:1 | |
| Label on accent | 5.98:1 | AA pass 4.5:1 | |
| Primary on background | 4.27:1 | AA Large pass 3:1 | |
| Accent on background | 3.28: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.52:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.68:1 | AA pass 4.5:1 | |
| Label on primary | 12.28:1 | AAA pass 4.5:1 | |
| Label on accent | 18.20:1 | AAA pass 4.5:1 | |
| Primary on background | 12.28:1 | AAA pass 3:1 | |
| Accent on background | 18.20: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 | #FFFF99 (Text 1) | #FFFACD (Text 2) | #F0E68C (Text 3) | #EEE8AA (Text 4) | #DDD26A (Text 5) |
|---|---|---|---|---|---|
| #FFFF99 | Same color | 1.01— | 1.22— | 1.19— | 1.48— |
| #FFFACD | 1.01— | Same color | 1.21— | 1.18— | 1.47— |
| #F0E68C | 1.22— | 1.21— | Same color | 1.02— | 1.21— |
| #EEE8AA | 1.19— | 1.18— | 1.02— | Same color | 1.24— |
| #DDD26A | 1.48— | 1.47— | 1.21— | 1.24— | Same color |
Shades
Shades and tints (50–950)
