PreviewingGo to this paletteOpen in generator
Code
/* Ghost Linen — colorset.net */
:root {
--color-1: #F8F8FF;
--color-2: #FAFAFF;
--color-3: #FCFCFF;
--color-4: #FEFEFF;
--color-5: #FFFFFF;
--color-bg: #FFFFFF;
--color-surface: #F6F6F6;
--color-border: #E0DCDD;
--color-text: #525258;
--color-muted: #707076;
--color-primary: #8C8C92;
--color-on-primary: #000000;
--color-accent: #5B5B5F;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F11;
--color-surface: #19191B;
--color-border: #2D2D32;
--color-text: #FFFFFF;
--color-muted: #8F8F8F;
--color-primary: #F8F8FF;
--color-on-primary: #0F0F11;
--color-accent: #C1C1C6;
--color-on-accent: #0F0F11;
}
}
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 #F8F8FF |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #F8F8FF | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #F8F8FF | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #F8F8FF | adjusted for contrast · from #F8F8FF |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.76:1 | AAA pass 4.5:1 | |
| Text on surface | 7.18:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.92:1 | AA pass 4.5:1 | |
| Label on primary | 6.28:1 | AA pass 4.5:1 | |
| Label on accent | 6.76:1 | AA pass 4.5:1 | |
| Primary on background | 3.34:1 | AA Large pass 3:1 | |
| Accent on background | 6.76:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 19.15:1 | AAA pass 4.5:1 | |
| Text on surface | 17.56:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.92:1 | AA pass 4.5:1 | |
| Label on primary | 18.11:1 | AAA pass 4.5:1 | |
| Label on accent | 10.68:1 | AAA pass 4.5:1 | |
| Primary on background | 18.11:1 | AAA pass 3:1 | |
| Accent on background | 10.68: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 | #F8F8FF (Text 1) | #FAFAFF (Text 2) | #FCFCFF (Text 3) | #FEFEFF (Text 4) | #FFFFFF (Text 5) |
|---|---|---|---|---|---|
| #F8F8FF | Same color | 1.02— | 1.03— | 1.05— | 1.06— |
| #FAFAFF | 1.02— | Same color | 1.02— | 1.03— | 1.04— |
| #FCFCFF | 1.03— | 1.02— | Same color | 1.02— | 1.02— |
| #FEFEFF | 1.05— | 1.03— | 1.02— | Same color | 1.01— |
| #FFFFFF | 1.06— | 1.04— | 1.02— | 1.01— | Same color |
Shades
Shades and tints (50–950)
