Mocha #9D7651

Mocha is a medium-dark, moderately saturated brown with hex code #9D7651 and RGB rgb(157, 118, 81).

Aa

Black text reads best on this color (5.14:1).

About this color

#9D7651 is a medium-dark, moderately saturated brown. In OKLCH its lightness is 60%, its chroma 0.071 and its hue 64°. Its hue sits on the warm side of the wheel. It is the named color Mocha. Black text reads best on it, at 5.14:1.

Hue familyBrowns
Lightnessmedium-dark (60%)
Chromamoderately saturated (0.071)
Temperaturewarm
Nearest nameMocha
Black text5.14:1
White text4.08:1

Colors that go with Mocha

Matches found by rotating Mocha around the OKLCH hue wheel, each labelled with the closest name in our list.

Analogous

Neighbouring hues, 30° either side.

Open the analogous palette in the generator

Color palettes with Mocha

Curated color palettes that contain a color within ΔE 0.06 (OKLab) of Mocha, closest first.

Similar named colors

The eight named colors closest to Mocha, with their ΔE distance.

More about Mocha

How to make Mocha

A starting recipe from common paint colors, found with a spectral paint model (the color mixer’s paint mode). Real pigments vary, so mix a small test batch and adjust.

  • 3 parts pink
  • 3 parts brown
  • 1 part green

Recipe result: #9B744E, a difference of ΔE 0.006 from Mocha. That is very close: most people will not see the difference.

What colors make brown? | Color mixing chart

Codes for Mocha in every format

HEX#9D7651
RGBrgb(157, 118, 81)
HSLhsl(29, 32%, 47%)
OKLCHoklch(59.6% 0.071 64.3)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #9D7651 4.08:1 AA large text Lc -73.4 Content text, not long reading
Black text on #9D7651 5.14:1 AA Lc 36.2 Non-text elements, placeholder text
#9D7651 text on white 4.08:1 AA large text Lc 67.9 Content text, not long reading
#9D7651 text on black 5.14:1 AA Lc -33.7 Non-text elements, placeholder text

Shades and tints of Mocha

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 500.

  1. Step 50

    50

    #F8F5F2

    oklch(97.2% 0.005 67.8)

  2. Step 100

    100

    #EFE9E3

    oklch(93.7% 0.01 67.7)

  3. Step 200

    200

    #E3D7CC

    oklch(88.6% 0.02 65.1)

  4. Step 300

    300

    #D1BCAA

    oklch(80.8% 0.034 62.9)

  5. Step 400

    400

    #BA9A7D

    oklch(70.8% 0.056 63.9)

  6. Step 500

    500 (this color)

    #9D7651

    oklch(59.6% 0.071 64.3)

  7. Step 600

    600

    #936941

    oklch(55.5% 0.077 63.7)

  8. Step 700

    700

    #7D5833

    oklch(49.1% 0.072 64.8)

  9. Step 800

    800

    #66482B

    oklch(42.8% 0.059 64.1)

  10. Step 900

    900

    #533C27

    oklch(37.6% 0.046 63.1)

  11. Step 950

    950

    #312317

    oklch(26.9% 0.03 61.6)

Export this scale for Tailwind in the Tailwind colors tool

Mocha with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#83784E0.044
Deuteranopia (no green cones)#8C81520.039
Tritanopia (no blue cones)#A96D6D0.057
Achromatopsia (no color)#7E7E7E0.071

Use Mocha in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.