#8D7F40

Closest named color: Drab (#828344). oklch(59.5% 0.085 97.1), rgb(141, 127, 64).

Aa

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

About this color

#8D7F40 is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 60%, its chroma 0.085 and its hue 97°. Its hue sits on the warm side of the wheel. The nearest named color is Drab (#828344), ΔE 0.019 away. Black text reads best on it, at 5.24:1.

Hue familyYellows
Lightnessmedium-dark (60%)
Chromamoderately saturated (0.085)
Temperaturewarm
Nearest nameDrab (#828344)
Black text5.24:1
White text4.00:1

Values

HEX#8D7F40
RGBrgb(141, 127, 64)
HSLhsl(49, 38%, 40%)
OKLCHoklch(59.5% 0.085 97.1)

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 #8D7F40 4.00:1 AA large text Lc -72.8 Content text, not long reading
Black text on #8D7F40 5.24:1 AA Lc 36.8 Non-text elements, placeholder text
#8D7F40 text on white 4.00:1 AA large text Lc 67.3 Content text, not long reading
#8D7F40 text on black 5.24:1 AA Lc -34.4 Non-text elements, placeholder text

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

  1. Step 50

    50

    #F6F5F1

    oklch(97% 0.005 95.1)

  2. Step 100

    100

    #ECEAE1

    oklch(93.6% 0.012 96.4)

  3. Step 200

    200

    #DDD9C9

    oklch(88.4% 0.022 95.3)

  4. Step 300

    300

    #C8C1A3

    oklch(80.9% 0.041 96.3)

  5. Step 400

    400

    #ACA171

    oklch(70.7% 0.066 96.8)

  6. Step 500

    500 (this color)

    #8D7F40

    oklch(59.5% 0.085 97.1)

  7. Step 600

    600

    #83732C

    oklch(55.6% 0.092 96.5)

  8. Step 700

    700

    #6E601F

    oklch(48.9% 0.085 96.9)

  9. Step 800

    800

    #5A4F1C

    oklch(42.7% 0.071 97.1)

  10. Step 900

    900

    #4A421D

    oklch(37.8% 0.056 97.3)

  11. Step 950

    950

    #2B2712

    oklch(27.1% 0.035 98.8)

Export this scale for Tailwind in the Tailwind colors tool

#8D7F40 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)#8A7C3A0.011
Deuteranopia (no green cones)#8E81430.006
Tritanopia (no blue cones)#9777700.077
Achromatopsia (no color)#7F7F7F0.085

Harmonies

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

Complementary

The opposite hue (180°).

  • #8D7F40

    #8D7F40

    oklch(59.5% 0.085 97.1)

  • #727AB1

    #727AB1

    oklch(59.5% 0.084 277.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #8D7F40

    #8D7F40

    oklch(59.5% 0.085 97.1)

  • #A17545

    #A17545

    oklch(59.6% 0.085 67.4)

  • #718850

    #718850

    oklch(59.4% 0.084 127)

Open the analogous palette in the generator

Split complementary

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

  • #8D7F40

    #8D7F40

    oklch(59.5% 0.085 97.1)

  • #5383AF

    #5383AF

    oklch(59.4% 0.086 247.4)

  • #8C71A7

    #8C71A7

    oklch(59.5% 0.086 306.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #8D7F40

    #8D7F40

    oklch(59.5% 0.085 97.1)

  • #388BA0

    #388BA0

    oklch(59.5% 0.085 217.4)

  • #A06B91

    #A06B91

    oklch(59.6% 0.085 337.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #8D7F40

    #8D7F40

    oklch(59.5% 0.085 97.1)

  • #368F87

    #368F87

    oklch(59.5% 0.085 186.9)

  • #727AB1

    #727AB1

    oklch(59.5% 0.084 277.2)

  • #AA6976

    #AA6976

    oklch(59.5% 0.085 7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #8D7F40 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.