PreviewingGo to this paletteOpen in generator
Code
/* Citron Peel — colorset.net */
:root {
--color-1: #BCBD22;
--color-2: #D4D700;
--color-3: #E4E633;
--color-4: #F0F066;
--color-5: #FAFA99;
--color-bg: #F8F8E9;
--color-surface: #EEEFE0;
--color-border: #D6D6C4;
--color-text: #515205;
--color-muted: #6B6D52;
--color-primary: #787A00;
--color-on-primary: #FFFFFF;
--color-accent: #8D8E00;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #101101;
--color-surface: #1A1B07;
--color-border: #2F3017;
--color-text: #F6F7D0;
--color-muted: #8B8C70;
--color-primary: #D4D700;
--color-on-primary: #101101;
--color-accent: #FAFA99;
--color-on-accent: #101101;
}
}
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 #FAFA99 | adjusted for contrast · from #BCBD22 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #BCBD22 | adjusted for contrast · from #FAFA99 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #BCBD22 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #BCBD22 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.66:1 | AAA pass 4.5:1 | |
| Text on surface | 7.06:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 4.58:1 | AA pass 4.5:1 | |
| Label on accent | 6.00:1 | AA pass 4.5:1 | |
| Primary on background | 4.28:1 | AA Large pass 3:1 | |
| Accent on background | 3.26:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.35:1 | AAA pass 4.5:1 | |
| Text on surface | 15.89:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.52:1 | AA pass 4.5:1 | |
| Label on primary | 12.26:1 | AAA pass 4.5:1 | |
| Label on accent | 17.41:1 | AAA pass 4.5:1 | |
| Primary on background | 12.26:1 | AAA pass 3:1 | |
| Accent on background | 17.41: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 | #BCBD22 (Text 1) | #D4D700 (Text 2) | #E4E633 (Text 3) | #F0F066 (Text 4) | #FAFA99 (Text 5) |
|---|---|---|---|---|---|
| #BCBD22 | Same color | 1.29— | 1.50— | 1.66— | 1.84— |
| #D4D700 | 1.29— | Same color | 1.16— | 1.28— | 1.42— |
| #E4E633 | 1.50— | 1.16— | Same color | 1.11— | 1.23— |
| #F0F066 | 1.66— | 1.28— | 1.11— | Same color | 1.11— |
| #FAFA99 | 1.84— | 1.42— | 1.23— | 1.11— | Same color |
Shades
Shades and tints (50–950)
