Mocha Color Codes
Mocha is a mid-tone, muted orange with the hex code #9D7651, RGB values of 157, 118, 81 and an HSL value of hsl(29, 32%, 47%).
| HEX | #9D7651 |
|---|---|
| RGB | 157, 118, 81 |
| HSL | hsl(29, 32%, 47%) |
| HSV | 29°, 48%, 62% |
| CMYK | 0%, 25%, 48%, 38% |
| LAB | 52.64, 10.51, 26.26 |
| CIELCHuv | 52.64, 41.28, 45.72° |
- Nearest Pantone
- PMS 4645 C ΔE 6.8 · approximate
- Nearest CSS name
-
siennaΔE 22.8
Community source color-name-list, community color-name index
Mocha Color Hex Code
The Mocha color hex code is #9D7651. Those six digits are three pairs, 9D for red, 76 for green and 51 for blue, which is the same triplet a browser reads from the CSS value below.
#9D7651
Mocha Color RGB Code
The Mocha RGB code is rgb(157, 118, 81). Red carries the most light at 157 of 255, which is what puts this color where it sits on the wheel.
rgb(157, 118, 81)
Mocha Color HSV Code
The Mocha HSV code is 29°, 48%, 62%. Read it as a hue of 29 degrees, 48% saturation and 62% value, which is the form most color pickers use because moving one number changes one thing.
29°, 48%, 62%
Mocha Color CIELChuv Code
The Mocha CIELCHuv code is 52.64, 41.28, 45.72°. Unlike hex or RGB this one is perceptual: lightness 53 means mid-toned to the eye rather than to the screen, and chroma 41 is how far it sits from grey.
52.64, 41.28, 45.72°
Tonal scale
What are Mocha Color Palettes?
A shade mixes toward black, a tint toward white, a tone toward grey. Every step keeps the hue and is copy-ready.
Shades, toward black
Tints, toward white
Tones, toward grey
Palettes
What are Mocha Color Palette Codes?
Each of these is a hue rotation from #9D7651. They are generated, not curated, so they are exact.
Complementary
Directly opposite sits #51789D, a mid-tone, muted azure blue. No other pairing separates two hues further, so this is the one to reach for when a single element has to win attention. Neither is especially saturated, so this pairing stays calm enough for large areas of both.
Analogous
#9D5152 and #9D9C51 sit 30 degrees either side. All three share most of their hue, so the set reads as one family instead of three separate decisions. Good for backgrounds and for state variations that should not announce themselves.
Triadic
#519D76 and #76519D complete an even 120 degree split. Three fully independent hues, so one has to lead: keep this base dominant and let the other two appear in small quantities.
Split-complementary
Instead of the direct complement, this takes the two hues either side of it: #519D9C and #51529D. Almost the same contrast, without the edge shimmer a true complementary pair produces at high saturation.
Tetradic
Two complementary pairs forming a rectangle: this base with #51789D, and #529D51 with #9C519D. The richest of the five and the hardest to balance, so treat this base as the lead and hold the other three well back.
Accessibility
Contrast checker: is Mocha accessible?
Measured against white and against black, with a separate verdict for each element type. Small text, large text and UI components have different thresholds, so one pass or fail for the whole color would be wrong roughly a third of the time.
White background
4.08:14.08
contrast ratio on white background
| Element | AA | AAA |
|---|---|---|
| Small text needs 4.5:1 / 7:1 | Fails | Fails |
| Large text needs 3:1 / 4.5:1 | Passes | Fails |
| UI component needs 3:1 | Passes | n/a |
Black background
5.14:15.14
contrast ratio on black background
| Element | AA | AAA |
|---|---|---|
| Small text needs 4.5:1 / 7:1 | Passes | Fails |
| Large text needs 3:1 / 4.5:1 | Passes | Passes |
| UI component needs 3:1 | Passes | n/a |
Against white Mocha reaches 4.08:1, enough for large text and UI borders, but short of the 4.5:1 that body copy needs. Darken it for anything set small. Text placed on it should be black, which gives 5.14:1.
Color vision
How Mocha looks with color blindness
Around 300 million people see color differently from the way it is specified. Each card shows the actual color beside how it appears, and how common that form of vision is.
Protanopia
About 1% of men#8E8D5C
Mocha shifts noticeably here. ΔE 18.7
No working red cones. Reds darken sharply and drift toward the same muddy olive as green.
Deuteranopia
About 1% of men#90935E
Mocha shifts noticeably here. ΔE 21.4
No working green cones. With the milder deuteranomaly at nearer 6% of men, this is by far the most common form, and the one worth designing around.
Tritanopia
About 1 in 10,000#9B6365
Mocha shifts noticeably here. ΔE 22.3
No working blue cones. Blues shift toward green and yellows toward pink. Rare, and unlike the others it is not sex-linked, so it affects men and women equally.
Achromatopsia
About 1 in 30,000#7E7E7E
Mocha changes substantially here. ΔE 28.3
No color vision at all. Also a fair proxy for how the color survives a greyscale print or a failing screen.
To a deuteranope, the most common form, Mocha reads as #90935E. That is a shift of ΔE 21.4, so it is a different color to roughly one man in sixteen. It sits in the red end of the spectrum, which is exactly where red-green deficiency does its damage. Never pair it with a green of similar lightness to signal a difference in meaning: to a large minority the two become one color. The widest shift is under tritanopia, at ΔE 22.3. The rule this leads to needs no simulator: never let color be the only thing carrying a message. Add a label, an icon, or a clear difference in lightness, and the problem disappears for everyone.
Snippets
Using Mocha in code
:root {
--mocha: #9D7651;
}
.example {
color: var(--mocha);
}
// tailwind.config.js
theme: {
extend: {
colors: {
'mocha': '#9D7651',
},
},
}
// SwiftUI takes 0–1 components, not 0–255.
let mocha = Color(
red: 0.616,
green: 0.463,
blue: 0.318
)
<!-- res/values/colors.xml -->
<color name="mocha">#9D7651</color>
// Flutter wants ARGB: FF for full opacity, then the hex.
const mocha = Color(0xFF9D7651);