#796B2F

Closest named color: Dirt Brown (#836539). oklch(52.8% 0.082 96.3), rgb(121, 107, 47).

Aa

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

About this color

#796B2F is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 53%, its chroma 0.082 and its hue 96°. Its hue sits on the warm side of the wheel. The nearest named color is Dirt Brown (#836539), ΔE 0.029 away. White text reads best on it, at 5.30:1.

Hue familyYellows
Lightnessmedium-dark (53%)
Chromamoderately saturated (0.082)
Temperaturewarm
Nearest nameDirt Brown (#836539)
Black text3.95:1
White text5.30:1

Values

HEX#796B2F
RGBrgb(121, 107, 47)
HSLhsl(49, 44%, 33%)
OKLCHoklch(52.8% 0.082 96.3)

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 #796B2F 5.30:1 AA Lc -81.7 Fine for body text
Black text on #796B2F 3.95:1 AA large text Lc 27.7 Dividers and decoration only
#796B2F text on white 5.30:1 AA Lc 76.3 Fine for body text
#796B2F text on black 3.95:1 AA large text Lc -25.4 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 600.

  1. Step 50

    50

    #F6F5F2

    oklch(97% 0.004 91.4)

  2. Step 100

    100

    #ECEAE2

    oklch(93.6% 0.011 95.2)

  3. Step 200

    200

    #DDD9CA

    oklch(88.4% 0.021 94.5)

  4. Step 300

    300

    #C7C1A7

    oklch(80.9% 0.036 96.4)

  5. Step 400

    400

    #ABA177

    oklch(70.7% 0.059 96.3)

  6. Step 500

    500

    #978A53

    oklch(63.2% 0.076 96.5)

  7. Step 600

    600 (this color)

    #796B2F

    oklch(52.8% 0.082 96.3)

  8. Step 700

    700

    #6D612A

    oklch(49.2% 0.076 97.1)

  9. Step 800

    800

    #594F24

    oklch(42.7% 0.063 96.5)

  10. Step 900

    900

    #494222

    oklch(37.8% 0.049 97.3)

  11. Step 950

    950

    #2B2614

    oklch(26.9% 0.031 94.4)

Export this scale for Tailwind in the Tailwind colors tool

#796B2F 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)#7569290.011
Deuteranopia (no green cones)#796D320.006
Tritanopia (no blue cones)#82635E0.076
Achromatopsia (no color)#6B6B6B0.082

Harmonies

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

Complementary

The opposite hue (180°).

  • #796B2F

    #796B2F

    oklch(52.8% 0.082 96.3)

  • #5F679A

    #5F679A

    oklch(52.9% 0.081 276.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #796B2F

    #796B2F

    oklch(52.8% 0.082 96.3)

  • #8B6134

    #8B6134

    oklch(52.7% 0.082 66.3)

  • #5F743E

    #5F743E

    oklch(52.8% 0.082 126.4)

Open the analogous palette in the generator

Split complementary

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

  • #796B2F

    #796B2F

    oklch(52.8% 0.082 96.3)

  • #417098

    #417098

    oklch(52.9% 0.082 245.8)

  • #775E91

    #775E91

    oklch(52.7% 0.083 306.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #796B2F

    #796B2F

    oklch(52.8% 0.082 96.3)

  • #247789

    #247789

    oklch(52.8% 0.081 215.4)

  • #89597D

    #89597D

    oklch(52.9% 0.081 336.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #796B2F

    #796B2F

    oklch(52.8% 0.082 96.3)

  • #227A72

    #227A72

    oklch(52.7% 0.082 186.2)

  • #5F679A

    #5F679A

    oklch(52.9% 0.081 276.4)

  • #935764

    #935764

    oklch(52.9% 0.081 6.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #796B2F 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.