PreviewingGo to this paletteOpen in generator
Code
/* Primrose Yellow — colorset.net */
:root {
--color-1: #EDDA74;
--color-2: #F4E87C;
--color-3: #FFF3A1;
--color-4: #FFF7BA;
--color-5: #FFFBD4;
--color-bg: #F8F7EC;
--color-surface: #EFEEE3;
--color-border: #D7D6C7;
--color-text: #5A4E00;
--color-muted: #706B50;
--color-primary: #877600;
--color-on-primary: #FFFFFF;
--color-accent: #8C8865;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #130F00;
--color-surface: #1D1A05;
--color-border: #332E16;
--color-text: #FFFBD4;
--color-muted: #918E72;
--color-primary: #EDDA74;
--color-on-primary: #130F00;
--color-accent: #FFF3A1;
--color-on-accent: #130F00;
}
}
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 #FFFBD4 | adjusted for contrast · from #EDDA74 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #EDDA74 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #EDDA74 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #EDDA74 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.73:1 | AAA pass 4.5:1 | |
| Text on surface | 7.13:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 4.54:1 | AA pass 4.5:1 | |
| Label on accent | 5.82:1 | AA pass 4.5:1 | |
| Primary on background | 4.22:1 | AA Large pass 3:1 | |
| Accent on background | 3.35:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.25:1 | AAA pass 4.5:1 | |
| Text on surface | 16.64:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.76:1 | AA pass 4.5:1 | |
| Label on primary | 13.58:1 | AAA pass 4.5:1 | |
| Label on accent | 16.96:1 | AAA pass 4.5:1 | |
| Primary on background | 13.58:1 | AAA pass 3:1 | |
| Accent on background | 16.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 | #EDDA74 (Text 1) | #F4E87C (Text 2) | #FFF3A1 (Text 3) | #FFF7BA (Text 4) | #FFFBD4 (Text 5) |
|---|---|---|---|---|---|
| #EDDA74 | Same color | 1.12— | 1.25— | 1.29— | 1.34— |
| #F4E87C | 1.12— | Same color | 1.11— | 1.15— | 1.20— |
| #FFF3A1 | 1.25— | 1.11— | Same color | 1.04— | 1.08— |
| #FFF7BA | 1.29— | 1.15— | 1.04— | Same color | 1.04— |
| #FFFBD4 | 1.34— | 1.20— | 1.08— | 1.04— | Same color |
Shades
Shades and tints (50–950)
