PreviewingGo to this paletteOpen in generator
Code
/* Obsidian Gray — colorset.net */
:root {
--color-1: #0F0F0F;
--color-2: #1A1A1A;
--color-3: #2C2C2C;
--color-4: #3F3F3F;
--color-5: #525252;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #0F0F0F;
--color-muted: #656565;
--color-primary: #525252;
--color-on-primary: #FFFFFF;
--color-accent: #2C2C2C;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F0F;
--color-surface: #191919;
--color-border: #302C2D;
--color-text: #A4A4A4;
--color-muted: #828282;
--color-primary: #666666;
--color-on-primary: #FFFFFF;
--color-accent: #989898;
--color-on-accent: #0F0F0F;
}
}
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 #525252 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #525252 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #525252 |
| On primary | derived | derived |
| Accent | from palette · color 3 | adjusted for contrast · from #525252 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.89:1 | AAA pass 4.5:1 | |
| Text on surface | 16.37:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.44:1 | AA pass 4.5:1 | |
| Label on primary | 7.81:1 | AAA pass 4.5:1 | |
| Label on accent | 13.97:1 | AAA pass 4.5:1 | |
| Primary on background | 7.29:1 | AAA pass 3:1 | |
| Accent on background | 13.04:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.69:1 | AAA pass 4.5:1 | |
| Text on surface | 7.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 5.74:1 | AA pass 4.5:1 | |
| Label on accent | 6.64:1 | AA pass 4.5:1 | |
| Primary on background | 3.34:1 | AA Large pass 3:1 | |
| Accent on background | 6.64: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 | #0F0F0F (Text 1) | #1A1A1A (Text 2) | #2C2C2C (Text 3) | #3F3F3F (Text 4) | #525252 (Text 5) |
|---|---|---|---|---|---|
| #0F0F0F | Same color | 1.10— | 1.37— | 1.82— | 2.45— |
| #1A1A1A | 1.10— | Same color | 1.25— | 1.65— | 2.23— |
| #2C2C2C | 1.37— | 1.25— | Same color | 1.33— | 1.79— |
| #3F3F3F | 1.82— | 1.65— | 1.33— | Same color | 1.35— |
| #525252 | 2.45— | 2.23— | 1.79— | 1.35— | Same color |
Shades
Shades and tints (50–950)
