#798F2B

Closest named color: Olive Drab (#6B8E23). oklch(61.3% 0.127 121), rgb(121, 143, 43).

Aa

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

About this color

#798F2B is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 61%, its chroma 0.127 and its hue 121°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Olive Drab (#6B8E23), ΔE 0.021 away. Black text reads best on it, at 5.77:1.

Hue familyYellows
Lightnessmedium-dark (61%)
Chromamoderately saturated (0.127)
Temperaturein between
Nearest nameOlive Drab (#6B8E23)
Black text5.77:1
White text3.63:1

Values

HEX#798F2B
RGBrgb(121, 143, 43)
HSLhsl(73, 54%, 36%)
OKLCHoklch(61.3% 0.127 121)

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 #798F2B 3.63:1 AA large text Lc -69.3 Content text, not long reading
Black text on #798F2B 5.77:1 AA Lc 40.2 Non-text elements, placeholder text
#798F2B text on white 3.63:1 AA large text Lc 63.8 Content text, not long reading
#798F2B text on black 5.77:1 AA Lc -37.8 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

    #F4F6F0

    oklch(97% 0.008 121.6)

  2. Step 100

    100

    #E8ECDF

    oklch(93.6% 0.018 120.7)

  3. Step 200

    200

    #D5DDC4

    oklch(88.5% 0.035 121.6)

  4. Step 300

    300

    #BAC79B

    oklch(80.8% 0.061 121.1)

  5. Step 400

    400

    #97AA62

    oklch(70.6% 0.099 121.1)

  6. Step 500

    500 (this color)

    #798F2B

    oklch(61.3% 0.127 121)

  7. Step 600

    600

    #687E00

    oklch(55.5% 0.133 121.1)

  8. Step 700

    700

    #576A00

    oklch(49.1% 0.118 121.1)

  9. Step 800

    800

    #475700

    oklch(42.8% 0.103 121.1)

  10. Step 900

    900

    #3B480B

    oklch(37.7% 0.083 121.3)

  11. Step 950

    950

    #232A0A

    oklch(27% 0.052 120.4)

Export this scale for Tailwind in the Tailwind colors tool

#798F2B 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)#98861C0.048
Deuteranopia (no green cones)#9586330.050
Tritanopia (no blue cones)#80887B0.106
Achromatopsia (no color)#8686860.127

Harmonies

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

Complementary

The opposite hue (180°).

  • #798F2B

    #798F2B

    oklch(61.3% 0.127 121)

  • #9170C4

    #9170C4

    oklch(61.2% 0.128 300.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #798F2B

    #798F2B

    oklch(61.3% 0.127 121)

  • #A08000

    #A08000

    oklch(61.3% 0.125 91.1)

  • #40995B

    #40995B

    oklch(61.3% 0.127 150.9)

Open the analogous palette in the generator

Split complementary

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

  • #798F2B

    #798F2B

    oklch(61.3% 0.127 121)

  • #687ED0

    #687ED0

    oklch(61.3% 0.127 270.9)

  • #AF66A7

    #AF66A7

    oklch(61.4% 0.126 331.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #798F2B

    #798F2B

    oklch(61.3% 0.127 121)

  • #298CC8

    #298CC8

    oklch(61.2% 0.126 240.8)

  • #C0607F

    #C0607F

    oklch(61.2% 0.127 1.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #798F2B

    #798F2B

    oklch(61.3% 0.127 121)

  • #0095A8

    #0095A8

    oklch(61.4% 0.106 210.5)

  • #9170C4

    #9170C4

    oklch(61.2% 0.128 300.8)

  • #C46453

    #C46453

    oklch(61.3% 0.126 31.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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