#797E51

Closest named color: Drab (#828344). oklch(57.7% 0.064 113.6), rgb(121, 126, 81).

Aa

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

About this color

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

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

Values

HEX#797E51
RGBrgb(121, 126, 81)
HSLhsl(67, 22%, 41%)
OKLCHoklch(57.7% 0.064 113.6)

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

    #F5F6F3

    oklch(97.2% 0.004 121.6)

  2. Step 100

    100

    #EAEAE4

    oklch(93.5% 0.008 106.6)

  3. Step 200

    200

    #D9DACF

    oklch(88.5% 0.015 110.9)

  4. Step 300

    300

    #C0C3AE

    oklch(80.9% 0.029 113.6)

  5. Step 400

    400

    #A0A483

    oklch(70.7% 0.046 113.2)

  6. Step 500

    500

    #898E64

    oklch(63.2% 0.06 113.6)

  7. Step 600

    600 (this color)

    #797E51

    oklch(57.7% 0.064 113.6)

  8. Step 700

    700

    #60653C

    oklch(49.2% 0.061 114.3)

  9. Step 800

    800

    #4F5232

    oklch(42.7% 0.049 112.8)

  10. Step 900

    900

    #41442C

    oklch(37.7% 0.039 114.1)

  11. Step 950

    950

    #26281A

    oklch(27% 0.025 114.7)

Export this scale for Tailwind in the Tailwind colors tool

#797E51 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)#847A4E0.019
Deuteranopia (no green cones)#847B530.019
Tritanopia (no blue cones)#7E79730.057
Achromatopsia (no color)#7A7A7A0.065

Harmonies

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

Complementary

The opposite hue (180°).

  • #797E51

    #797E51

    oklch(57.7% 0.064 113.6)

  • #7B729D

    #7B729D

    oklch(57.7% 0.066 293.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #797E51

    #797E51

    oklch(57.7% 0.064 113.6)

  • #8C764C

    #8C764C

    oklch(57.6% 0.065 82.9)

  • #638461

    #638461

    oklch(57.8% 0.065 143.3)

Open the analogous palette in the generator

Split complementary

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

  • #797E51

    #797E51

    oklch(57.7% 0.064 113.6)

  • #667AA0

    #667AA0

    oklch(57.8% 0.063 263)

  • #8D6D90

    #8D6D90

    oklch(57.8% 0.065 323.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #797E51

    #797E51

    oklch(57.7% 0.064 113.6)

  • #52809A

    #52809A

    oklch(57.7% 0.064 234.2)

  • #986A7C

    #986A7C

    oklch(57.7% 0.064 354.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #797E51

    #797E51

    oklch(57.7% 0.064 113.6)

  • #47858B

    #47858B

    oklch(57.8% 0.065 203.7)

  • #7B729D

    #7B729D

    oklch(57.7% 0.066 293.8)

  • #9C6B67

    #9C6B67

    oklch(57.8% 0.064 24.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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