PreviewingGo to this paletteOpen in generator
Code
/* Milk Glass — colorset.net */
:root {
--color-1: #F4FAFA;
--color-2: #E4F2F2;
--color-3: #CBE8E7;
--color-4: #B9DFC9;
--color-5: #196467;
--color-bg: #F4FAFA;
--color-surface: #EBF1F1;
--color-border: #CFD9D9;
--color-text: #05595C;
--color-muted: #4F7273;
--color-primary: #196467;
--color-on-primary: #FFFFFF;
--color-accent: #6C907C;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #001314;
--color-surface: #071D1E;
--color-border: #183334;
--color-text: #F4FAFA;
--color-muted: #888D8D;
--color-primary: #287073;
--color-on-primary: #FFFFFF;
--color-accent: #B9DFC9;
--color-on-accent: #001314;
}
}
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 #196467 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #196467 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #196467 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #196467 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.68: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 | 6.86:1 | AA pass 4.5:1 | |
| Label on accent | 5.92:1 | AA pass 4.5:1 | |
| Primary on background | 6.50:1 | AA pass 3:1 | |
| Accent on background | 3.36:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.04:1 | AAA pass 4.5:1 | |
| Text on surface | 16.54:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.66:1 | AA pass 4.5:1 | |
| Label on primary | 5.74:1 | AA pass 4.5:1 | |
| Label on accent | 13.11:1 | AAA pass 4.5:1 | |
| Primary on background | 3.31:1 | AA Large pass 3:1 | |
| Accent on background | 13.11: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 | #F4FAFA (Text 1) | #E4F2F2 (Text 2) | #CBE8E7 (Text 3) | #B9DFC9 (Text 4) | #196467 (Text 5) |
|---|---|---|---|---|---|
| #F4FAFA | Same color | 1.09— | 1.23— | 1.38— | 6.50AA |
| #E4F2F2 | 1.09— | Same color | 1.13— | 1.26— | 5.97AA |
| #CBE8E7 | 1.23— | 1.13— | Same color | 1.12— | 5.31AA |
| #B9DFC9 | 1.38— | 1.26— | 1.12— | Same color | 4.73AA |
| #196467 | 6.50AA | 5.97AA | 5.31AA | 4.73AA | Same color |
Shades
Shades and tints (50–950)
