Add to Chrome

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

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

Mocha color values

#7D6152rgb(125, 97, 82)
Color spaces of #7d6152
RGB1259782
HSL21°21%41%
HSV21°34%49%
CMYK0.000.220.340.51
XYZ14.255513.51939.8396
Yxy13.51930.37900.3594
CIE-Lab43.53559.036512.8971
Hunter Lab36.76864.86099.8714
OKLCH51.7%0.04349.6°

#7D6152 is 125 red, 97 green and 82 blue. Its red channel carries the most of it. The nearest of the 216 web safe colors is #666666.

CIE-Lab, XYZ and Yxy are measured against D65, the white point sRGB itself is defined against. Hunter Lab uses the original illuminant C constants, which is what paint and plastics specifications quote, so the two Lab rows are not directly comparable. CMYK is the plain arithmetic conversion: real ink values depend on the press, the paper and the profile.

Base numbers
BaseRedGreenBlue
Binary011111010110000101010010
Octal175141122
Decimal1259782
Hex7D6152

#7d6152 mixed with black

Ten even steps of the classic shade ramp, worked out in RGB, which is how the term has always been defined and how other references list it. The OKLCH scale further down this page answers a different question: it steps by equal perceived amounts, so its values are not the same.

  • #7D6152
  • #705749
  • #644D41
  • #574339
  • #4B3A31
  • #3E3029
  • #322620
  • #251D18
  • #181310
  • #0C0908
  • #000000

#7d6152 mixed with white

The tint ramp, by the same rule in the other direction.

  • #7D6152
  • #8A7063
  • #978074
  • #A49085
  • #B1A097
  • #BEB0A8
  • #CBBFB9
  • #D8CFCB
  • #E5DFDC
  • #F2EFED
  • #FFFFFF

Channel shares

  • Red41.1%
  • Green31.9%
  • Blue27.0%

Color schemes

Turned in OKLCH rather than HSL, so every member keeps the lightness and chroma of the original instead of one of them arriving washed out.

Complementary

  • #7D6152
  • #4E6D7C

Triadic

  • #7D6152
  • #4F7064
  • #676480

Analogous

  • #7D6152
  • #75654C
  • #7F5E5E

Monochromatic

  • #1A0600
  • #392114
  • #5A4032
  • #7D6152
  • #A28474
  • #C8A998
  • #EFCFBE

#7d6152 on black and on white

The quick brown fox jumps over the lazy dog. 3.70:1

The quick brown fox jumps over the lazy dog. 5.67:1

Body text needs 4.5:1 to meet AA and large text needs 3:1, so a ratio tells you which of the two backgrounds this color can be read on, and at what size.

CSS for #7d6152

color: #7d6152;
background-color: #7d6152;
border: 3px solid #7d6152;
box-shadow: 1px 1px 3px 2px #7d6152;
text-shadow: 4px 4px 2px rgba(125, 97, 82, 0.8);

/* Perceptually even, and what a modern stylesheet wants */
color: oklch(51.7% 0.043 49.6);

The OKLCH form is the same color stated so that lightening or darkening it moves by an amount the eye agrees with. Every current browser understands 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.

Get Palette Vault from the Microsoft Store