#7F5342

Closest named color: Cocoa (#875F42). oklch(48.7% 0.065 41.9), rgb(127, 83, 66).

Aa

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

About this color

#7F5342 is a medium-dark, muted brown. In OKLCH its lightness is 49%, its chroma 0.065 and its hue 42°. Its hue sits on the warm side of the wheel. The nearest named color is Cocoa (#875F42), ΔE 0.038 away. White text reads best on it, at 6.52:1.

Hue familyBrowns
Lightnessmedium-dark (49%)
Chromamuted (0.065)
Temperaturewarm
Nearest nameCocoa (#875F42)
Black text3.21:1
White text6.52:1

Values

HEX#7F5342
RGBrgb(127, 83, 66)
HSLhsl(17, 32%, 38%)
OKLCHoklch(48.7% 0.065 41.9)

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 #7F5342 6.52:1 AA Lc -87.3 Fine for body text
Black text on #7F5342 3.21:1 AA large text Lc 21.8 Dividers and decoration only
#7F5342 text on white 6.52:1 AA Lc 82.2 Fine for body text
#7F5342 text on black 3.21:1 AA large text Lc -19.7 Dividers and decoration only

Tints and shades

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

    #F8F5F3

    oklch(97.2% 0.004 56.4)

  2. Step 100

    100

    #F0E8E5

    oklch(93.6% 0.01 41.9)

  3. Step 200

    200

    #E4D6D0

    oklch(88.6% 0.018 44.8)

  4. Step 300

    300

    #D3BAB1

    oklch(80.8% 0.031 40.8)

  5. Step 400

    400

    #BD9788

    oklch(70.7% 0.051 42.6)

  6. Step 500

    500

    #AC7D6B

    oklch(63.2% 0.065 41.9)

  7. Step 600

    600

    #976653

    oklch(55.7% 0.07 42)

  8. Step 700

    700 (this color)

    #7F5342

    oklch(48.7% 0.065 41.9)

  9. Step 800

    800

    #684537

    oklch(42.6% 0.054 42.6)

  10. Step 900

    900

    #553A30

    oklch(37.7% 0.042 41.2)

  11. Step 950

    950

    #32221C

    oklch(27% 0.027 41.4)

Export this scale for Tailwind in the Tailwind colors tool

#7F5342 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)#5E58410.059
Deuteranopia (no green cones)#6961420.053
Tritanopia (no blue cones)#894C4F0.036
Achromatopsia (no color)#5E5E5E0.065

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #7F5342

    #7F5342

    oklch(48.7% 0.065 41.9)

  • #30687A

    #30687A

    oklch(48.7% 0.065 221.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7F5342

    #7F5342

    oklch(48.7% 0.065 41.9)

  • #805056

    #805056

    oklch(48.7% 0.065 11.6)

  • #765934

    #765934

    oklch(48.5% 0.065 72)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #7F5342

    #7F5342

    oklch(48.7% 0.065 41.9)

  • #2B6B69

    #2B6B69

    oklch(48.6% 0.065 192.4)

  • #446283

    #446283

    oklch(48.7% 0.064 251.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7F5342

    #7F5342

    oklch(48.7% 0.065 41.9)

  • #3B6B54

    #3B6B54

    oklch(48.6% 0.065 161.9)

  • #595B84

    #595B84

    oklch(48.7% 0.066 281.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7F5342

    #7F5342

    oklch(48.7% 0.065 41.9)

  • #526740

    #526740

    oklch(48.6% 0.065 131.4)

  • #30687A

    #30687A

    oklch(48.7% 0.065 221.7)

  • #6C557A

    #6C557A

    oklch(48.7% 0.064 312.3)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #7F5342, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #7F5342 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.