#798A42

Closest named color: Khaki Green (#728639). oklch(60.3% 0.099 120.5), rgb(121, 138, 66).

Aa

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

About this color

#798A42 is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 60%, its chroma 0.099 and its hue 120°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Khaki Green (#728639), ΔE 0.018 away. Black text reads best on it, at 5.52:1.

Hue familyYellows
Lightnessmedium-dark (60%)
Chromamoderately saturated (0.099)
Temperaturein between
Nearest nameKhaki Green (#728639)
Black text5.52:1
White text3.79:1

Values

HEX#798A42
RGBrgb(121, 138, 66)
HSLhsl(74, 35%, 40%)
OKLCHoklch(60.3% 0.099 120.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 #798A42 3.79:1 AA large text Lc -71.0 Content text, not long reading
Black text on #798A42 5.52:1 AA Lc 38.6 Non-text elements, placeholder text
#798A42 text on white 3.79:1 AA large text Lc 65.5 Content text, not long reading
#798A42 text on black 5.52:1 AA Lc -36.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 500.

  1. Step 50

    50

    #F5F6F1

    oklch(97.1% 0.007 115.7)

  2. Step 100

    100

    #E8EBE1

    oklch(93.5% 0.014 120.3)

  3. Step 200

    200

    #D6DCC9

    oklch(88.5% 0.026 121.2)

  4. Step 300

    300

    #BCC6A3

    oklch(80.9% 0.049 120.5)

  5. Step 400

    400

    #9AA871

    oklch(70.7% 0.077 120)

  6. Step 500

    500 (this color)

    #798A42

    oklch(60.3% 0.099 120.5)

  7. Step 600

    600

    #6B7C2B

    oklch(55.5% 0.108 120.1)

  8. Step 700

    700

    #59691E

    oklch(49.2% 0.101 120.6)

  9. Step 800

    800

    #49551B

    oklch(42.6% 0.082 120)

  10. Step 900

    900

    #3D471C

    oklch(37.8% 0.066 120.5)

  11. Step 950

    950

    #242912

    oklch(26.9% 0.039 119.2)

Export this scale for Tailwind in the Tailwind colors tool

#798A42 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)#92833B0.039
Deuteranopia (no green cones)#8F83460.039
Tritanopia (no blue cones)#7F847A0.084
Achromatopsia (no color)#8383830.100

Harmonies

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

Complementary

The opposite hue (180°).

  • #798A42

    #798A42

    oklch(60.3% 0.099 120.5)

  • #8B73B4

    #8B73B4

    oklch(60.4% 0.1 300.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #798A42

    #798A42

    oklch(60.3% 0.099 120.5)

  • #987E32

    #987E32

    oklch(60.3% 0.099 90.1)

  • #529261

    #529261

    oklch(60.4% 0.1 150.1)

Open the analogous palette in the generator

Split complementary

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

  • #798A42

    #798A42

    oklch(60.3% 0.099 120.5)

  • #6A7EBD

    #6A7EBD

    oklch(60.4% 0.099 269.8)

  • #A36B9D

    #A36B9D

    oklch(60.4% 0.099 330.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #798A42

    #798A42

    oklch(60.3% 0.099 120.5)

  • #4388B7

    #4388B7

    oklch(60.2% 0.1 241)

  • #B2677E

    #B2677E

    oklch(60.4% 0.1 0.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #798A42

    #798A42

    oklch(60.3% 0.099 120.5)

  • #1991A2

    #1991A2

    oklch(60.4% 0.099 210)

  • #8B73B4

    #8B73B4

    oklch(60.4% 0.1 300.4)

  • #B5695D

    #B5695D

    oklch(60.3% 0.1 29.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #798A42 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.