PreviewingGo to this paletteOpen in generator
Code
/* Citron Ice — colorset.net */
:root {
--color-1: #CCFF00;
--color-2: #D9FF33;
--color-3: #E6FF66;
--color-4: #F2FF99;
--color-5: #F9FFCC;
--color-bg: #F6F8EA;
--color-surface: #EDEFE0;
--color-border: #D4D7C5;
--color-text: #445515;
--color-muted: #656E55;
--color-primary: #759400;
--color-on-primary: #000000;
--color-accent: #878C5D;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0D1202;
--color-surface: #161C09;
--color-border: #2A311A;
--color-text: #F9FED7;
--color-muted: #8C9074;
--color-primary: #CCFF00;
--color-on-primary: #0D1202;
--color-accent: #F2FF99;
--color-on-accent: #0D1202;
}
}
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 #F9FFCC | adjusted for contrast · from #CCFF00 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #CCFF00 | adjusted for contrast · from #F9FFCC |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #CCFF00 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #E6FF66 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.64:1 | AAA pass 4.5:1 | |
| Text on surface | 7.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 5.99:1 | AA pass 4.5:1 | |
| Label on accent | 5.94:1 | AA pass 4.5:1 | |
| Primary on background | 3.26:1 | AA Large pass 3:1 | |
| Accent on background | 3.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.28:1 | AAA pass 4.5:1 | |
| Text on surface | 16.76:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.76:1 | AA pass 4.5:1 | |
| Label on primary | 16.18:1 | AAA pass 4.5:1 | |
| Label on accent | 17.69:1 | AAA pass 4.5:1 | |
| Primary on background | 16.18:1 | AAA pass 3:1 | |
| Accent on background | 17.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 | #CCFF00 (Text 1) | #D9FF33 (Text 2) | #E6FF66 (Text 3) | #F2FF99 (Text 4) | #F9FFCC (Text 5) |
|---|---|---|---|---|---|
| #CCFF00 | Same color | 1.02— | 1.06— | 1.09— | 1.13— |
| #D9FF33 | 1.02— | Same color | 1.03— | 1.07— | 1.10— |
| #E6FF66 | 1.06— | 1.03— | Same color | 1.04— | 1.07— |
| #F2FF99 | 1.09— | 1.07— | 1.04— | Same color | 1.03— |
| #F9FFCC | 1.13— | 1.10— | 1.07— | 1.03— | Same color |
Shades
Shades and tints (50–950)
