PreviewingGo to this paletteOpen in generator
Code
/* Citron Yellow — colorset.net */
:root {
--color-1: #E4D00A;
--color-2: #E9D924;
--color-3: #EEE23E;
--color-4: #F3EB58;
--color-5: #F8F472;
--color-bg: #F8F8E9;
--color-surface: #EFEFE0;
--color-border: #D6D6C4;
--color-text: #595000;
--color-muted: #6F6C52;
--color-primary: #988A00;
--color-on-primary: #000000;
--color-accent: #7E7800;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #121000;
--color-surface: #1D1A06;
--color-border: #322F16;
--color-text: #F0F0CA;
--color-muted: #88886C;
--color-primary: #E4D00A;
--color-on-primary: #121000;
--color-accent: #F8F472;
--color-on-accent: #121000;
}
}
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 #F8F472 | adjusted for contrast · from #E4D00A |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #E4D00A | adjusted for contrast · from #F8F472 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #E4D00A | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #E4D00A | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.62:1 | AAA pass 4.5:1 | |
| Text on surface | 7.03:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 5.97:1 | AA pass 4.5:1 | |
| Label on accent | 4.59:1 | AA pass 4.5:1 | |
| Primary on background | 3.28:1 | AA Large pass 3:1 | |
| Accent on background | 4.28:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.39:1 | AAA pass 4.5:1 | |
| Text on surface | 14.99:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.26:1 | AA pass 4.5:1 | |
| Label on primary | 12.12:1 | AAA pass 4.5:1 | |
| Label on accent | 16.52:1 | AAA pass 4.5:1 | |
| Primary on background | 12.12:1 | AAA pass 3:1 | |
| Accent on background | 16.52: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 | #E4D00A (Text 1) | #E9D924 (Text 2) | #EEE23E (Text 3) | #F3EB58 (Text 4) | #F8F472 (Text 5) |
|---|---|---|---|---|---|
| #E4D00A | Same color | 1.08— | 1.17— | 1.26— | 1.36— |
| #E9D924 | 1.08— | Same color | 1.08— | 1.17— | 1.26— |
| #EEE23E | 1.17— | 1.08— | Same color | 1.08— | 1.17— |
| #F3EB58 | 1.26— | 1.17— | 1.08— | Same color | 1.08— |
| #F8F472 | 1.36— | 1.26— | 1.17— | 1.08— | Same color |
Shades
Shades and tints (50–950)
