#797A2F

Closest named color: Military Green (#667C3E). oklch(56.3% 0.097 109.9), rgb(121, 122, 47).

Aa

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

About this color

#797A2F is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 56%, its chroma 0.097 and its hue 110°. Its hue sits on the warm side of the wheel. The nearest named color is Military Green (#667C3E), ΔE 0.028 away. Black text reads best on it, at 4.63:1.

Hue familyYellows
Lightnessmedium-dark (56%)
Chromamoderately saturated (0.097)
Temperaturewarm
Nearest nameMilitary Green (#667C3E)
Black text4.63:1
White text4.52:1

Values

HEX#797A2F
RGBrgb(121, 122, 47)
HSLhsl(61, 44%, 33%)
OKLCHoklch(56.3% 0.097 109.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 #797A2F 4.52:1 AA Lc -76.8 Fine for body text
Black text on #797A2F 4.63:1 AA Lc 32.7 Non-text elements, placeholder text
#797A2F text on white 4.52:1 AA Lc 71.4 Content text, not long reading
#797A2F text on black 4.63:1 AA Lc -30.3 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

    #F5F6F1

    oklch(97.1% 0.007 115.7)

  2. Step 100

    100

    #EAEBE1

    oklch(93.7% 0.013 111.3)

  3. Step 200

    200

    #DADBC9

    oklch(88.6% 0.024 109.5)

  4. Step 300

    300

    #C2C4A3

    oklch(81% 0.045 110.2)

  5. Step 400

    400

    #A3A571

    oklch(70.7% 0.071 109.9)

  6. Step 500

    500

    #8D8E4B

    oklch(63.1% 0.09 109.5)

  7. Step 600

    600 (this color)

    #797A2F

    oklch(56.3% 0.097 109.9)

  8. Step 700

    700

    #64651F

    oklch(49.1% 0.091 110.1)

  9. Step 800

    800

    #52521C

    oklch(42.7% 0.075 109.2)

  10. Step 900

    900

    #43441D

    oklch(37.6% 0.058 110.2)

  11. Step 950

    950

    #272812

    oklch(26.9% 0.037 110.9)

Export this scale for Tailwind in the Tailwind colors tool

#797A2F 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)#8375260.019
Deuteranopia (no green cones)#8477330.020
Tritanopia (no blue cones)#81736A0.087
Achromatopsia (no color)#7676760.097

Harmonies

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

Complementary

The opposite hue (180°).

  • #797A2F

    #797A2F

    oklch(56.3% 0.097 109.9)

  • #746BAB

    #746BAB

    oklch(56.3% 0.098 289.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #797A2F

    #797A2F

    oklch(56.3% 0.097 109.9)

  • #936E29

    #936E29

    oklch(56.2% 0.097 79.8)

  • #55834B

    #55834B

    oklch(56.2% 0.097 140)

Open the analogous palette in the generator

Split complementary

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

  • #797A2F

    #797A2F

    oklch(56.3% 0.097 109.9)

  • #5375AE

    #5375AE

    oklch(56.2% 0.097 260.3)

  • #8E6299

    #8E6299

    oklch(56.3% 0.097 319.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #797A2F

    #797A2F

    oklch(56.3% 0.097 109.9)

  • #287FA3

    #287FA3

    oklch(56.2% 0.097 230.1)

  • #A05C7D

    #A05C7D

    oklch(56.2% 0.098 350.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #797A2F

    #797A2F

    oklch(56.3% 0.097 109.9)

  • #00868B

    #00868B

    oklch(56.3% 0.096 199.4)

  • #746BAB

    #746BAB

    oklch(56.3% 0.098 289.3)

  • #A75C5D

    #A75C5D

    oklch(56.2% 0.098 19.8)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #797A2F.

Similar named colors

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

Use #797A2F 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.