PreviewingGo to this paletteOpen in generator
Code
/* Apricot Yellow — colorset.net */
:root {
--color-1: #FBB917;
--color-2: #FFCC5C;
--color-3: #FFD479;
--color-4: #FFE0A3;
--color-5: #FFECCC;
--color-bg: #FFECCC;
--color-surface: #FFF4E3;
--color-border: #E4D4B9;
--color-text: #664900;
--color-muted: #766950;
--color-primary: #B28100;
--color-on-primary: #000000;
--color-accent: #988769;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #170E00;
--color-surface: #211805;
--color-border: #382C15;
--color-text: #FFECCC;
--color-muted: #94856C;
--color-primary: #FBB917;
--color-on-primary: #170E00;
--color-accent: #FFD479;
--color-on-accent: #170E00;
}
}
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 | from palette · color 5 | adjusted for contrast · from #FBB917 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #FBB917 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FBB917 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FBB917 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.20:1 | AAA pass 4.5:1 | |
| Text on surface | 7.67:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.64:1 | AA pass 4.5:1 | |
| Label on primary | 6.03:1 | AA pass 4.5:1 | |
| Label on accent | 6.00:1 | AA pass 4.5:1 | |
| Primary on background | 3.00:1 | AA Large pass 3:1 | |
| Accent on background | 3.02:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.49:1 | AAA pass 4.5:1 | |
| Text on surface | 15.13:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.30:1 | AA pass 4.5:1 | |
| Label on primary | 10.97:1 | AAA pass 4.5:1 | |
| Label on accent | 13.60:1 | AAA pass 4.5:1 | |
| Primary on background | 10.97:1 | AAA pass 3:1 | |
| Accent on background | 13.60: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 | #FBB917 (Text 1) | #FFCC5C (Text 2) | #FFD479 (Text 3) | #FFE0A3 (Text 4) | #FFECCC (Text 5) |
|---|---|---|---|---|---|
| #FBB917 | Same color | 1.17— | 1.24— | 1.36— | 1.50— |
| #FFCC5C | 1.17— | Same color | 1.06— | 1.17— | 1.29— |
| #FFD479 | 1.24— | 1.06— | Same color | 1.10— | 1.21— |
| #FFE0A3 | 1.36— | 1.17— | 1.10— | Same color | 1.10— |
| #FFECCC | 1.50— | 1.29— | 1.21— | 1.10— | Same color |
Shades
Shades and tints (50–950)
