PreviewingGo to this paletteOpen in generator
Code
/* Saffron Sun — colorset.net */
:root {
--color-1: #F4C430;
--color-2: #FFBF00;
--color-3: #FFC40C;
--color-4: #FFD700;
--color-5: #FFED4E;
--color-bg: #F9F8E8;
--color-surface: #F0EEDF;
--color-border: #D8D6C3;
--color-text: #604A00;
--color-muted: #73694F;
--color-primary: #987000;
--color-on-primary: #FFFFFF;
--color-accent: #A88400;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #150E00;
--color-surface: #201905;
--color-border: #362D15;
--color-text: #EFEBC5;
--color-muted: #88856A;
--color-primary: #FFBF00;
--color-on-primary: #150E00;
--color-accent: #FFED4E;
--color-on-accent: #150E00;
}
}
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 #F4C430 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #F4C430 | adjusted for contrast · from #FFED4E |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #F4C430 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #F4C430 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.92:1 | AAA pass 4.5:1 | |
| Text on surface | 7.27:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 4.51:1 | AA pass 4.5:1 | |
| Label on accent | 5.97:1 | AA pass 4.5:1 | |
| Primary on background | 4.22:1 | AA Large pass 3:1 | |
| Accent on background | 3.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.86:1 | AAA pass 4.5:1 | |
| Text on surface | 14.43:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.12:1 | AA pass 4.5:1 | |
| Label on primary | 11.61:1 | AAA pass 4.5:1 | |
| Label on accent | 15.96:1 | AAA pass 4.5:1 | |
| Primary on background | 11.61:1 | AAA pass 3:1 | |
| Accent on background | 15.96: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 | #F4C430 (Text 1) | #FFBF00 (Text 2) | #FFC40C (Text 3) | #FFD700 (Text 4) | #FFED4E (Text 5) |
|---|---|---|---|---|---|
| #F4C430 | Same color | 1.01— | 1.03— | 1.17— | 1.37— |
| #FFBF00 | 1.01— | Same color | 1.04— | 1.18— | 1.38— |
| #FFC40C | 1.03— | 1.04— | Same color | 1.14— | 1.33— |
| #FFD700 | 1.17— | 1.18— | 1.14— | Same color | 1.17— |
| #FFED4E | 1.37— | 1.38— | 1.33— | 1.17— | Same color |
Shades
Shades and tints (50–950)
