PreviewingGo to this paletteOpen in generator
Code
/* Highlighter Yellow — colorset.net */
:root {
--color-1: #FFEF00;
--color-2: #FFFD01;
--color-3: #FFFF31;
--color-4: #FFFFCC;
--color-5: #FFFACD;
--color-bg: #F8F8E9;
--color-surface: #EEEFE0;
--color-border: #D6D6C4;
--color-text: #565000;
--color-muted: #6E6C51;
--color-primary: #8E8D00;
--color-on-primary: #000000;
--color-accent: #8F8A61;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #121000;
--color-surface: #1C1A06;
--color-border: #312F16;
--color-text: #FEFED7;
--color-muted: #909074;
--color-primary: #FFFD01;
--color-on-primary: #121000;
--color-accent: #C5C300;
--color-on-accent: #121000;
}
}
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 #FFFACD | adjusted for contrast · from #FFEF00 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #FFEF00 | adjusted for contrast · from #FFFACD |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FFEF00 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FFEF00 | adjusted for contrast · from #FFEF00 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.70:1 | AAA pass 4.5:1 | |
| Text on surface | 7.10:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 5.96:1 | AA pass 4.5:1 | |
| Label on accent | 5.98:1 | AA pass 4.5:1 | |
| Primary on background | 3.29:1 | AA Large pass 3:1 | |
| Accent on background | 3.28:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.52:1 | AAA pass 4.5:1 | |
| Text on surface | 16.98:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.84:1 | AA pass 4.5:1 | |
| Label on primary | 17.55:1 | AAA pass 4.5:1 | |
| Label on accent | 10.17:1 | AAA pass 4.5:1 | |
| Primary on background | 17.55:1 | AAA pass 3:1 | |
| Accent on background | 10.17: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 | #FFEF00 (Text 1) | #FFFD01 (Text 2) | #FFFF31 (Text 3) | #FFFFCC (Text 4) | #FFFACD (Text 5) |
|---|---|---|---|---|---|
| #FFEF00 | Same color | 1.10— | 1.11— | 1.16— | 1.13— |
| #FFFD01 | 1.10— | Same color | 1.02— | 1.06— | 1.03— |
| #FFFF31 | 1.11— | 1.02— | Same color | 1.04— | 1.01— |
| #FFFFCC | 1.16— | 1.06— | 1.04— | Same color | 1.03— |
| #FFFACD | 1.13— | 1.03— | 1.01— | 1.03— | Same color |
Shades
Shades and tints (50–950)
