#798C42

Closest named color: Camo (#7F8F4E). oklch(60.8% 0.102 121.4), rgb(121, 140, 66).

Aa

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

About this color

#798C42 is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 61%, its chroma 0.102 and its hue 121°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Camo (#7F8F4E), ΔE 0.018 away. Black text reads best on it, at 5.64:1.

Hue familyYellows
Lightnessmedium-dark (61%)
Chromamoderately saturated (0.102)
Temperaturein between
Nearest nameCamo (#7F8F4E)
Black text5.64:1
White text3.72:1

Values

HEX#798C42
RGBrgb(121, 140, 66)
HSLhsl(75, 36%, 40%)
OKLCHoklch(60.8% 0.102 121.4)

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 #798C42 3.72:1 AA large text Lc -70.2 Content text, not long reading
Black text on #798C42 5.64:1 AA Lc 39.4 Non-text elements, placeholder text
#798C42 text on white 3.72:1 AA large text Lc 64.7 Content text, not long reading
#798C42 text on black 5.64:1 AA Lc -36.9 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

    #D6DCC8

    oklch(88.4% 0.028 120.6)

  4. Step 300

    300

    #BBC6A2

    oklch(80.8% 0.051 121.3)

  5. Step 400

    400

    #99A970

    oklch(70.8% 0.08 121.2)

  6. Step 500

    500 (this color)

    #798C42

    oklch(60.8% 0.102 121.4)

  7. Step 600

    600

    #697D29

    oklch(55.6% 0.112 121.6)

  8. Step 700

    700

    #58691C

    oklch(49.1% 0.103 121.1)

  9. Step 800

    800

    #48561A

    oklch(42.8% 0.085 121.3)

  10. Step 900

    900

    #3C471C

    oklch(37.7% 0.066 121.6)

  11. Step 950

    950

    #232A11

    oklch(27.1% 0.043 122.2)

Export this scale for Tailwind in the Tailwind colors tool

#798C42 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)#94853B0.041
Deuteranopia (no green cones)#9184460.042
Tritanopia (no blue cones)#7E867B0.084
Achromatopsia (no color)#8484840.102

Harmonies

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

Complementary

The opposite hue (180°).

  • #798C42

    #798C42

    oklch(60.8% 0.102 121.4)

  • #8D73B6

    #8D73B6

    oklch(60.7% 0.103 301.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #798C42

    #798C42

    oklch(60.8% 0.102 121.4)

  • #998030

    #998030

    oklch(60.8% 0.103 91.5)

  • #509463

    #509463

    oklch(60.8% 0.102 151.4)

Open the analogous palette in the generator

Split complementary

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

  • #798C42

    #798C42

    oklch(60.8% 0.102 121.4)

  • #6C7EC0

    #6C7EC0

    oklch(60.7% 0.103 271.5)

  • #A66B9E

    #A66B9E

    oklch(60.8% 0.102 331.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #798C42

    #798C42

    oklch(60.8% 0.102 121.4)

  • #448ABA

    #448ABA

    oklch(60.9% 0.102 241.1)

  • #B5677E

    #B5677E

    oklch(60.8% 0.103 1.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #798C42

    #798C42

    oklch(60.8% 0.102 121.4)

  • #1392A6

    #1392A6

    oklch(60.7% 0.102 212.1)

  • #8D73B6

    #8D73B6

    oklch(60.7% 0.103 301.3)

  • #B86A5C

    #B86A5C

    oklch(60.8% 0.103 31.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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