PreviewingGo to this paletteOpen in generator
Code
/* Mocha Velvet — colorset.net */
:root {
--color-1: #2B1308;
--color-2: #9C613F;
--color-3: #82C8B0;
--color-4: #5D3827;
--color-5: #F4E9DD;
--color-bg: #F4E9DD;
--color-surface: #F8F1EA;
--color-border: #DDD0C1;
--color-text: #2B1308;
--color-muted: #7E6257;
--color-primary: #9C613F;
--color-on-primary: #FFFFFF;
--color-accent: #4D937C;
--color-on-accent: #2B1308;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #2B1308;
--color-surface: #371E12;
--color-border: #4C3429;
--color-text: #F4E9DD;
--color-muted: #93897E;
--color-primary: #9C613F;
--color-on-primary: #FFFFFF;
--color-accent: #82C8B0;
--color-on-accent: #2B1308;
}
}
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 | from palette · color 5 | 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 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #9C613F | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.63:1 | AAA pass 4.5:1 | |
| Text on surface | 15.64:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.65:1 | AA pass 4.5:1 | |
| Label on primary | 5.01:1 | AA pass 4.5:1 | |
| Label on accent | 4.82:1 | AA pass 4.5:1 | |
| Primary on background | 4.18:1 | AA Large pass 3:1 | |
| Accent on background | 3.04:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.63:1 | AAA pass 4.5:1 | |
| Text on surface | 12.93:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.10:1 | AA pass 4.5:1 | |
| Label on primary | 5.01:1 | AA pass 4.5:1 | |
| Label on accent | 9.04:1 | AAA pass 4.5:1 | |
| Primary on background | 3.50:1 | AA Large pass 3:1 | |
| Accent on background | 9.04: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 | #2B1308 (Text 1) | #9C613F (Text 2) | #82C8B0 (Text 3) | #5D3827 (Text 4) | #F4E9DD (Text 5) |
|---|---|---|---|---|---|
| #2B1308 | Same color | 3.50AA Large | 9.04AAA | 1.72— | 14.63AAA |
| #9C613F | 3.50AA Large | Same color | 2.58— | 2.04— | 4.18AA Large |
| #82C8B0 | 9.04AAA | 2.58— | Same color | 5.26AA | 1.62— |
| #5D3827 | 1.72— | 2.04— | 5.26AA | Same color | 8.52AAA |
| #F4E9DD | 14.63AAA | 4.18AA Large | 1.62— | 8.52AAA | Same color |
Shades
Shades and tints (50–950)
