PreviewingGo to this paletteOpen in generator
Code
/* Charcoal Soft — colorset.net */
:root {
--color-1: #36454F;
--color-2: #515968;
--color-3: #6C6D81;
--color-4: #87819A;
--color-5: #A295B3;
--color-bg: #F9F5FE;
--color-surface: #EFEBF5;
--color-border: #D7D2DF;
--color-text: #36454F;
--color-muted: #5C6C76;
--color-primary: #87819A;
--color-on-primary: #000000;
--color-accent: #515968;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0B1013;
--color-surface: #151A1E;
--color-border: #272F35;
--color-text: #AEA1C0;
--color-muted: #8A7F99;
--color-primary: #87819A;
--color-on-primary: #0B1013;
--color-accent: #596974;
--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 #A295B3 | adjusted for contrast · from #36454F |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #A295B3 |
| Muted text | derived | derived |
| Primary | from palette · color 4 | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #6C6D81 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.20:1 | AAA pass 4.5:1 | |
| Text on surface | 8.43:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 5.64:1 | AA pass 4.5:1 | |
| Label on accent | 7.05:1 | AAA pass 4.5:1 | |
| Primary on background | 3.46:1 | AA Large pass 3:1 | |
| Accent on background | 6.55:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.89:1 | AAA pass 4.5:1 | |
| Text on surface | 7.23:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 5.13:1 | AA pass 4.5:1 | |
| Label on accent | 5.68:1 | AA pass 4.5:1 | |
| Primary on background | 5.13:1 | AA pass 3:1 | |
| Accent on background | 3.37: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 | #36454F (Text 1) | #515968 (Text 2) | #6C6D81 (Text 3) | #87819A (Text 4) | #A295B3 (Text 5) |
|---|---|---|---|---|---|
| #36454F | Same color | 1.40— | 1.95— | 2.66— | 3.53AA Large |
| #515968 | 1.40— | Same color | 1.39— | 1.89— | 2.51— |
| #6C6D81 | 1.95— | 1.39— | Same color | 1.36— | 1.81— |
| #87819A | 2.66— | 1.89— | 1.36— | Same color | 1.33— |
| #A295B3 | 3.53AA Large | 2.51— | 1.81— | 1.33— | Same color |
Shades
Shades and tints (50–950)
