PreviewingGo to this paletteOpen in generator
Code
/* Apricot Milk — colorset.net */
:root {
--color-1: #FFD9C2;
--color-2: #FFE3D1;
--color-3: #FFEDE0;
--color-4: #FFF7EF;
--color-5: #FFFFFE;
--color-bg: #FFFFFE;
--color-surface: #F6F6F5;
--color-border: #DDDDD8;
--color-text: #6A4B37;
--color-muted: #846A5B;
--color-primary: #AA8772;
--color-on-primary: #000000;
--color-accent: #735746;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #170D07;
--color-surface: #211710;
--color-border: #382A22;
--color-text: #FFFFFE;
--color-muted: #8F8F8F;
--color-primary: #FFD9C2;
--color-on-primary: #170D07;
--color-accent: #C3A492;
--color-on-accent: #170D07;
}
}
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 #FFD9C2 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #FFD9C2 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FFD9C2 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FFD9C2 | adjusted for contrast · from #FFD9C2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.85:1 | AAA pass 4.5:1 | |
| Text on surface | 7.26:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 6.42:1 | AA pass 4.5:1 | |
| Label on accent | 6.60:1 | AA pass 4.5:1 | |
| Primary on background | 3.27:1 | AA Large pass 3:1 | |
| Accent on background | 6.60:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 19.13:1 | AAA pass 4.5:1 | |
| Text on surface | 17.57:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.92:1 | AA pass 4.5:1 | |
| Label on primary | 14.54:1 | AAA pass 4.5:1 | |
| Label on accent | 8.25:1 | AAA pass 4.5:1 | |
| Primary on background | 14.54:1 | AAA pass 3:1 | |
| Accent on background | 8.25: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 | #FFD9C2 (Text 1) | #FFE3D1 (Text 2) | #FFEDE0 (Text 3) | #FFF7EF (Text 4) | #FFFFFE (Text 5) |
|---|---|---|---|---|---|
| #FFD9C2 | Same color | 1.08— | 1.16— | 1.24— | 1.32— |
| #FFE3D1 | 1.08— | Same color | 1.07— | 1.15— | 1.22— |
| #FFEDE0 | 1.16— | 1.07— | Same color | 1.07— | 1.14— |
| #FFF7EF | 1.24— | 1.15— | 1.07— | Same color | 1.06— |
| #FFFFFE | 1.32— | 1.22— | 1.14— | 1.06— | Same color |
Shades
Shades and tints (50–950)
