PreviewingGo to this paletteOpen in generator
Code
/* Sunflower — colorset.net */
:root {
--color-1: #FFD700;
--color-2: #FFE135;
--color-3: #FFEF00;
--color-4: #FFF44F;
--color-5: #FFFF99;
--color-bg: #F8F8E9;
--color-surface: #EEEFE0;
--color-border: #D6D6C4;
--color-text: #5E4E00;
--color-muted: #726B51;
--color-primary: #958B00;
--color-on-primary: #000000;
--color-accent: #8C7500;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #140F00;
--color-surface: #1E1905;
--color-border: #342E15;
--color-text: #FAFBD5;
--color-muted: #8D8E72;
--color-primary: #FFEF00;
--color-on-primary: #140F00;
--color-accent: #FFFF99;
--color-on-accent: #140F00;
}
}
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 #FFFF99 | adjusted for contrast · from #FFD700 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #FFD700 | adjusted for contrast · from #FFFF99 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FFD700 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FFD700 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.64:1 | AAA pass 4.5:1 | |
| Text on surface | 7.04:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 5.97:1 | AA pass 4.5:1 | |
| Label on accent | 4.51:1 | AA pass 4.5:1 | |
| Primary on background | 3.28:1 | AA Large pass 3:1 | |
| Accent on background | 4.21:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.05:1 | AAA pass 4.5:1 | |
| Text on surface | 16.57:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.69:1 | AA pass 4.5:1 | |
| Label on primary | 16.03:1 | AAA pass 4.5:1 | |
| Label on accent | 18.23:1 | AAA pass 4.5:1 | |
| Primary on background | 16.03:1 | AAA pass 3:1 | |
| Accent on background | 18.23: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 | #FFD700 (Text 1) | #FFE135 (Text 2) | #FFEF00 (Text 3) | #FFF44F (Text 4) | #FFFF99 (Text 5) |
|---|---|---|---|---|---|
| #FFD700 | Same color | 1.07— | 1.18— | 1.22— | 1.34— |
| #FFE135 | 1.07— | Same color | 1.09— | 1.14— | 1.25— |
| #FFEF00 | 1.18— | 1.09— | Same color | 1.04— | 1.14— |
| #FFF44F | 1.22— | 1.14— | 1.04— | Same color | 1.09— |
| #FFFF99 | 1.34— | 1.25— | 1.14— | 1.09— | Same color |
Shades
Shades and tints (50–950)
