PreviewingGo to this paletteOpen in generator
Code
/* Cocoa Powder — colorset.net */
:root {
--color-1: #5C4033;
--color-2: #6F4E37;
--color-3: #7B5839;
--color-4: #8B6F47;
--color-5: #A0826D;
--color-bg: #FFF5EE;
--color-surface: #F5EBE4;
--color-border: #DFD2C9;
--color-text: #5C4033;
--color-muted: #806559;
--color-primary: #8B6F47;
--color-on-primary: #FFFFFF;
--color-accent: #6F4E37;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #160D09;
--color-surface: #211713;
--color-border: #382A24;
--color-text: #C0A08B;
--color-muted: #987F6D;
--color-primary: #8B6F47;
--color-on-primary: #FFFFFF;
--color-accent: #A0826D;
--color-on-accent: #160D09;
}
}
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 #A0826D | adjusted for contrast · from #5C4033 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #A0826D |
| Muted text | derived | derived |
| Primary | from palette · color 4 | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 2 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.74:1 | AAA pass 4.5:1 | |
| Text on surface | 8.00:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 4.71:1 | AA pass 4.5:1 | |
| Label on accent | 7.44:1 | AAA pass 4.5:1 | |
| Primary on background | 4.38:1 | AA Large pass 3:1 | |
| Accent on background | 6.93:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.89:1 | AAA pass 4.5:1 | |
| Text on surface | 7.22:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.10:1 | AA pass 4.5:1 | |
| Label on primary | 4.71:1 | AA pass 4.5:1 | |
| Label on accent | 5.39:1 | AA pass 4.5:1 | |
| Primary on background | 4.07:1 | AA Large pass 3:1 | |
| Accent on background | 5.39: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 | #5C4033 (Text 1) | #6F4E37 (Text 2) | #7B5839 (Text 3) | #8B6F47 (Text 4) | #A0826D (Text 5) |
|---|---|---|---|---|---|
| #5C4033 | Same color | 1.26— | 1.47— | 2.00— | 2.64— |
| #6F4E37 | 1.26— | Same color | 1.17— | 1.58— | 2.09— |
| #7B5839 | 1.47— | 1.17— | Same color | 1.35— | 1.79— |
| #8B6F47 | 2.00— | 1.58— | 1.35— | Same color | 1.32— |
| #A0826D | 2.64— | 2.09— | 1.79— | 1.32— | Same color |
Shades
Shades and tints (50–950)
