PreviewingGo to this paletteOpen in generator
Code
/* Sunflower Yellow — colorset.net */
:root {
--color-1: #DAA520;
--color-2: #F4C430;
--color-3: #FFCC00;
--color-4: #FFD700;
--color-5: #FFED4E;
--color-bg: #F9F8E8;
--color-surface: #F0EEDF;
--color-border: #D8D6C3;
--color-text: #644900;
--color-muted: #756850;
--color-primary: #AE8100;
--color-on-primary: #000000;
--color-accent: #837700;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #170E00;
--color-surface: #211805;
--color-border: #372C15;
--color-text: #EFEBC5;
--color-muted: #88856A;
--color-primary: #DAA520;
--color-on-primary: #170E00;
--color-accent: #FFED4E;
--color-on-accent: #170E00;
}
}
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 #FFED4E | adjusted for contrast · from #DAA520 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #DAA520 | adjusted for contrast · from #FFED4E |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #DAA520 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #DAA520 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.86:1 | AAA pass 4.5:1 | |
| Text on surface | 7.21:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.09:1 | AA pass 4.5:1 | |
| Label on primary | 5.94:1 | AA pass 4.5:1 | |
| Label on accent | 4.56:1 | AA pass 4.5:1 | |
| Primary on background | 3.30:1 | AA Large pass 3:1 | |
| Accent on background | 4.26:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.79:1 | AAA pass 4.5:1 | |
| Text on surface | 14.50:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.10:1 | AA pass 4.5:1 | |
| Label on primary | 8.54:1 | AAA pass 4.5:1 | |
| Label on accent | 15.90:1 | AAA pass 4.5:1 | |
| Primary on background | 8.54:1 | AAA pass 3:1 | |
| Accent on background | 15.90: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 | #DAA520 (Text 1) | #F4C430 (Text 2) | #FFCC00 (Text 3) | #FFD700 (Text 4) | #FFED4E (Text 5) |
|---|---|---|---|---|---|
| #DAA520 | Same color | 1.36— | 1.48— | 1.60— | 1.86— |
| #F4C430 | 1.36— | Same color | 1.09— | 1.17— | 1.37— |
| #FFCC00 | 1.48— | 1.09— | Same color | 1.08— | 1.26— |
| #FFD700 | 1.60— | 1.17— | 1.08— | Same color | 1.17— |
| #FFED4E | 1.86— | 1.37— | 1.26— | 1.17— | Same color |
Shades
Shades and tints (50–950)
