PreviewingGo to this paletteOpen in generator
Code
/* Sunshine Yellow — colorset.net */
:root {
--color-1: #FFD700;
--color-2: #FFE135;
--color-3: #FFEB6B;
--color-4: #FFF5A1;
--color-5: #E6C200;
--color-bg: #F9F8E8;
--color-surface: #F0EEDF;
--color-border: #D8D6C3;
--color-text: #5C4C00;
--color-muted: #716A50;
--color-primary: #8A7300;
--color-on-primary: #FFFFFF;
--color-accent: #534400;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #140F00;
--color-surface: #1E1905;
--color-border: #342E15;
--color-text: #F8F4CD;
--color-muted: #8D8A6E;
--color-primary: #E6C200;
--color-on-primary: #140F00;
--color-accent: #FFF5A1;
--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 #FFF5A1 | adjusted for contrast · from #E6C200 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #E6C200 | adjusted for contrast · from #FFF5A1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #E6C200 | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #E6C200 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.88:1 | AAA pass 4.5:1 | |
| Text on surface | 7.23:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 4.63:1 | AA pass 4.5:1 | |
| Label on accent | 9.57:1 | AAA pass 4.5:1 | |
| Primary on background | 4.33:1 | AA Large pass 3:1 | |
| Accent on background | 8.94:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.13:1 | AAA pass 4.5:1 | |
| Text on surface | 15.72:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.46:1 | AA pass 4.5:1 | |
| Label on primary | 11.00:1 | AAA pass 4.5:1 | |
| Label on accent | 17.15:1 | AAA pass 4.5:1 | |
| Primary on background | 11.00:1 | AAA pass 3:1 | |
| Accent on background | 17.15: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) | #FFEB6B (Text 3) | #FFF5A1 (Text 4) | #E6C200 (Text 5) |
|---|---|---|---|---|---|
| #FFD700 | Same color | 1.07— | 1.16— | 1.26— | 1.24— |
| #FFE135 | 1.07— | Same color | 1.08— | 1.17— | 1.33— |
| #FFEB6B | 1.16— | 1.08— | Same color | 1.09— | 1.44— |
| #FFF5A1 | 1.26— | 1.17— | 1.09— | Same color | 1.56— |
| #E6C200 | 1.24— | 1.33— | 1.44— | 1.56— | Same color |
Shades
Shades and tints (50–950)
