PreviewingGo to this paletteOpen in generator
Code
/* Flax Yellow — colorset.net */
:root {
--color-1: #D4AF37;
--color-2: #E2C275;
--color-3: #EDD382;
--color-4: #F5E6A0;
--color-5: #FFF8DC;
--color-bg: #FFF8DC;
--color-surface: #F6EFD3;
--color-border: #DDD6B9;
--color-text: #614C00;
--color-muted: #746B51;
--color-primary: #907300;
--color-on-primary: #FFFFFF;
--color-accent: #8F896F;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #150F00;
--color-surface: #1F1905;
--color-border: #352D15;
--color-text: #FFF8DC;
--color-muted: #928C72;
--color-primary: #D4AF37;
--color-on-primary: #150F00;
--color-accent: #F5E6A0;
--color-on-accent: #150F00;
}
}
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 | from palette · color 5 | adjusted for contrast · from #D4AF37 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #D4AF37 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #D4AF37 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #D4AF37 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.75:1 | AAA pass 4.5:1 | |
| Text on surface | 7.16:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 4.53:1 | AA pass 4.5:1 | |
| Label on accent | 5.98:1 | AA pass 4.5:1 | |
| Primary on background | 4.25:1 | AA Large pass 3:1 | |
| Accent on background | 3.30:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.92:1 | AAA pass 4.5:1 | |
| Text on surface | 16.43:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.65:1 | AA pass 4.5:1 | |
| Label on primary | 9.08:1 | AAA pass 4.5:1 | |
| Label on accent | 15.19:1 | AAA pass 4.5:1 | |
| Primary on background | 9.08:1 | AAA pass 3:1 | |
| Accent on background | 15.19: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 | #D4AF37 (Text 1) | #E2C275 (Text 2) | #EDD382 (Text 3) | #F5E6A0 (Text 4) | #FFF8DC (Text 5) |
|---|---|---|---|---|---|
| #D4AF37 | Same color | 1.22— | 1.43— | 1.67— | 1.97— |
| #E2C275 | 1.22— | Same color | 1.17— | 1.37— | 1.61— |
| #EDD382 | 1.43— | 1.17— | Same color | 1.17— | 1.38— |
| #F5E6A0 | 1.67— | 1.37— | 1.17— | Same color | 1.18— |
| #FFF8DC | 1.97— | 1.61— | 1.38— | 1.18— | Same color |
Shades
Shades and tints (50–950)
