PreviewingGo to this paletteOpen in generator
Code
/* Obsidian Black — colorset.net */
:root {
--color-1: #1C1C1C;
--color-2: #333333;
--color-3: #4D4D4D;
--color-4: #666666;
--color-5: #808080;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #1C1C1C;
--color-muted: #696969;
--color-primary: #808080;
--color-on-primary: #000000;
--color-accent: #333333;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1C1C1C;
--color-surface: #272727;
--color-border: #3F3B3C;
--color-text: #B4B4B4;
--color-muted: #8F8F8F;
--color-primary: #808080;
--color-on-primary: #000000;
--color-accent: #B4B4B4;
--color-on-accent: #1C1C1C;
}
}
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 #808080 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #808080 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #808080 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.91:1 | AAA pass 4.5:1 | |
| Text on surface | 14.56:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.12:1 | AA pass 4.5:1 | |
| Label on primary | 5.32:1 | AA pass 4.5:1 | |
| Label on accent | 12.63:1 | AAA pass 4.5:1 | |
| Primary on background | 3.69:1 | AA Large pass 3:1 | |
| Accent on background | 11.79:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.22:1 | AAA pass 4.5:1 | |
| Text on surface | 7.20:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.27:1 | AA pass 4.5:1 | |
| Label on primary | 5.32:1 | AA pass 4.5:1 | |
| Label on accent | 8.22:1 | AAA pass 4.5:1 | |
| Primary on background | 4.32:1 | AA Large pass 3:1 | |
| Accent on background | 8.22: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 | #1C1C1C (Text 1) | #333333 (Text 2) | #4D4D4D (Text 3) | #666666 (Text 4) | #808080 (Text 5) |
|---|---|---|---|---|---|
| #1C1C1C | Same color | 1.35— | 2.02— | 2.97— | 4.32AA Large |
| #333333 | 1.35— | Same color | 1.49— | 2.20— | 3.20AA Large |
| #4D4D4D | 2.02— | 1.49— | Same color | 1.47— | 2.14— |
| #666666 | 2.97— | 2.20— | 1.47— | Same color | 1.45— |
| #808080 | 4.32AA Large | 3.20AA Large | 2.14— | 1.45— | Same color |
Shades
Shades and tints (50–950)
