Medium Brown #7F5112

Medium Brown is a medium-dark, moderately saturated brown with hex code #7F5112 and RGB rgb(127, 81, 18).

Aa

White text reads best on this color (6.80:1).

About this color

#7F5112 is a medium-dark, moderately saturated brown. In OKLCH its lightness is 48%, its chroma 0.096 and its hue 69°. Its hue sits on the warm side of the wheel. It is the named color Medium Brown. White text reads best on it, at 6.80:1.

Hue familyBrowns
Lightnessmedium-dark (48%)
Chromamoderately saturated (0.096)
Temperaturewarm
Nearest nameMedium Brown
Black text3.08:1
White text6.80:1

Colors that go with Medium Brown

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

Color palettes with Medium Brown

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

Similar named colors

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

More about Medium Brown

How to make Medium Brown

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 brown
  • 1 part orange

Recipe result: #844F27, a difference of ΔE 0.022 from Medium Brown. That is very close: most people will not see the difference.

What colors make brown? | Color mixing chart

Codes for Medium Brown in every format

HEX#7F5112
RGBrgb(127, 81, 18)
HSLhsl(35, 75%, 28%)
OKLCHoklch(47.6% 0.096 68.7)

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 #7F5112 6.80:1 AA Lc -88.2 Fine for body text
Black text on #7F5112 3.08:1 AA large text Lc 20.8 Dividers and decoration only
#7F5112 text on white 6.80:1 AA Lc 83.2 Fine for body text
#7F5112 text on black 3.08:1 AA large text Lc -18.7 Dividers and decoration only

Shades and tints of Medium Brown

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

  1. Step 50

    50

    #F8F5F1

    oklch(97.1% 0.006 75.4)

  2. Step 100

    100

    #F0E8E1

    oklch(93.5% 0.013 63.9)

  3. Step 200

    200

    #E5D6C7

    oklch(88.4% 0.026 67.5)

  4. Step 300

    300

    #D5BCA1

    oklch(80.9% 0.047 69.3)

  5. Step 400

    400

    #BF986E

    oklch(70.6% 0.074 68.3)

  6. Step 500

    500

    #AF7E46

    oklch(63% 0.095 68.3)

  7. Step 600

    600

    #9A6726

    oklch(55.6% 0.103 68.9)

  8. Step 700

    700 (this color)

    #7F5112

    oklch(47.6% 0.096 68.7)

  9. Step 800

    800

    #6B4617

    oklch(42.7% 0.079 68.7)

  10. Step 900

    900

    #573B1A

    oklch(37.7% 0.062 68.4)

  11. Step 950

    950

    #332310

    oklch(27.1% 0.039 69.6)

Export this scale for Tailwind in the Tailwind colors tool

Medium Brown 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)#6054050.059
Deuteranopia (no green cones)#6B5F140.051
Tritanopia (no blue cones)#8B46450.075
Achromatopsia (no color)#5B5B5B0.096

Use Medium Brown 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.