Cocoa color #875F42
Cocoa is a color name from the xkcd color survey for the hex code #875F42 — RGB 135, 95, 66, HSL 25°, 34%, 39%.
#875F42Cocoa
Color codes
- HEX
#875F42- RGB
rgb(135, 95, 66)- HSL
hsl(25, 34%, 39%)- CMYK
0%, 30%, 51%, 47%- OKLCH
oklch(52.1% 0.067 56.6)
Tints and shades
#FFF2E9#FED0AF#E2B596#C79C7D#AD8365#936A4D#7A5336#623D20#4A2709#311500#170600
Color harmonies
Complementary
#875F42#416F8B
Analogous
#8C5A54#875F42#7A673A
Triadic
#875F42#397668#6D618C
Split complementary
#875F42#33747C#576890
Tetradic
#875F42#4F7452#416F8B#7E5B7E
Contrast with text
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Cocoa text on white | 5.61 : 1 | 78 | AA — body text |
| Cocoa text on black | 3.75 : 1 | -24 | AA for large text only |
| White text on Cocoa | 5.61 : 1 | -83 | AA — body text |
| Black text on Cocoa | 3.75 : 1 | 26 | AA for large text only |
Palettes with this color
- Dark Tan & Dark Brown
- Burgundy & Lavender Blush
- Sand & Chocolate Brown (Earthy)
- Merlot & Peach Puff
- Claret & Misty Rose
- Peru & Marine Blue
Frequently asked questions
What is the hex code of Cocoa?
Cocoa has the hex code #875F42, which is RGB 135, 95, 66 and HSL 25°, 34%, 39%.
Which text color reads best on Cocoa?
White text: contrast 5.61 : 1 (black text: 3.75 : 1).
Which colors go well with Cocoa?
Its complementary color is #416F8B; analogous colors are #8C5A54 and #7A673A; a triadic set adds #397668 and #6D618C.
Similar colors
- Dirt Brown #836539
- Dark Taupe #7F684E
- Sepia #985E2B
- Dull Brown #876E4B
- Sienna #A0522D
- Earth #A2653E
- Milk Chocolate #7F4E1E
- Warm Brown #964E02
- Brownish #9C6D57
- Raw Sienna #9A6200
Sources and licences
- xkcd color survey (Randall Munroe, CC0 1.0)
- Afoli — conversions, shades, harmonies, WCAG 2.x / APCA contrast (tools/color/color-core.js)