PreviewingGo to this paletteOpen in generator
Code
/* City Asphalt — colorset.net */
:root {
--color-1: #2D3748;
--color-2: #4A5568;
--color-3: #718096;
--color-4: #A0AEC0;
--color-5: #E2E8F0;
--color-bg: #F5F7F9;
--color-surface: #ECEEF0;
--color-border: #D1D5DB;
--color-text: #2D3748;
--color-muted: #5F6B7E;
--color-primary: #718096;
--color-on-primary: #000000;
--color-accent: #4A5568;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0C1015;
--color-surface: #161A20;
--color-border: #292E37;
--color-text: #E2E8F0;
--color-muted: #7E848B;
--color-primary: #718096;
--color-on-primary: #0C1015;
--color-accent: #5D687B;
--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 | adjusted for contrast · from #E2E8F0 | adjusted for contrast · from #2D3748 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #4A5568 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.16:1 | AAA pass 4.5:1 | |
| Text on surface | 10.31:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 5.23:1 | AA pass 4.5:1 | |
| Label on accent | 7.53:1 | AAA pass 4.5:1 | |
| Primary on background | 3.74:1 | AA Large pass 3:1 | |
| Accent on background | 7.01:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.48:1 | AAA pass 4.5:1 | |
| Text on surface | 14.16:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 4.75:1 | AA pass 4.5:1 | |
| Label on accent | 5.63:1 | AA pass 4.5:1 | |
| Primary on background | 4.75:1 | AA pass 3:1 | |
| Accent on background | 3.39: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 | #2D3748 (Text 1) | #4A5568 (Text 2) | #718096 (Text 3) | #A0AEC0 (Text 4) | #E2E8F0 (Text 5) |
|---|---|---|---|---|---|
| #2D3748 | Same color | 1.59— | 2.99— | 5.32AA | 9.73AAA |
| #4A5568 | 1.59— | Same color | 1.87— | 3.34AA Large | 6.10AA |
| #718096 | 2.99— | 1.87— | Same color | 1.78— | 3.26AA Large |
| #A0AEC0 | 5.32AA | 3.34AA Large | 1.78— | Same color | 1.83— |
| #E2E8F0 | 9.73AAA | 6.10AA | 3.26AA Large | 1.83— | Same color |
Shades
Shades and tints (50–950)
