PreviewingGo to this paletteOpen in generator
Code
/* Light Yellow — colorset.net */
:root {
--color-1: #FFFF66;
--color-2: #FFFF80;
--color-3: #FFFF99;
--color-4: #FFFFB3;
--color-5: #FFFFCC;
--color-bg: #F8F8E9;
--color-surface: #EEEFE0;
--color-border: #D6D6C4;
--color-text: #525103;
--color-muted: #6C6C52;
--color-primary: #7B7A00;
--color-on-primary: #FFFFFF;
--color-accent: #89895A;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #111001;
--color-surface: #1B1B06;
--color-border: #2F3017;
--color-text: #FEFED7;
--color-muted: #909074;
--color-primary: #FFFF66;
--color-on-primary: #111001;
--color-accent: #C6C648;
--color-on-accent: #111001;
}
}
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 #FFFFCC | adjusted for contrast · from #FFFF80 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #FFFF80 | adjusted for contrast · from #FFFFCC |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FFFF66 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FFFF99 | adjusted for contrast · from #FFFF66 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.72:1 | AAA pass 4.5:1 | |
| Text on surface | 7.12:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 4.54:1 | AA pass 4.5:1 | |
| Label on accent | 5.79:1 | AA pass 4.5:1 | |
| Primary on background | 4.24:1 | AA Large pass 3:1 | |
| Accent on background | 3.38:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.55:1 | AAA pass 4.5:1 | |
| Text on surface | 16.89:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.85:1 | AA pass 4.5:1 | |
| Label on primary | 17.98:1 | AAA pass 4.5:1 | |
| Label on accent | 10.54:1 | AAA pass 4.5:1 | |
| Primary on background | 17.98:1 | AAA pass 3:1 | |
| Accent on background | 10.54: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 | #FFFF66 (Text 1) | #FFFF80 (Text 2) | #FFFF99 (Text 3) | #FFFFB3 (Text 4) | #FFFFCC (Text 5) |
|---|---|---|---|---|---|
| #FFFF66 | Same color | 1.01— | 1.01— | 1.02— | 1.03— |
| #FFFF80 | 1.01— | Same color | 1.01— | 1.02— | 1.03— |
| #FFFF99 | 1.01— | 1.01— | Same color | 1.01— | 1.02— |
| #FFFFB3 | 1.02— | 1.02— | 1.01— | Same color | 1.01— |
| #FFFFCC | 1.03— | 1.03— | 1.02— | 1.01— | Same color |
Shades
Shades and tints (50–950)
