PreviewingGo to this paletteOpen in generator
Code
/* Opal Linen — colorset.net */
:root {
--color-1: #F0F8FF;
--color-2: #F5F5F5;
--color-3: #F8F8FF;
--color-4: #FFFAF0;
--color-5: #FFFFF0;
--color-bg: #FFFFF0;
--color-surface: #F6F6E7;
--color-border: #DDDDCB;
--color-text: #525252;
--color-muted: #707070;
--color-primary: #8F8F81;
--color-on-primary: #000000;
--color-accent: #5D5D52;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F0F;
--color-surface: #191919;
--color-border: #302D2E;
--color-text: #FFFFF0;
--color-muted: #909082;
--color-primary: #FFFFF0;
--color-on-primary: #0F0F0F;
--color-accent: #C7C7BB;
--color-on-accent: #0F0F0F;
}
}
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 #F5F5F5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #F5F5F5 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #F5F5F5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #F5F5F5 | adjusted for contrast · from #F5F5F5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.74:1 | AAA pass 4.5:1 | |
| Text on surface | 7.16:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.91:1 | AA pass 4.5:1 | |
| Label on primary | 6.41:1 | AA pass 4.5:1 | |
| Label on accent | 6.66:1 | AA pass 4.5:1 | |
| Primary on background | 3.25:1 | AA Large pass 3:1 | |
| Accent on background | 6.60:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 19.00:1 | AAA pass 4.5:1 | |
| Text on surface | 17.43:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.93:1 | AA pass 4.5:1 | |
| Label on primary | 19.00:1 | AAA pass 4.5:1 | |
| Label on accent | 11.24:1 | AAA pass 4.5:1 | |
| Primary on background | 19.00:1 | AAA pass 3:1 | |
| Accent on background | 11.24: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 | #F0F8FF (Text 1) | #F5F5F5 (Text 2) | #F8F8FF (Text 3) | #FFFAF0 (Text 4) | #FFFFF0 (Text 5) |
|---|---|---|---|---|---|
| #F0F8FF | Same color | 1.02— | 1.01— | 1.03— | 1.06— |
| #F5F5F5 | 1.02— | Same color | 1.03— | 1.05— | 1.08— |
| #F8F8FF | 1.01— | 1.03— | Same color | 1.02— | 1.05— |
| #FFFAF0 | 1.03— | 1.05— | 1.02— | Same color | 1.03— |
| #FFFFF0 | 1.06— | 1.08— | 1.05— | 1.03— | Same color |
Shades
Shades and tints (50–950)
