PreviewingGo to this paletteOpen in generator
Code
/* Slate Residence — colorset.net */
:root {
--color-1: #F3F5F8;
--color-2: #454E58;
--color-3: #609378;
--color-4: #A9AFB4;
--color-5: #171B1F;
--color-bg: #F3F5F8;
--color-surface: #FBFCFE;
--color-border: #D8DCE3;
--color-text: #171B1F;
--color-muted: #696E73;
--color-primary: #609378;
--color-on-primary: #171B1F;
--color-accent: #8A8C8F;
--color-on-accent: #171B1F;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #171B1F;
--color-surface: #21262A;
--color-border: #353B42;
--color-text: #F3F5F8;
--color-muted: #8F9193;
--color-primary: #609378;
--color-on-primary: #171B1F;
--color-accent: #6A6F74;
--color-on-accent: #FFFFFF;
}
}
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 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #609378 | adjusted for contrast · from #609378 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.85:1 | AAA pass 4.5:1 | |
| Text on surface | 16.87:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.71:1 | AA pass 4.5:1 | |
| Label on primary | 4.90:1 | AA pass 4.5:1 | |
| Label on accent | 5.13:1 | AA pass 4.5:1 | |
| Primary on background | 3.24:1 | AA Large pass 3:1 | |
| Accent on background | 3.09:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.85:1 | AAA pass 4.5:1 | |
| Text on surface | 13.98:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.47:1 | AA pass 4.5:1 | |
| Label on primary | 4.90:1 | AA pass 4.5:1 | |
| Label on accent | 5.07:1 | AA pass 4.5:1 | |
| Primary on background | 4.90:1 | AA pass 3:1 | |
| Accent on background | 3.41:1 | AA Large 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 | #F3F5F8 (Text 1) | #454E58 (Text 2) | #609378 (Text 3) | #A9AFB4 (Text 4) | #171B1F (Text 5) |
|---|---|---|---|---|---|
| #F3F5F8 | Same color | 7.74AAA | 3.24AA Large | 2.03— | 15.85AAA |
| #454E58 | 7.74AAA | Same color | 2.39— | 3.82AA Large | 2.05— |
| #609378 | 3.24AA Large | 2.39— | Same color | 1.60— | 4.90AA |
| #A9AFB4 | 2.03— | 3.82AA Large | 1.60— | Same color | 7.81AAA |
| #171B1F | 15.85AAA | 2.05— | 4.90AA | 7.81AAA | Same color |
Shades
Shades and tints (50–950)
