PreviewingGo to this paletteOpen in generator
Code
/* Citrine Gem — colorset.net */
:root {
--color-1: #E4D00A;
--color-2: #F4C430;
--color-3: #FFD700;
--color-4: #FFE135;
--color-5: #FFFFE0;
--color-bg: #FFFFE0;
--color-surface: #F6F6D7;
--color-border: #DDDDBF;
--color-text: #664F00;
--color-muted: #786E55;
--color-primary: #9C8E00;
--color-on-primary: #000000;
--color-accent: #8F8F73;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #150E00;
--color-surface: #201905;
--color-border: #362D15;
--color-text: #FFFFE0;
--color-muted: #909074;
--color-primary: #E4D00A;
--color-on-primary: #150E00;
--color-accent: #FFE135;
--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 | from palette · color 5 | adjusted for contrast · from #F4C430 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #F4C430 | from palette · color 5 |
| 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 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.69:1 | AAA pass 4.5:1 | |
| Text on surface | 7.11:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 6.28:1 | AA pass 4.5:1 | |
| Label on accent | 6.34:1 | AA pass 4.5:1 | |
| Primary on background | 3.28:1 | AA Large pass 3:1 | |
| Accent on background | 3.25:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.85:1 | AAA pass 4.5:1 | |
| Text on surface | 17.16:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.87:1 | AA pass 4.5:1 | |
| Label on primary | 12.17:1 | AAA pass 4.5:1 | |
| Label on accent | 14.68:1 | AAA pass 4.5:1 | |
| Primary on background | 12.17:1 | AAA pass 3:1 | |
| Accent on background | 14.68: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) | #F4C430 (Text 2) | #FFD700 (Text 3) | #FFE135 (Text 4) | #FFFFE0 (Text 5) |
|---|---|---|---|---|---|
| #E4D00A | Same color | 1.04— | 1.12— | 1.21— | 1.55— |
| #F4C430 | 1.04— | Same color | 1.17— | 1.26— | 1.61— |
| #FFD700 | 1.12— | 1.17— | Same color | 1.07— | 1.38— |
| #FFE135 | 1.21— | 1.26— | 1.07— | Same color | 1.28— |
| #FFFFE0 | 1.55— | 1.61— | 1.38— | 1.28— | Same color |
Shades
Shades and tints (50–950)
