Mocha color: hex codes, shades and palettes

Palettes built around mocha. Click any swatch to copy its hex code.

A mid brown with a grey cast, lighter than coffee and less red than chestnut. It works where a true brown would feel heavy.

Mocha hex, RGB, HSL and OKLCH

#7D6152
HEX
#7D6152
RGB
rgb(125, 97, 82)
HSL
hsl(21, 21%, 41%)
OKLCH
oklch(51.7% 0.043 49.6)
On white
5.67:1
On black
3.70:1

Shades of mocha

Eleven steps from one base color, generated in OKLCH so each step is an equal perceived step rather than an equal numeric one. Click a swatch to copy it.

Contrast and readability

Mocha on white measures 5.67:1 and on black 3.70:1. WCAG AA asks for 4.5:1 on normal text and 3:1 on large text and UI components, so the higher of those two decides which background it belongs on. In the scale above, 500 is the first to clear 4.5:1 on white, at 5.36:1.

The contrast checker reports every level for a given pair and suggests the nearest passing shade on the same hue. The color picker builds this same scale from any color you paste in.

Related colors:espresso, chocolate, coffee. See every shade on the colors index.