PreviewingGo to this paletteOpen in generator
Code
/* Lava Rock — colorset.net */
:root {
--color-1: #0B0605;
--color-2: #1A1110;
--color-3: #302321;
--color-4: #D23F18;
--color-5: #E7D3C4;
--color-bg: #FCF5F1;
--color-surface: #F2ECE8;
--color-border: #DCD3CC;
--color-text: #0B0605;
--color-muted: #655D5B;
--color-primary: #D23F18;
--color-on-primary: #FFFFFF;
--color-accent: #1A1110;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0B0605;
--color-surface: #150F0D;
--color-border: #2B211F;
--color-text: #E7D3C4;
--color-muted: #8D7B6D;
--color-primary: #D23F18;
--color-on-primary: #FFFFFF;
--color-accent: #665E5C;
--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 #E7D3C4 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| 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 #D23F18 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.68:1 | AAA pass 4.5:1 | |
| Text on surface | 17.21:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.95:1 | AA pass 4.5:1 | |
| Label on primary | 4.70:1 | AA pass 4.5:1 | |
| Label on accent | 18.56:1 | AAA pass 4.5:1 | |
| Primary on background | 4.36:1 | AA Large pass 3:1 | |
| Accent on background | 17.21:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.92:1 | AAA pass 4.5:1 | |
| Text on surface | 13.12:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 4.70:1 | AA pass 4.5:1 | |
| Label on accent | 6.32:1 | AA pass 4.5:1 | |
| Primary on background | 4.28:1 | AA Large pass 3:1 | |
| Accent on background | 3.19: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 | #0B0605 (Text 1) | #1A1110 (Text 2) | #302321 (Text 3) | #D23F18 (Text 4) | #E7D3C4 (Text 5) |
|---|---|---|---|---|---|
| #0B0605 | Same color | 1.09— | 1.33— | 4.28AA Large | 13.92AAA |
| #1A1110 | 1.09— | Same color | 1.23— | 3.95AA Large | 12.83AAA |
| #302321 | 1.33— | 1.23— | Same color | 3.22AA Large | 10.46AAA |
| #D23F18 | 4.28AA Large | 3.95AA Large | 3.22AA Large | Same color | 3.25AA Large |
| #E7D3C4 | 13.92AAA | 12.83AAA | 10.46AAA | 3.25AA Large | Same color |
Shades
Shades and tints (50–950)
