PreviewingGo to this paletteOpen in generator
Code
/* Citrine Yellow — colorset.net */
:root {
--color-1: #E4B000;
--color-2: #F0E68C;
--color-3: #FFD700;
--color-4: #FFE135;
--color-5: #FFF44F;
--color-bg: #F8F8E9;
--color-surface: #EFEFDF;
--color-border: #D7D6C4;
--color-text: #624A00;
--color-muted: #746950;
--color-primary: #927000;
--color-on-primary: #FFFFFF;
--color-accent: #948C00;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #160E00;
--color-surface: #201805;
--color-border: #362D15;
--color-text: #F2F0CA;
--color-muted: #8A886D;
--color-primary: #E4B000;
--color-on-primary: #160E00;
--color-accent: #FFF44F;
--color-on-accent: #160E00;
}
}
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 #F0E68C | adjusted for contrast · from #E4B000 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #E4B000 | adjusted for contrast · from #F0E68C |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #E4B000 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #E4B000 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.84:1 | AAA pass 4.5:1 | |
| Text on surface | 7.24:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 4.63:1 | AA pass 4.5:1 | |
| Label on accent | 6.01:1 | AA pass 4.5:1 | |
| Primary on background | 4.32:1 | AA Large pass 3:1 | |
| Accent on background | 3.26:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.49:1 | AAA pass 4.5:1 | |
| Text on surface | 15.15:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.31:1 | AA pass 4.5:1 | |
| Label on primary | 9.58:1 | AAA pass 4.5:1 | |
| Label on accent | 16.69:1 | AAA pass 4.5:1 | |
| Primary on background | 9.58:1 | AAA pass 3:1 | |
| Accent on background | 16.69: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 | #E4B000 (Text 1) | #F0E68C (Text 2) | #FFD700 (Text 3) | #FFE135 (Text 4) | #FFF44F (Text 5) |
|---|---|---|---|---|---|
| #E4B000 | Same color | 1.56— | 1.42— | 1.53— | 1.74— |
| #F0E68C | 1.56— | Same color | 1.10— | 1.02— | 1.12— |
| #FFD700 | 1.42— | 1.10— | Same color | 1.07— | 1.22— |
| #FFE135 | 1.53— | 1.02— | 1.07— | Same color | 1.14— |
| #FFF44F | 1.74— | 1.12— | 1.22— | 1.14— | Same color |
Shades
Shades and tints (50–950)
