PreviewingGo to this paletteOpen in generator
Code
/* Hot Cocoa — colorset.net */
:root {
--color-1: #F7F0E9;
--color-2: #6B3F2A;
--color-3: #D2584A;
--color-4: #E6D6C6;
--color-5: #241812;
--color-bg: #F7F0E9;
--color-surface: #FCF8F4;
--color-border: #E1D7CD;
--color-text: #241812;
--color-muted: #786961;
--color-primary: #C84F41;
--color-on-primary: #FFFFFF;
--color-accent: #918A84;
--color-on-accent: #241812;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #241812;
--color-surface: #2F231C;
--color-border: #48372F;
--color-text: #F7F0E9;
--color-muted: #948E87;
--color-primary: #C84F41;
--color-on-primary: #FFFFFF;
--color-accent: #7B6C64;
--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 | from palette · color 1 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #D2584A | adjusted for contrast · from #D2584A |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #D2584A | adjusted for contrast · from #6B3F2A |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.31:1 | AAA pass 4.5:1 | |
| Text on surface | 16.36:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.66:1 | AA pass 4.5:1 | |
| Label on primary | 4.52:1 | AA pass 4.5:1 | |
| Label on accent | 5.08:1 | AA pass 4.5:1 | |
| Primary on background | 4.00:1 | AA Large pass 3:1 | |
| Accent on background | 3.01:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.31:1 | AAA pass 4.5:1 | |
| Text on surface | 13.49:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.33:1 | AA pass 4.5:1 | |
| Label on primary | 4.52:1 | AA pass 4.5:1 | |
| Label on accent | 5.03:1 | AA pass 4.5:1 | |
| Primary on background | 3.83:1 | AA Large pass 3:1 | |
| Accent on background | 3.43: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 | #F7F0E9 (Text 1) | #6B3F2A (Text 2) | #D2584A (Text 3) | #E6D6C6 (Text 4) | #241812 (Text 5) |
|---|---|---|---|---|---|
| #F7F0E9 | Same color | 7.85AAA | 3.55AA Large | 1.26— | 15.31AAA |
| #6B3F2A | 7.85AAA | Same color | 2.21— | 6.25AA | 1.95— |
| #D2584A | 3.55AA Large | 2.21— | Same color | 2.83— | 4.31AA Large |
| #E6D6C6 | 1.26— | 6.25AA | 2.83— | Same color | 12.19AAA |
| #241812 | 15.31AAA | 1.95— | 4.31AA Large | 12.19AAA | Same color |
Shades
Shades and tints (50–950)
