#8A771F

Closest named color: Hazel (#8E7618). oklch(57.1% 0.106 96.4), rgb(138, 119, 31).

Aa

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

About this color

#8A771F is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 57%, its chroma 0.106 and its hue 96°. Its hue sits on the warm side of the wheel. The nearest named color is Hazel (#8E7618), ΔE 0.007 away. Black text reads best on it, at 4.73:1.

Hue familyYellows
Lightnessmedium-dark (57%)
Chromamoderately saturated (0.106)
Temperaturewarm
Nearest nameHazel (#8E7618)
Black text4.73:1
White text4.43:1

Values

HEX#8A771F
RGBrgb(138, 119, 31)
HSLhsl(49, 63%, 33%)
OKLCHoklch(57.1% 0.106 96.4)

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 #8A771F 4.43:1 AA large text Lc -76.1 Fine for body text
Black text on #8A771F 4.73:1 AA Lc 33.5 Non-text elements, placeholder text
#8A771F text on white 4.43:1 AA large text Lc 70.6 Content text, not long reading
#8A771F text on black 4.73:1 AA Lc -31.0 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 600.

  1. Step 50

    50

    #F6F5F1

    oklch(97% 0.005 95.1)

  2. Step 100

    100

    #ECEAE0

    oklch(93.6% 0.013 97.4)

  3. Step 200

    200

    #DED9C6

    oklch(88.4% 0.026 94.8)

  4. Step 300

    300

    #C9C19F

    oklch(80.9% 0.047 96.3)

  5. Step 400

    400

    #AEA169

    oklch(70.7% 0.076 96.7)

  6. Step 500

    500

    #9B893E

    oklch(63.1% 0.098 96)

  7. Step 600

    600 (this color)

    #8A771F

    oklch(57.1% 0.106 96.4)

  8. Step 700

    700

    #716007

    oklch(49.1% 0.099 96.6)

  9. Step 800

    800

    #5C4E0D

    oklch(42.6% 0.081 96)

  10. Step 900

    900

    #4B4115

    oklch(37.6% 0.063 96.4)

  11. Step 950

    950

    #2C260E

    oklch(26.9% 0.039 95.5)

Export this scale for Tailwind in the Tailwind colors tool

#8A771F 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)#84740E0.016
Deuteranopia (no green cones)#897A250.008
Tritanopia (no blue cones)#956D660.098
Achromatopsia (no color)#7878780.106

Harmonies

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

Complementary

The opposite hue (180°).

  • #8A771F

    #8A771F

    oklch(57.1% 0.106 96.4)

  • #6771B5

    #6771B5

    oklch(57% 0.105 276.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #8A771F

    #8A771F

    oklch(57.1% 0.106 96.4)

  • #A16A2A

    #A16A2A

    oklch(57.1% 0.105 66.6)

  • #688339

    #688339

    oklch(57.2% 0.106 126.2)

Open the analogous palette in the generator

Split complementary

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

  • #8A771F

    #8A771F

    oklch(57.1% 0.106 96.4)

  • #3D7DB2

    #3D7DB2

    oklch(57.2% 0.105 246.1)

  • #8866A9

    #8866A9

    oklch(57.1% 0.107 306.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #8A771F

    #8A771F

    oklch(57.1% 0.106 96.4)

  • #00869E

    #00869E

    oklch(57.1% 0.102 216.2)

  • #9F5E8F

    #9F5E8F

    oklch(57.1% 0.107 336.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #8A771F

    #8A771F

    oklch(57.1% 0.106 96.4)

  • #008A81

    #008A81

    oklch(57% 0.1 186.8)

  • #6771B5

    #6771B5

    oklch(57% 0.105 276.2)

  • #AB5B6E

    #AB5B6E

    oklch(57% 0.106 5.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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