#797D22

Closest named color: Olive (#808000). oklch(56.9% 0.111 111.9), rgb(121, 125, 34).

Aa

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

About this color

#797D22 is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 57%, its chroma 0.111 and its hue 112°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Olive (#808000), ΔE 0.020 away. Black text reads best on it, at 4.76:1.

Hue familyYellows
Lightnessmedium-dark (57%)
Chromamoderately saturated (0.111)
Temperaturein between
Nearest nameOlive (#808000)
Black text4.76:1
White text4.40:1

Values

HEX#797D22
RGBrgb(121, 125, 34)
HSLhsl(63, 57%, 31%)
OKLCHoklch(56.9% 0.111 111.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 #797D22 4.40:1 AA large text Lc -75.9 Fine for body text
Black text on #797D22 4.76:1 AA Lc 33.6 Non-text elements, placeholder text
#797D22 text on white 4.40:1 AA large text Lc 70.4 Content text, not long reading
#797D22 text on black 4.76:1 AA Lc -31.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

    #F5F6F1

    oklch(97.1% 0.007 115.7)

  2. Step 100

    100

    #EAEBE0

    oklch(93.6% 0.015 110.9)

  3. Step 200

    200

    #D9DBC7

    oklch(88.4% 0.027 111.6)

  4. Step 300

    300

    #C1C4A0

    oklch(80.9% 0.049 111.4)

  5. Step 400

    400

    #A1A66B

    oklch(70.7% 0.08 112.4)

  6. Step 500

    500

    #8B9041

    oklch(63.2% 0.103 112.3)

  7. Step 600

    600 (this color)

    #797D22

    oklch(56.9% 0.111 111.9)

  8. Step 700

    700

    #63660D

    oklch(49.2% 0.104 111.7)

  9. Step 800

    800

    #505311

    oklch(42.6% 0.085 112.1)

  10. Step 900

    900

    #434516

    oklch(37.8% 0.067 111.5)

  11. Step 950

    950

    #27280E

    oklch(26.9% 0.042 110.9)

Export this scale for Tailwind in the Tailwind colors tool

#797D22 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)#8777120.025
Deuteranopia (no green cones)#8779290.026
Tritanopia (no blue cones)#82756B0.099
Achromatopsia (no color)#7878780.111

Harmonies

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

Complementary

The opposite hue (180°).

  • #797D22

    #797D22

    oklch(56.9% 0.111 111.9)

  • #796AB3

    #796AB3

    oklch(57% 0.111 291.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #797D22

    #797D22

    oklch(56.9% 0.111 111.9)

  • #976F13

    #976F13

    oklch(56.7% 0.111 82)

  • #4E8748

    #4E8748

    oklch(56.8% 0.111 142)

Open the analogous palette in the generator

Split complementary

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

  • #797D22

    #797D22

    oklch(56.9% 0.111 111.9)

  • #5276B8

    #5276B8

    oklch(56.9% 0.111 261.8)

  • #955F9E

    #955F9E

    oklch(56.8% 0.112 321.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #797D22

    #797D22

    oklch(56.9% 0.111 111.9)

  • #1381AD

    #1381AD

    oklch(56.8% 0.112 232.4)

  • #A8597E

    #A8597E

    oklch(56.8% 0.112 351.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #797D22

    #797D22

    oklch(56.9% 0.111 111.9)

  • #00878F

    #00878F

    oklch(56.8% 0.097 202.1)

  • #796AB3

    #796AB3

    oklch(57% 0.111 291.9)

  • #AF5A59

    #AF5A59

    oklch(56.9% 0.111 21.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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