PreviewingGo to this paletteOpen in generator
Code
/* Saffron Yellow — colorset.net */
:root {
--color-1: #F4C430;
--color-2: #FFCE44;
--color-3: #FFD858;
--color-4: #FFE26C;
--color-5: #FFEC80;
--color-bg: #FAF7E8;
--color-surface: #F0EEDF;
--color-border: #D8D6C3;
--color-text: #604A00;
--color-muted: #73694F;
--color-primary: #A88400;
--color-on-primary: #000000;
--color-accent: #8B7400;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #150E00;
--color-surface: #201905;
--color-border: #362D15;
--color-text: #F2EBC5;
--color-muted: #8A856A;
--color-primary: #F4C430;
--color-on-primary: #150E00;
--color-accent: #FFEC80;
--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 #FFEC80 | adjusted for contrast · from #F4C430 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #F4C430 | adjusted for contrast · from #FFEC80 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #F4C430 | from palette · color 1 |
| 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.89:1 | AAA pass 4.5:1 | |
| Text on surface | 7.27:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 5.97:1 | AA pass 4.5:1 | |
| Label on accent | 4.57:1 | AA pass 4.5:1 | |
| Primary on background | 3.27:1 | AA Large pass 3:1 | |
| Accent on background | 4.25:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.95:1 | AAA pass 4.5:1 | |
| Text on surface | 14.52:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.16:1 | AA pass 4.5:1 | |
| Label on primary | 11.68:1 | AAA pass 4.5:1 | |
| Label on accent | 16.04:1 | AAA pass 4.5:1 | |
| Primary on background | 11.68:1 | AAA pass 3:1 | |
| Accent on background | 16.04: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) | #FFCE44 (Text 2) | #FFD858 (Text 3) | #FFE26C (Text 4) | #FFEC80 (Text 5) |
|---|---|---|---|---|---|
| #F4C430 | Same color | 1.11— | 1.19— | 1.28— | 1.37— |
| #FFCE44 | 1.11— | Same color | 1.07— | 1.15— | 1.24— |
| #FFD858 | 1.19— | 1.07— | Same color | 1.07— | 1.15— |
| #FFE26C | 1.28— | 1.15— | 1.07— | Same color | 1.07— |
| #FFEC80 | 1.37— | 1.24— | 1.15— | 1.07— | Same color |
Shades
Shades and tints (50–950)
