AfoliOpen Afoli →

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%.

Open in Afoli Colour tools →

#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

PairWCAG 2.x ratioAPCA LcResult
Cocoa text on white5.61 : 178AA — body text
Cocoa text on black3.75 : 1-24AA for large text only
White text on Cocoa5.61 : 1-83AA — body text
Black text on Cocoa3.75 : 126AA for large text only

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large text.

Palettes with this color

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

Sources and licences

Updated November 21, 2026