#797A31

Closest named color: Military Green (#667C3E). oklch(56.3% 0.096 109.8), rgb(121, 122, 49).

Aa

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

About this color

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

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

Values

HEX#797A31
RGBrgb(121, 122, 49)
HSLhsl(61, 43%, 34%)
OKLCHoklch(56.3% 0.096 109.8)

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 #797A31 4.52:1 AA Lc -76.8 Fine for body text
Black text on #797A31 4.64:1 AA Lc 32.7 Non-text elements, placeholder text
#797A31 text on white 4.52:1 AA Lc 71.4 Content text, not long reading
#797A31 text on black 4.64: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

    #C2C3A4

    oklch(80.8% 0.042 108.8)

  5. Step 400

    400

    #A3A572

    oklch(70.8% 0.07 109.9)

  6. Step 500

    500

    #8D8E4D

    oklch(63.1% 0.087 109.4)

  7. Step 600

    600 (this color)

    #797A31

    oklch(56.3% 0.096 109.8)

  8. Step 700

    700

    #646521

    oklch(49.2% 0.089 110.1)

  9. Step 800

    800

    #52521D

    oklch(42.7% 0.074 109.2)

  10. Step 900

    900

    #43441E

    oklch(37.6% 0.057 110.2)

  11. Step 950

    950

    #272812

    oklch(26.9% 0.037 110.9)

Export this scale for Tailwind in the Tailwind colors tool

#797A31 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)#8375290.019
Deuteranopia (no green cones)#8477350.020
Tritanopia (no blue cones)#81736A0.085
Achromatopsia (no color)#7676760.096

Harmonies

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

Complementary

The opposite hue (180°).

  • #797A31

    #797A31

    oklch(56.3% 0.096 109.8)

  • #756BAA

    #756BAA

    oklch(56.3% 0.096 290.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #797A31

    #797A31

    oklch(56.3% 0.096 109.8)

  • #936E2B

    #936E2B

    oklch(56.2% 0.096 79.3)

  • #56834C

    #56834C

    oklch(56.3% 0.096 140)

Open the analogous palette in the generator

Split complementary

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

  • #797A31

    #797A31

    oklch(56.3% 0.096 109.8)

  • #5376AD

    #5376AD

    oklch(56.4% 0.095 259.2)

  • #8E6298

    #8E6298

    oklch(56.2% 0.096 320)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #797A31

    #797A31

    oklch(56.3% 0.096 109.8)

  • #2B7FA2

    #2B7FA2

    oklch(56.2% 0.095 229.9)

  • #9F5D7D

    #9F5D7D

    oklch(56.3% 0.095 350.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #797A31

    #797A31

    oklch(56.3% 0.096 109.8)

  • #01868B

    #01868B

    oklch(56.3% 0.096 199.4)

  • #756BAA

    #756BAA

    oklch(56.3% 0.096 290.2)

  • #A65D5E

    #A65D5E

    oklch(56.3% 0.096 19.7)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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