PreviewingGo to this paletteOpen in generator
Code
/* Electric Yellow — colorset.net */
:root {
--color-1: #FFFF00;
--color-2: #FFFF1A;
--color-3: #FFFF33;
--color-4: #FFFF4D;
--color-5: #FFFF66;
--color-bg: #F7F8E9;
--color-surface: #EEEFE0;
--color-border: #D6D7C4;
--color-text: #505002;
--color-muted: #6B6C51;
--color-primary: #797900;
--color-on-primary: #FFFFFF;
--color-accent: #484800;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #101101;
--color-surface: #1A1B06;
--color-border: #2F3017;
--color-text: #F8F9D3;
--color-muted: #8C8D71;
--color-primary: #FFFF00;
--color-on-primary: #101101;
--color-accent: #C5C500;
--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 #FFFF66 | adjusted for contrast · from #FFFF66 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #FFFF66 | adjusted for contrast · from #FFFF66 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FFFF66 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FFFF66 | adjusted for contrast · from #FFFF4D |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.86:1 | AAA pass 4.5:1 | |
| Text on surface | 7.25:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 4.62:1 | AA pass 4.5:1 | |
| Label on accent | 9.53:1 | AAA pass 4.5:1 | |
| Primary on background | 4.30:1 | AA Large pass 3:1 | |
| Accent on background | 8.88:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.67:1 | AAA pass 4.5:1 | |
| Text on surface | 16.19:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.59:1 | AA pass 4.5:1 | |
| Label on primary | 17.74:1 | AAA pass 4.5:1 | |
| Label on accent | 10.30:1 | AAA pass 4.5:1 | |
| Primary on background | 17.74:1 | AAA pass 3:1 | |
| Accent on background | 10.30: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 | #FFFF00 (Text 1) | #FFFF1A (Text 2) | #FFFF33 (Text 3) | #FFFF4D (Text 4) | #FFFF66 (Text 5) |
|---|---|---|---|---|---|
| #FFFF00 | Same color | 1.00— | 1.00— | 1.01— | 1.01— |
| #FFFF1A | 1.00— | Same color | 1.00— | 1.00— | 1.01— |
| #FFFF33 | 1.00— | 1.00— | Same color | 1.00— | 1.01— |
| #FFFF4D | 1.01— | 1.00— | 1.00— | Same color | 1.00— |
| #FFFF66 | 1.01— | 1.01— | 1.01— | 1.00— | Same color |
Shades
Shades and tints (50–950)
