#797F3C

Closest named color: Drab (#828344). oklch(57.6% 0.091 113.5), rgb(121, 127, 60).

Aa

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

About this color

#797F3C is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 58%, its chroma 0.091 and its hue 113°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Drab (#828344), ΔE 0.020 away. Black text reads best on it, at 4.91:1.

Hue familyYellows
Lightnessmedium-dark (58%)
Chromamoderately saturated (0.091)
Temperaturein between
Nearest nameDrab (#828344)
Black text4.91:1
White text4.27:1

Values

HEX#797F3C
RGBrgb(121, 127, 60)
HSLhsl(65, 36%, 37%)
OKLCHoklch(57.6% 0.091 113.5)

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 #797F3C 4.27:1 AA large text Lc -75.0 Content text, not long reading
Black text on #797F3C 4.91:1 AA Lc 34.6 Non-text elements, placeholder text
#797F3C text on white 4.27:1 AA large text Lc 69.5 Content text, not long reading
#797F3C text on black 4.91:1 AA Lc -32.2 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

    #F5F6F2

    oklch(97.1% 0.005 117.9)

  2. Step 100

    100

    #E9EBE2

    oklch(93.6% 0.012 116.8)

  3. Step 200

    200

    #D9DBCA

    oklch(88.5% 0.023 112.3)

  4. Step 300

    300

    #C0C4A6

    oklch(80.9% 0.041 113.5)

  5. Step 400

    400

    #A0A576

    oklch(70.6% 0.065 113)

  6. Step 500

    500

    #898F52

    oklch(63.1% 0.084 113.4)

  7. Step 600

    600 (this color)

    #797F3C

    oklch(57.6% 0.091 113.5)

  8. Step 700

    700

    #616628

    oklch(49.2% 0.085 113.4)

  9. Step 800

    800

    #4F5323

    oklch(42.7% 0.069 113.3)

  10. Step 900

    900

    #414521

    oklch(37.7% 0.055 114.3)

  11. Step 950

    950

    #262814

    oklch(26.9% 0.034 113.4)

Export this scale for Tailwind in the Tailwind colors tool

#797F3C 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)#877A360.023
Deuteranopia (no green cones)#877B400.025
Tritanopia (no blue cones)#8078700.081
Achromatopsia (no color)#7A7A7A0.091

Harmonies

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

Complementary

The opposite hue (180°).

  • #797F3C

    #797F3C

    oklch(57.6% 0.091 113.5)

  • #7C6FAA

    #7C6FAA

    oklch(57.7% 0.09 293.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #797F3C

    #797F3C

    oklch(57.6% 0.091 113.5)

  • #937434

    #937434

    oklch(57.6% 0.091 83.2)

  • #578756

    #578756

    oklch(57.6% 0.09 143.8)

Open the analogous palette in the generator

Split complementary

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

  • #797F3C

    #797F3C

    oklch(57.6% 0.091 113.5)

  • #5D78AF

    #5D78AF

    oklch(57.5% 0.091 263.8)

  • #936698

    #936698

    oklch(57.5% 0.091 323.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #797F3C

    #797F3C

    oklch(57.6% 0.091 113.5)

  • #3A82A6

    #3A82A6

    oklch(57.6% 0.09 233.2)

  • #A3627D

    #A3627D

    oklch(57.6% 0.091 353.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #797F3C

    #797F3C

    oklch(57.6% 0.091 113.5)

  • #1F8991

    #1F8991

    oklch(57.7% 0.091 202.7)

  • #7C6FAA

    #7C6FAA

    oklch(57.7% 0.09 293.5)

  • #A8635F

    #A8635F

    oklch(57.6% 0.09 23.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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