PreviewingGo to this paletteOpen in generator
Code
/* Carbon Black — colorset.net */
:root {
--color-1: #121212;
--color-2: #1F1F1F;
--color-3: #2D2D2D;
--color-4: #3D3D3D;
--color-5: #4D4D4D;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #121212;
--color-muted: #676767;
--color-primary: #4D4D4D;
--color-on-primary: #FFFFFF;
--color-accent: #1F1F1F;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #121212;
--color-surface: #1C1C1C;
--color-border: #333031;
--color-text: #A8A8A8;
--color-muted: #868686;
--color-primary: #696969;
--color-on-primary: #FFFFFF;
--color-accent: #9B9B9B;
--color-on-accent: #121212;
}
}
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 #4D4D4D | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #4D4D4D |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #4D4D4D |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #4D4D4D |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.49:1 | AAA pass 4.5:1 | |
| Text on surface | 16.00:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.28:1 | AA pass 4.5:1 | |
| Label on primary | 8.45:1 | AAA pass 4.5:1 | |
| Label on accent | 16.48:1 | AAA pass 4.5:1 | |
| Primary on background | 7.89:1 | AAA pass 3:1 | |
| Accent on background | 15.39:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.88:1 | AAA pass 4.5:1 | |
| Text on surface | 7.17:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.15:1 | AA pass 4.5:1 | |
| Label on primary | 5.49:1 | AA pass 4.5:1 | |
| Label on accent | 6.74:1 | AA pass 4.5:1 | |
| Primary on background | 3.41:1 | AA Large pass 3:1 | |
| Accent on background | 6.74:1 | AA 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 | #121212 (Text 1) | #1F1F1F (Text 2) | #2D2D2D (Text 3) | #3D3D3D (Text 4) | #4D4D4D (Text 5) |
|---|---|---|---|---|---|
| #121212 | Same color | 1.14— | 1.36— | 1.72— | 2.22— |
| #1F1F1F | 1.14— | Same color | 1.20— | 1.52— | 1.95— |
| #2D2D2D | 1.36— | 1.20— | Same color | 1.27— | 1.63— |
| #3D3D3D | 1.72— | 1.52— | 1.27— | Same color | 1.28— |
| #4D4D4D | 2.22— | 1.95— | 1.63— | 1.28— | Same color |
Shades
Shades and tints (50–950)
