#817F2D

Closest named color: Drab (#828344). oklch(58.2% 0.103 107.9), rgb(129, 127, 45).

Aa

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

About this color

#817F2D is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 58%, its chroma 0.103 and its hue 108°. Its hue sits on the warm side of the wheel. The nearest named color is Drab (#828344), ΔE 0.022 away. Black text reads best on it, at 5.00:1.

Hue familyYellows
Lightnessmedium-dark (58%)
Chromamoderately saturated (0.103)
Temperaturewarm
Nearest nameDrab (#828344)
Black text5.00:1
White text4.19:1

Values

HEX#817F2D
RGBrgb(129, 127, 45)
HSLhsl(59, 48%, 34%)
OKLCHoklch(58.2% 0.103 107.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 #817F2D 4.19:1 AA large text Lc -74.3 Content text, not long reading
Black text on #817F2D 5.00:1 AA Lc 35.2 Non-text elements, placeholder text
#817F2D text on white 4.19:1 AA large text Lc 68.8 Content text, not long reading
#817F2D text on black 5.00:1 AA Lc -32.8 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

    #F6F6F1

    oklch(97.2% 0.007 106.5)

  2. Step 100

    100

    #EAEBE1

    oklch(93.7% 0.013 111.3)

  3. Step 200

    200

    #DADBC7

    oklch(88.5% 0.027 109.3)

  4. Step 300

    300

    #C3C3A1

    oklch(80.8% 0.046 107.4)

  5. Step 400

    400

    #A5A46D

    oklch(70.6% 0.074 107.3)

  6. Step 500

    500

    #8F8E45

    oklch(63.2% 0.096 108.1)

  7. Step 600

    600 (this color)

    #817F2D

    oklch(58.2% 0.103 107.9)

  8. Step 700

    700

    #666416

    oklch(49% 0.096 108)

  9. Step 800

    800

    #535216

    oklch(42.7% 0.08 108.4)

  10. Step 900

    900

    #454419

    oklch(37.7% 0.062 107.8)

  11. Step 950

    950

    #282810

    oklch(27% 0.039 108.8)

Export this scale for Tailwind in the Tailwind colors tool

#817F2D 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)#897A230.017
Deuteranopia (no green cones)#8B7D320.018
Tritanopia (no blue cones)#8A776E0.093
Achromatopsia (no color)#7C7C7C0.103

Harmonies

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

Complementary

The opposite hue (180°).

  • #817F2D

    #817F2D

    oklch(58.2% 0.103 107.9)

  • #7870B4

    #7870B4

    oklch(58.1% 0.103 288.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #817F2D

    #817F2D

    oklch(58.2% 0.103 107.9)

  • #9C7228

    #9C7228

    oklch(58.1% 0.103 77.9)

  • #5B894B

    #5B894B

    oklch(58.1% 0.103 138)

Open the analogous palette in the generator

Split complementary

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

  • #817F2D

    #817F2D

    oklch(58.2% 0.103 107.9)

  • #537CB7

    #537CB7

    oklch(58.2% 0.102 257.5)

  • #9466A3

    #9466A3

    oklch(58.1% 0.104 317.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #817F2D

    #817F2D

    oklch(58.2% 0.103 107.9)

  • #2186AB

    #2186AB

    oklch(58.1% 0.104 228.2)

  • #A76086

    #A76086

    oklch(58.1% 0.104 347.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #817F2D

    #817F2D

    oklch(58.2% 0.103 107.9)

  • #008C90

    #008C90

    oklch(58.1% 0.099 198.3)

  • #7870B4

    #7870B4

    oklch(58.1% 0.103 288.1)

  • #B06063

    #B06063

    oklch(58.2% 0.104 18.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #817F2D 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.