PreviewingGo to this paletteOpen in generator
Code
/* Bitter Cocoa — colorset.net */
:root {
--color-1: #3D2314;
--color-2: #4F2F1F;
--color-3: #5C4033;
--color-4: #6F4E37;
--color-5: #8B7355;
--color-bg: #FEF5EC;
--color-surface: #F4ECE2;
--color-border: #DED3C6;
--color-text: #3D2314;
--color-muted: #7E6456;
--color-primary: #8B7355;
--color-on-primary: #000000;
--color-accent: #4F2F1F;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #160D08;
--color-surface: #211712;
--color-border: #382A23;
--color-text: #B9A083;
--color-muted: #928069;
--color-primary: #8B7355;
--color-on-primary: #000000;
--color-accent: #815D4C;
--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 #8B7355 | adjusted for contrast · from #3D2314 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #8B7355 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #6F4E37 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.45:1 | AAA pass 4.5:1 | |
| Text on surface | 12.38:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.07:1 | AA pass 4.5:1 | |
| Label on primary | 4.68:1 | AA pass 4.5:1 | |
| Label on accent | 11.94:1 | AAA pass 4.5:1 | |
| Primary on background | 4.16:1 | AA Large pass 3:1 | |
| Accent on background | 11.08:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.69:1 | AAA pass 4.5:1 | |
| Text on surface | 7.04:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 4.68:1 | AA pass 4.5:1 | |
| Label on accent | 5.83:1 | AA pass 4.5:1 | |
| Primary on background | 4.27:1 | AA Large pass 3:1 | |
| Accent on background | 3.29: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 | #3D2314 (Text 1) | #4F2F1F (Text 2) | #5C4033 (Text 3) | #6F4E37 (Text 4) | #8B7355 (Text 5) |
|---|---|---|---|---|---|
| #3D2314 | Same color | 1.21— | 1.54— | 1.95— | 3.23AA Large |
| #4F2F1F | 1.21— | Same color | 1.27— | 1.60— | 2.66— |
| #5C4033 | 1.54— | 1.27— | Same color | 1.26— | 2.09— |
| #6F4E37 | 1.95— | 1.60— | 1.26— | Same color | 1.66— |
| #8B7355 | 3.23AA Large | 2.66— | 2.09— | 1.66— | Same color |
Shades
Shades and tints (50–950)
