PreviewingGo to this paletteOpen in generator
Code
/* Sunlit Lemon — colorset.net */
:root {
--color-1: #E6B800;
--color-2: #FFCC00;
--color-3: #FFD700;
--color-4: #FFE135;
--color-5: #FFEB3B;
--color-bg: #F9F8E8;
--color-surface: #F0EEDF;
--color-border: #D8D6C3;
--color-text: #5F4B00;
--color-muted: #736950;
--color-primary: #A78500;
--color-on-primary: #000000;
--color-accent: #827600;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #150E00;
--color-surface: #201905;
--color-border: #352D15;
--color-text: #EDE9C3;
--color-muted: #878469;
--color-primary: #E6B800;
--color-on-primary: #150E00;
--color-accent: #FFEB3B;
--color-on-accent: #150E00;
}
}
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 #FFEB3B | adjusted for contrast · from #E6B800 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #E6B800 | adjusted for contrast · from #FFE135 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #E6B800 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #E6B800 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.87:1 | AAA pass 4.5:1 | |
| Text on surface | 7.22:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 6.00:1 | AA pass 4.5:1 | |
| Label on accent | 4.63:1 | AA pass 4.5:1 | |
| Primary on background | 3.27:1 | AA Large pass 3:1 | |
| Accent on background | 4.32:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.57:1 | AAA pass 4.5:1 | |
| Text on surface | 14.17:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 10.25:1 | AAA pass 4.5:1 | |
| Label on accent | 15.71:1 | AAA pass 4.5:1 | |
| Primary on background | 10.25:1 | AAA pass 3:1 | |
| Accent on background | 15.71: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 | #E6B800 (Text 1) | #FFCC00 (Text 2) | #FFD700 (Text 3) | #FFE135 (Text 4) | #FFEB3B (Text 5) |
|---|---|---|---|---|---|
| #E6B800 | Same color | 1.24— | 1.33— | 1.43— | 1.53— |
| #FFCC00 | 1.24— | Same color | 1.08— | 1.16— | 1.24— |
| #FFD700 | 1.33— | 1.08— | Same color | 1.07— | 1.15— |
| #FFE135 | 1.43— | 1.16— | 1.07— | Same color | 1.07— |
| #FFEB3B | 1.53— | 1.24— | 1.15— | 1.07— | Same color |
Shades
Shades and tints (50–950)
