PreviewingGo to this paletteOpen in generator
Code
/* Volcanic Glass — colorset.net */
:root {
--color-1: #0B0B0B;
--color-2: #1D1D1D;
--color-3: #2F2F2F;
--color-4: #414141;
--color-5: #535353;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #0B0B0B;
--color-muted: #626262;
--color-primary: #535353;
--color-on-primary: #FFFFFF;
--color-accent: #1D1D1D;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0B0B0B;
--color-surface: #151515;
--color-border: #2B2829;
--color-text: #A2A2A2;
--color-muted: #7F7F7F;
--color-primary: #646464;
--color-on-primary: #FFFFFF;
--color-accent: #969696;
--color-on-accent: #0B0B0B;
}
}
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 #535353 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #535353 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #535353 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #535353 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.37:1 | AAA pass 4.5:1 | |
| Text on surface | 16.81:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.69:1 | AA pass 4.5:1 | |
| Label on primary | 7.69:1 | AAA pass 4.5:1 | |
| Label on accent | 16.86:1 | AAA pass 4.5:1 | |
| Primary on background | 7.18:1 | AAA pass 3:1 | |
| Accent on background | 15.74:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.71:1 | AAA pass 4.5:1 | |
| Text on surface | 7.15:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.92:1 | AA pass 4.5:1 | |
| Label on primary | 5.92:1 | AA pass 4.5:1 | |
| Label on accent | 6.65:1 | AA pass 4.5:1 | |
| Primary on background | 3.33:1 | AA Large pass 3:1 | |
| Accent on background | 6.65: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 | #0B0B0B (Text 1) | #1D1D1D (Text 2) | #2F2F2F (Text 3) | #414141 (Text 4) | #535353 (Text 5) |
|---|---|---|---|---|---|
| #0B0B0B | Same color | 1.17— | 1.47— | 1.93— | 2.56— |
| #1D1D1D | 1.17— | Same color | 1.26— | 1.65— | 2.19— |
| #2F2F2F | 1.47— | 1.26— | Same color | 1.31— | 1.74— |
| #414141 | 1.93— | 1.65— | 1.31— | Same color | 1.33— |
| #535353 | 2.56— | 2.19— | 1.74— | 1.33— | Same color |
Shades
Shades and tints (50–950)
