PreviewingGo to this paletteOpen in generator
Code
/* Sunny Yellow — colorset.net */
:root {
--color-1: #FEF3C7;
--color-2: #FDE68A;
--color-3: #FCD34D;
--color-4: #FBBF24;
--color-5: #F59E0B;
--color-bg: #FAF7EA;
--color-surface: #F1EEE1;
--color-border: #D9D5C5;
--color-text: #6E4506;
--color-muted: #7B6852;
--color-primary: #A46800;
--color-on-primary: #FFFFFF;
--color-accent: #91875E;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #190C01;
--color-surface: #241606;
--color-border: #3B2A17;
--color-text: #FCF3CD;
--color-muted: #90896E;
--color-primary: #F59E0B;
--color-on-primary: #190C01;
--color-accent: #FDE68A;
--color-on-accent: #190C01;
}
}
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 #FEF3C7 | adjusted for contrast · from #F59E0B |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #F59E0B | adjusted for contrast · from #FEF3C7 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #F59E0B | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #F59E0B | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.77:1 | AAA pass 4.5:1 | |
| Text on surface | 7.17:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 4.61:1 | AA pass 4.5:1 | |
| Label on accent | 5.83:1 | AA pass 4.5:1 | |
| Primary on background | 4.29:1 | AA Large pass 3:1 | |
| Accent on background | 3.35:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.22:1 | AAA pass 4.5:1 | |
| Text on surface | 15.80:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.47:1 | AA pass 4.5:1 | |
| Label on primary | 8.93:1 | AAA pass 4.5:1 | |
| Label on accent | 15.41:1 | AAA pass 4.5:1 | |
| Primary on background | 8.93:1 | AAA pass 3:1 | |
| Accent on background | 15.41: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 | #FEF3C7 (Text 1) | #FDE68A (Text 2) | #FCD34D (Text 3) | #FBBF24 (Text 4) | #F59E0B (Text 5) |
|---|---|---|---|---|---|
| #FEF3C7 | Same color | 1.12— | 1.29— | 1.50— | 1.93— |
| #FDE68A | 1.12— | Same color | 1.16— | 1.34— | 1.72— |
| #FCD34D | 1.29— | 1.16— | Same color | 1.16— | 1.49— |
| #FBBF24 | 1.50— | 1.34— | 1.16— | Same color | 1.29— |
| #F59E0B | 1.93— | 1.72— | 1.49— | 1.29— | Same color |
Shades
Shades and tints (50–950)
