PreviewingGo to this paletteOpen in generator
Code
/* Unicorn Milk — colorset.net */
:root {
--color-1: #FBF1FE;
--color-2: #FAC8F4;
--color-3: #CFD4FF;
--color-4: #99EBF0;
--color-5: #E7EAAC;
--color-bg: #FBF1FE;
--color-surface: #FEFBFF;
--color-border: #E4D7E7;
--color-text: #4C4F73;
--color-muted: #6A6D87;
--color-primary: #AB7DA6;
--color-on-primary: #000000;
--color-accent: #8F9156;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0D0E1A;
--color-surface: #171824;
--color-border: #2B2C3C;
--color-text: #FBF1FE;
--color-muted: #908792;
--color-primary: #FAC8F4;
--color-on-primary: #0D0E1A;
--color-accent: #E7EAAC;
--color-on-accent: #0D0E1A;
}
}
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 1 | adjusted for contrast · from #CFD4FF |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #CFD4FF | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #CFD4FF | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #99EBF0 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.15:1 | AAA pass 4.5:1 | |
| Text on surface | 7.65:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.61:1 | AA pass 4.5:1 | |
| Label on primary | 6.22:1 | AA pass 4.5:1 | |
| Label on accent | 6.35:1 | AA pass 4.5:1 | |
| Primary on background | 3.08:1 | AA Large pass 3:1 | |
| Accent on background | 3.01:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.46:1 | AAA pass 4.5:1 | |
| Text on surface | 16.03:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.54:1 | AA pass 4.5:1 | |
| Label on primary | 13.37:1 | AAA pass 4.5:1 | |
| Label on accent | 15.31:1 | AAA pass 4.5:1 | |
| Primary on background | 13.37:1 | AAA pass 3:1 | |
| Accent on background | 15.31: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 | #FBF1FE (Text 1) | #FAC8F4 (Text 2) | #CFD4FF (Text 3) | #99EBF0 (Text 4) | #E7EAAC (Text 5) |
|---|---|---|---|---|---|
| #FBF1FE | Same color | 1.31— | 1.32— | 1.23— | 1.14— |
| #FAC8F4 | 1.31— | Same color | 1.01— | 1.06— | 1.15— |
| #CFD4FF | 1.32— | 1.01— | Same color | 1.07— | 1.15— |
| #99EBF0 | 1.23— | 1.06— | 1.07— | Same color | 1.08— |
| #E7EAAC | 1.14— | 1.15— | 1.15— | 1.08— | Same color |
Shades
Shades and tints (50–950)
